aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorpawel <pawel@FreeBSD.org>2014-04-02 16:39:48 +0800
committerpawel <pawel@FreeBSD.org>2014-04-02 16:39:48 +0800
commit2dfa0e967124faef748c05f7c41f4aa9d6a5a97f (patch)
tree783bae8ce4016b74fdbfde7fa6e6090b87869771 /devel
parentf73b7b88d25f831ffd9966c47a77e176dfbacd75 (diff)
downloadfreebsd-ports-gnome-2dfa0e967124faef748c05f7c41f4aa9d6a5a97f.tar.gz
freebsd-ports-gnome-2dfa0e967124faef748c05f7c41f4aa9d6a5a97f.tar.zst
freebsd-ports-gnome-2dfa0e967124faef748c05f7c41f4aa9d6a5a97f.zip
- Fix permissions of extracted files, this allows staging as normal user
- Add staging support - Convert to USES=shebangfix
Diffstat (limited to 'devel')
-rw-r--r--devel/cvschangelogbuilder/Makefile21
1 files changed, 10 insertions, 11 deletions
diff --git a/devel/cvschangelogbuilder/Makefile b/devel/cvschangelogbuilder/Makefile
index b9617fd6c0c6..fe9dc65e3d83 100644
--- a/devel/cvschangelogbuilder/Makefile
+++ b/devel/cvschangelogbuilder/Makefile
@@ -14,22 +14,21 @@ LICENSE= GPLv2
RUN_DEPENDS= p5-GD-Graph>=0:${PORTSDIR}/graphics/p5-GD-Graph
NO_BUILD= yes
-USES= perl5
+USES= perl5 shebangfix
+SHEBANG_FILES= ${PORTNAME}.pl
PLIST_FILES= bin/cvschangelogbuilder
PORTDOCS= *
-NO_STAGE= yes
-post-patch:
- ${REINPLACE_CMD} -e '1s|/usr/bin/perl|${PERL}|' ${WRKSRC}/${PORTNAME}.pl
+post-extract:
+ @${FIND} ${WRKSRC} -type d -exec ${CHMOD} 755 {} \;
+ @${FIND} ${WRKSRC} -type f -exec ${CHMOD} 644 {} \;
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl ${PREFIX}/bin/${PORTNAME}
-
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}/images
- ${INSTALL_DATA} ${WRKSRC}/docs/*.* ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/docs/images/* ${DOCSDIR}/images
-.endif
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.pl \
+ ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}/images
+ ${INSTALL_DATA} ${WRKSRC}/docs/*.* ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/images/* ${STAGEDIR}${DOCSDIR}/images
.include <bsd.port.mk>