svn commit: r346897 - head/devel/gtgt
Emanuel Haupt
ehaupt at FreeBSD.org
Mon Mar 3 13:40:54 UTC 2014
Author: ehaupt
Date: Mon Mar 3 13:40:53 2014
New Revision: 346897
URL: http://svnweb.freebsd.org/changeset/ports/346897
QAT: https://qat.redports.org/buildarchive/r346897/
Log:
- Support staging
- Use shebangfix
Modified:
head/devel/gtgt/Makefile
Modified: head/devel/gtgt/Makefile
==============================================================================
--- head/devel/gtgt/Makefile Mon Mar 3 13:22:25 2014 (r346896)
+++ head/devel/gtgt/Makefile Mon Mar 3 13:40:53 2014 (r346897)
@@ -11,6 +11,7 @@ COMMENT= General (or GNU) template gener
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
+USES= shebangfix
NO_BUILD= yes
PORTDOCS= autoconf.html automake.html \
@@ -19,24 +20,17 @@ PORTDOCS= autoconf.html automake.html \
index.html libtool.html
PLIST_FILES= ${SCRIPTS:S/^/bin\//}
-SCRIPTS= gcng gptg gscg
+SHEBANG_FILES= scripts/gcng scripts/gptg scripts/gscg
-NO_STAGE= yes
-post-patch:
-.for file in ${SCRIPTS}
- @${REINPLACE_CMD} -e \
- 's|^#!.*|#!${LOCALBASE}/bin/bash|g' ${WRKSRC}/scripts/${file}
-.endfor
+OPTIONS_DEFINE= DOCS
do-install:
-.for file in ${SCRIPTS}
- ${INSTALL_SCRIPT} ${WRKSRC}/scripts/${file} ${PREFIX}/bin
+.for f in ${SCRIPTS}
+ ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
.endfor
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for file in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+.for f in ${PORTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list