Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
annotate Makefile @ 41:ce7023fc4f71
HGpath now yields the file-URL of `hg root` if no default path is configured
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Tue, 21 Nov 2017 20:25:03 +0100 |
| parents | bc2df2421435 |
| children | 22b7c9e08b13 |
| rev | line source |
|---|---|
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
1 # Created by: Franz Glasner <freebsd-dev@dom66.de> |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
2 # $FreeBSD$ |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
3 |
|
13
f5f04faa9acf
Renamed the package to the more generic local-bsdtools
Franz Glasner <hg@dom66.de>
parents:
2
diff
changeset
|
4 PORTNAME= local-bsdtools |
| 38 | 5 DISTVERSION= 0.2.1 |
|
13
f5f04faa9acf
Renamed the package to the more generic local-bsdtools
Franz Glasner <hg@dom66.de>
parents:
2
diff
changeset
|
6 CATEGORIES= sysutils |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
7 MASTER_SITES= # none |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
8 DISTFILES= # none |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
9 |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
10 MAINTAINER= freebsd-dev@dom66.de |
|
13
f5f04faa9acf
Renamed the package to the more generic local-bsdtools
Franz Glasner <hg@dom66.de>
parents:
2
diff
changeset
|
11 COMMENT= Collection of private system management tools |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
12 |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
13 LICENSE= BSD3CLAUSE |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
14 |
| 28 | 15 BUILD_DEPENDS= hg:devel/mercurial |
|
37
efdbb2178785
Make installation dependent on pkg:ports-mgmt/pkg
Franz Glasner <hg@dom66.de>
parents:
35
diff
changeset
|
16 RUN_DEPENDS= pkg:ports-mgmt/pkg |
| 28 | 17 |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
18 NO_ARCH= yes |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
19 NO_BUILD= yes |
|
13
f5f04faa9acf
Renamed the package to the more generic local-bsdtools
Franz Glasner <hg@dom66.de>
parents:
2
diff
changeset
|
20 WRKSRC= ${WRKDIR}/local-bsdtools |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
21 |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
22 SRC= ${.CURDIR} |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
23 |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
24 PLIST_FILES= bin/check-ports |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
25 |
|
27
a105a7fc801f
Remove early evaluation of Mercurial data because clean should work w/o Mercurial
Franz Glasner <hg@dom66.de>
parents:
26
diff
changeset
|
26 HGREVISION= ${:!hg id -R "${SRC}" -q!} |
|
a105a7fc801f
Remove early evaluation of Mercurial data because clean should work w/o Mercurial
Franz Glasner <hg@dom66.de>
parents:
26
diff
changeset
|
27 HGDATE= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{date|isodatesec}'!} |
|
40
bc2df2421435
Make the $Author$ keyword a single word by replacing space characters with '+' characters.
Franz Glasner <hg@dom66.de>
parents:
38
diff
changeset
|
28 HGAUTHOR= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{author|person}' | ${TR} ' ' '+'!} |
|
41
ce7023fc4f71
HGpath now yields the file-URL of `hg root` if no default path is configured
Franz Glasner <hg@dom66.de>
parents:
40
diff
changeset
|
29 HGPATH= ${:!hg --config ui.paginate=never path -R "${SRC}" default || echo "file://`hg root`"!} |
|
16
08fc189baf67
Put some keyword expansion into the port.
Franz Glasner <hg@dom66.de>
parents:
13
diff
changeset
|
30 |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
31 do-extract: |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
32 ${MKDIR} ${WRKSRC}/bin |
|
25
bba3470217c4
Refactor: loops with relative paths instead of the basenames
Franz Glasner <hg@dom66.de>
parents:
21
diff
changeset
|
33 .for _rp in ${PLIST_FILES} |
|
bba3470217c4
Refactor: loops with relative paths instead of the basenames
Franz Glasner <hg@dom66.de>
parents:
21
diff
changeset
|
34 ${CP} -v ${SRC}/${_rp} ${WRKSRC}/${_rp} |
|
bba3470217c4
Refactor: loops with relative paths instead of the basenames
Franz Glasner <hg@dom66.de>
parents:
21
diff
changeset
|
35 ${SED} -i "" -E -e "s|\\\$$Date\\\$$|\$$Date: ${HGDATE} \$$|" ${WRKSRC}/${_rp} |
|
bba3470217c4
Refactor: loops with relative paths instead of the basenames
Franz Glasner <hg@dom66.de>
parents:
21
diff
changeset
|
36 ${SED} -i "" -E -e "s|\\\$$Revision\\\$$|\$$Revision: ${HGREVISION} \$$|" ${WRKSRC}/${_rp} |
|
bba3470217c4
Refactor: loops with relative paths instead of the basenames
Franz Glasner <hg@dom66.de>
parents:
21
diff
changeset
|
37 ${SED} -i "" -E -e "s|\\\$$Author\\\$$|\$$Author: ${HGAUTHOR} \$$|" ${WRKSRC}/${_rp} |
|
bba3470217c4
Refactor: loops with relative paths instead of the basenames
Franz Glasner <hg@dom66.de>
parents:
21
diff
changeset
|
38 ${SED} -i "" -e "s|\\\$$HGpath\\\$$|\$$HGpath: ${HGPATH} \$$|" ${WRKSRC}/${_rp} |
|
bba3470217c4
Refactor: loops with relative paths instead of the basenames
Franz Glasner <hg@dom66.de>
parents:
21
diff
changeset
|
39 ${SED} -i "" -e "s|\\\$$HGsource\\\$$|\$$HGsource: ${HGPATH}/${_rp} \$$|" ${WRKSRC}/${_rp} |
|
bba3470217c4
Refactor: loops with relative paths instead of the basenames
Franz Glasner <hg@dom66.de>
parents:
21
diff
changeset
|
40 ${SED} -i "" -e "s|@@VERSION@@|${PORTVERSION}|" ${WRKSRC}/${_rp} |
|
16
08fc189baf67
Put some keyword expansion into the port.
Franz Glasner <hg@dom66.de>
parents:
13
diff
changeset
|
41 .endfor |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
42 |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
43 do-install: |
|
25
bba3470217c4
Refactor: loops with relative paths instead of the basenames
Franz Glasner <hg@dom66.de>
parents:
21
diff
changeset
|
44 .for _rp in ${PLIST_FILES} |
|
bba3470217c4
Refactor: loops with relative paths instead of the basenames
Franz Glasner <hg@dom66.de>
parents:
21
diff
changeset
|
45 ${INSTALL_SCRIPT} ${WRKSRC}/${_rp} ${STAGEDIR}${PREFIX}/${_rp} |
|
bba3470217c4
Refactor: loops with relative paths instead of the basenames
Franz Glasner <hg@dom66.de>
parents:
21
diff
changeset
|
46 .endfor |
|
2
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
47 |
|
8781814174df
Files to make a FreeBSD binary package for the tool
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
48 .include <bsd.port.mk> |
