opnsense-ports/devel/freebsd-git-devtools/Makefile
Franco Fichtner 85a073a62c */*: sync with upstream
Taken from: FreeBSD
2024-05-14 14:28:57 +02:00

50 lines
1.3 KiB
Makefile

PORTNAME= freebsd-git-devtools
PORTVERSION= 20240422
CATEGORIES= devel
MASTER_SITES= https://cgit.freebsd.org/src/plain/tools/tools/git/
DISTFILES= candidatematch.lua?id=${_REV} \
git-arc.sh?id=${_REV} \
git-arc.1?id=${_REV} \
mfc-candidates.sh?id=${_REV}
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= jrm@FreeBSD.org
COMMENT= Simple Git tools from the FreeBSD src tree
LICENSE= BSD2CLAUSE
RUN_DEPENDS= arc:devel/arcanist \
git:devel/git \
jq:textproc/jq
USES= lua shebangfix
SHEBANG_FILES= candidatematch.lua?id=${_REV}
lua_OLD_CMD= /usr/libexec/flua
EXTRACT_CMD= ${CP}
EXTRACT_BEFORE_ARGS= # empty
EXTRACT_AFTER_ARGS= .
NO_ARCH= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
PLIST_FILES= bin/candidatematch.lua \
bin/git-arc \
bin/mfc-candidates \
share/man/man1/git-arc.1.gz
_REV= 76a8625bc71da3fa63eef5abb4782553d2588f5c
post-patch:
for f in ${WRKSRC}/*\?id=*; do \
nn=$$(${ECHO_CMD} $$f | ${SED} -e s/\?id=.*//); ${MV} $$f $$nn; \
done
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/candidatematch.lua ${STAGEDIR}${PREFIX}/bin/
${INSTALL_SCRIPT} ${WRKSRC}/git-arc.sh ${STAGEDIR}${PREFIX}/bin/git-arc
${INSTALL_SCRIPT} ${WRKSRC}/mfc-candidates.sh ${STAGEDIR}${PREFIX}/bin/mfc-candidates
${INSTALL_MAN} ${WRKSRC}/git-arc.1 ${STAGEDIR}${PREFIX}/share/man/man1/
.include <bsd.port.mk>