Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
view Makefile @ 40:bc2df2421435
Make the $Author$ keyword a single word by replacing space characters with '+' characters.
This makes the $Author$ field more spec compatible.
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Tue, 21 Nov 2017 19:59:56 +0100 |
| parents | c4ea6a7f6848 |
| children | ce7023fc4f71 |
line wrap: on
line source
# Created by: Franz Glasner <freebsd-dev@dom66.de> # $FreeBSD$ PORTNAME= local-bsdtools DISTVERSION= 0.2.1 CATEGORIES= sysutils MASTER_SITES= # none DISTFILES= # none MAINTAINER= freebsd-dev@dom66.de COMMENT= Collection of private system management tools LICENSE= BSD3CLAUSE BUILD_DEPENDS= hg:devel/mercurial RUN_DEPENDS= pkg:ports-mgmt/pkg NO_ARCH= yes NO_BUILD= yes WRKSRC= ${WRKDIR}/local-bsdtools SRC= ${.CURDIR} PLIST_FILES= bin/check-ports HGREVISION= ${:!hg id -R "${SRC}" -q!} HGDATE= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{date|isodatesec}'!} HGAUTHOR= ${:!hg log -R "${SRC}" -r "${HGREVISION:S/+//}" --template '{author|person}' | ${TR} ' ' '+'!} HGPATH= ${:!hg paths -R "${SRC}" default!} do-extract: ${MKDIR} ${WRKSRC}/bin .for _rp in ${PLIST_FILES} ${CP} -v ${SRC}/${_rp} ${WRKSRC}/${_rp} ${SED} -i "" -E -e "s|\\\$$Date\\\$$|\$$Date: ${HGDATE} \$$|" ${WRKSRC}/${_rp} ${SED} -i "" -E -e "s|\\\$$Revision\\\$$|\$$Revision: ${HGREVISION} \$$|" ${WRKSRC}/${_rp} ${SED} -i "" -E -e "s|\\\$$Author\\\$$|\$$Author: ${HGAUTHOR} \$$|" ${WRKSRC}/${_rp} ${SED} -i "" -e "s|\\\$$HGpath\\\$$|\$$HGpath: ${HGPATH} \$$|" ${WRKSRC}/${_rp} ${SED} -i "" -e "s|\\\$$HGsource\\\$$|\$$HGsource: ${HGPATH}/${_rp} \$$|" ${WRKSRC}/${_rp} ${SED} -i "" -e "s|@@VERSION@@|${PORTVERSION}|" ${WRKSRC}/${_rp} .endfor do-install: .for _rp in ${PLIST_FILES} ${INSTALL_SCRIPT} ${WRKSRC}/${_rp} ${STAGEDIR}${PREFIX}/${_rp} .endfor .include <bsd.port.mk>
