Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
view Makefile @ 20:ba847d423427
Change the syntax of "RCS" (i.e. HG) keyword expansion to make it SCM keyword compatible
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Fri, 27 Oct 2017 09:27:50 +0200 |
| parents | e43dcd367fbf |
| children | 441e007426e7 |
line wrap: on
line source
# Created by: Franz Glasner <freebsd-dev@dom66.de> # $FreeBSD$ PORTNAME= local-bsdtools DISTVERSION= 0.0.1-pre1 CATEGORIES= sysutils MASTER_SITES= # none DISTFILES= # none MAINTAINER= freebsd-dev@dom66.de COMMENT= Collection of private system management tools LICENSE= BSD3CLAUSE NO_ARCH= yes NO_BUILD= yes WRKSRC= ${WRKDIR}/local-bsdtools SRC= ${.CURDIR} PLIST_FILES= bin/check-ports HGREVISION:= ${:!hg id -R "${SRC}" -q!} HGROOT:= ${:!basename "${SRC}"!} HGPATH:= ${:!hg paths -R "${SRC}" default!} do-extract: ${MKDIR} ${WRKSRC}/bin ${CP} -R -v ${SRC}/bin/ ${WRKSRC}/bin .for _f in check-ports ${SED} -i "" -E -e "s|\\\$$HGrevision\\\$$|\$$HGrevision: ${HGREVISION} \$$|" ${WRKSRC}/bin/${_f} ${SED} -i "" -e "s|\\\$$HGroot\\\$$|\$$HGroot: ${HGROOT} \$$|" ${WRKSRC}/bin/${_f} ${SED} -i "" -e "s|\\\$$HGsource\\\$$|\$$HGsource: ${HGPATH}/bin/${_f} \$$|" ${WRKSRC}/bin/${_f} ${SED} -i "" -e "s|@@VERSION@@|${PORTVERSION}|" ${WRKSRC}/bin/${_f} .endfor do-install: ${INSTALL_SCRIPT} ${WRKSRC}/bin/check-ports ${STAGEDIR}${PREFIX}/bin/check-ports .include <bsd.port.mk>
