aboutsummaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-12-27 18:01:32 +0800
committerbapt <bapt@FreeBSD.org>2013-12-27 18:01:32 +0800
commitbf27e74d891833c32a465b295ae388ab82466c5b (patch)
treec410c7707ecd32437c161e73637b3c944f5dbf75 /news
parent9a932034e2ea47b5f6fa6e1168d2c0d42dc1b941 (diff)
downloadfreebsd-ports-gnome-bf27e74d891833c32a465b295ae388ab82466c5b.tar.gz
freebsd-ports-gnome-bf27e74d891833c32a465b295ae388ab82466c5b.tar.zst
freebsd-ports-gnome-bf27e74d891833c32a465b295ae388ab82466c5b.zip
Support stage
Diffstat (limited to 'news')
-rw-r--r--news/newsgrab/Makefile17
1 files changed, 6 insertions, 11 deletions
diff --git a/news/newsgrab/Makefile b/news/newsgrab/Makefile
index daab2b014639..7295b937c6dc 100644
--- a/news/newsgrab/Makefile
+++ b/news/newsgrab/Makefile
@@ -17,18 +17,13 @@ RUN_DEPENDS= p5-NNTPClient>=0:${PORTSDIR}/news/p5-NNTPClient \
p5-Time-modules>=0:${PORTSDIR}/devel/p5-Time-modules
NO_BUILD= yes
-USES= perl5
-
-NO_STAGE= yes
-post-patch:
- @${REINPLACE_CMD} -e 's|^#!/usr/bin/perl|#!${PERL}|' ${WRKSRC}/newsgrab.pl
+USES= perl5 shebangfix
+SHEBANG_FILES= newsgrab.pl
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/newsgrab.pl ${PREFIX}/bin/newsgrab
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${PREFIX}/share/doc/newsgrab
- ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/newsgrab
- ${INSTALL_DATA} ${WRKSRC}/newsgrabrc ${PREFIX}/share/doc/newsgrab
-.endif
+ ${INSTALL_SCRIPT} ${WRKSRC}/newsgrab.pl ${STAGEDIR}${PREFIX}/bin/newsgrab
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/doc/newsgrab
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${PREFIX}/share/doc/newsgrab
+ ${INSTALL_DATA} ${WRKSRC}/newsgrabrc ${STAGEDIR}${PREFIX}/share/doc/newsgrab
.include <bsd.port.mk>