diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2014-02-27 21:32:50 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2014-02-27 21:32:50 +0800 |
commit | 106ddf3c9f90e28063bb2e1089ee3660b83afafe (patch) | |
tree | c392ccc91b4752d784d549d3d958d67740637db7 /www | |
parent | b6c5d7c3f44673a6d6e6f44410c9b7231f0f50f2 (diff) | |
download | freebsd-ports-gnome-106ddf3c9f90e28063bb2e1089ee3660b83afafe.tar.gz freebsd-ports-gnome-106ddf3c9f90e28063bb2e1089ee3660b83afafe.tar.zst freebsd-ports-gnome-106ddf3c9f90e28063bb2e1089ee3660b83afafe.zip |
- Support staging
- Use shebangfix
- Define EXAMPLES option
Diffstat (limited to 'www')
-rw-r--r-- | www/script4rss/Makefile | 19 | ||||
-rw-r--r-- | www/script4rss/pkg-plist | 4 |
2 files changed, 10 insertions, 13 deletions
diff --git a/www/script4rss/Makefile b/www/script4rss/Makefile index 2ec8086aff6b..ad1243e330a4 100644 --- a/www/script4rss/Makefile +++ b/www/script4rss/Makefile @@ -9,20 +9,21 @@ MASTER_SITES= SF MAINTAINER= ports@FreeBSD.org COMMENT= Easily create scripts to convert HTML pages to RSS feeds -USES= perl5 +USES= perl5 shebangfix USE_BZIP2= yes USE_PERL5= run NO_BUILD= yes -NO_STAGE= yes -post-patch: - @${REINPLACE_CMD} -e "s,#!/usr/bin/perl,#!${SETENV} perl," ${WRKSRC}/script4rss.pl +PLIST_FILES= bin/script4rss +PORTEXAMPLES= * +SHEBANG_FILES= script4rss.pl + +OPTIONS_DEFINE= EXAMPLES do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/script4rss.pl ${PREFIX}/bin/script4rss -.if !defined(NOPORTDOCS) - @${MKDIR} ${EXAMPLESDIR} - ${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR} -.endif + ${INSTALL_SCRIPT} ${WRKSRC}/script4rss.pl \ + ${STAGEDIR}${PREFIX}/bin/script4rss + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> diff --git a/www/script4rss/pkg-plist b/www/script4rss/pkg-plist deleted file mode 100644 index 3ab8343e1d60..000000000000 --- a/www/script4rss/pkg-plist +++ /dev/null @@ -1,4 +0,0 @@ -bin/script4rss -%%PORTDOCS%%%%EXAMPLESDIR%%/plosbiology2rss.s4r -%%PORTDOCS%%%%EXAMPLESDIR%%/sciencenow2rss.s4r -%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% |