aboutsummaryrefslogtreecommitdiff
path: root/deskutils/dailystrips
diff options
context:
space:
mode:
authorJason Helfman <jgh@FreeBSD.org>2013-09-26 06:35:39 +0000
committerJason Helfman <jgh@FreeBSD.org>2013-09-26 06:35:39 +0000
commit768457d8e40d3c3c9c4aa49eebbbffac581118d2 (patch)
tree131c87c3c9c0210f1ca5491a05c5e46b95dcb572 /deskutils/dailystrips
parenta2a39a0648fe8c6bd115ea4125eb5db6f1a0103c (diff)
downloadports-768457d8e40d3c3c9c4aa49eebbbffac581118d2.tar.gz
ports-768457d8e40d3c3c9c4aa49eebbbffac581118d2.zip
Notes
Diffstat (limited to 'deskutils/dailystrips')
-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%%