Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
view Makefile @ 34:36a10ff20355
Implemented a -s (short) flag that filters output if the repo is FreeBSD and only the local portstree INDEX has a newer version
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Sat, 18 Nov 2017 13:18:10 +0100 |
| parents | eda93dcde2e9 |
| children | 17b6ee513928 |
line wrap: on
line source
# Created by: Franz Glasner <freebsd-dev@dom66.de> # $FreeBSD$ PORTNAME= local-bsdtools DISTVERSION= 0.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 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}'!} 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>
