aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2013-09-26 14:35:39 +0800
committerjgh <jgh@FreeBSD.org>2013-09-26 14:35:39 +0800
commit619dd0956fa5e7404cbf48b3e0e3ee8bd4596211 (patch)
tree131c87c3c9c0210f1ca5491a05c5e46b95dcb572 /deskutils
parent5f49d6ded41d7c1367329b0d7dc5d68bc8a4e2cd (diff)
downloadfreebsd-ports-gnome-619dd0956fa5e7404cbf48b3e0e3ee8bd4596211.tar.gz
freebsd-ports-gnome-619dd0956fa5e7404cbf48b3e0e3ee8bd4596211.tar.zst
freebsd-ports-gnome-619dd0956fa5e7404cbf48b3e0e3ee8bd4596211.zip
- support staging
- adopt USES=shebangfix
Diffstat (limited to 'deskutils')
-rw-r--r--deskutils/dailystrips/Makefile28
-rw-r--r--deskutils/dailystrips/pkg-plist11
2 files changed, 21 insertions, 18 deletions
diff --git a/deskutils/dailystrips/Makefile b/deskutils/dailystrips/Makefile
index c71e27a3e0c8..b61bad946f1c 100644
--- a/deskutils/dailystrips/Makefile
+++ b/deskutils/dailystrips/Makefile
@@ -17,37 +17,29 @@ RUN_DEPENDS= p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
p5-TimeDate>=0:${PORTSDIR}/devel/p5-TimeDate
NO_BUILD= yes
-USES= perl5
-
-PORTDOCS= *
-PLIST_FILES= bin/dailystrips \
- bin/dailystrips-clean \
- bin/dailystrips-update \
- share/dailystrips/strips.def
-PLIST_DIRS= share/dailystrips
+USES= perl5 shebangfix
+SHEBANG_FILES= ${WRKSRC}/dailystrips*
PORTSCOUT= limit:^1\.0\.
-NO_STAGE= yes
post-patch:
- @${REINPLACE_CMD} 's|^#!/usr/bin/perl|#!${PERL}|; \
- s!/usr/share/dailystrips/strips.def!${DATADIR}/strips.def!' \
+ @${REINPLACE_CMD} ' s!/usr/share/dailystrips/strips.def!${DATADIR}/strips.def!' \
${WRKSRC}/dailystrips ${WRKSRC}/dailystrips-clean \
${WRKSRC}/dailystrips-update
.include <bsd.port.options.mk>
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/dailystrips ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/dailystrips-clean ${PREFIX}/bin
- ${INSTALL_SCRIPT} ${WRKSRC}/dailystrips-update ${PREFIX}/bin
- @${MKDIR} ${DATADIR}
- ${INSTALL_SCRIPT} ${WRKSRC}/strips.def ${DATADIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/dailystrips ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/dailystrips-clean ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/dailystrips-update ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_SCRIPT} ${WRKSRC}/strips.def ${STAGEDIR}${DATADIR}
.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in README README.DEFS README.LOCAL README.dailystrips-clean \
README.dailystrips-update
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
diff --git a/deskutils/dailystrips/pkg-plist b/deskutils/dailystrips/pkg-plist
new file mode 100644
index 000000000000..a1af3c4aba9a
--- /dev/null
+++ b/deskutils/dailystrips/pkg-plist
@@ -0,0 +1,11 @@
+bin/dailystrips
+bin/dailystrips-clean
+bin/dailystrips-update
+%%DATADIR%%/strips.def
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/README.DEFS
+%%PORTDOCS%%%%DOCSDIR%%/README.LOCAL
+%%PORTDOCS%%%%DOCSDIR%%/README.dailystrips-clean
+%%PORTDOCS%%%%DOCSDIR%%/README.dailystrips-update
+%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
+@dirrmtry %%DATADIR%%