diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2016-08-06 17:01:02 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2016-08-06 17:01:02 +0800 |
commit | 2b54f5d14847d425c9f6ed3b7477287dece3d11c (patch) | |
tree | f4ba31e5dbe4b1b2033dc0bafc1ebdb7575c06ee /www | |
parent | dbb94f93e954b734e97a80e337b908950becc75c (diff) | |
download | freebsd-ports-gnome-2b54f5d14847d425c9f6ed3b7477287dece3d11c.tar.gz freebsd-ports-gnome-2b54f5d14847d425c9f6ed3b7477287dece3d11c.tar.zst freebsd-ports-gnome-2b54f5d14847d425c9f6ed3b7477287dece3d11c.zip |
- Switch to options helpers
- Simplify installation
Diffstat (limited to 'www')
-rw-r--r-- | www/htmlpp/Makefile | 22 | ||||
-rw-r--r-- | www/htmlpp/pkg-plist | 11 |
2 files changed, 13 insertions, 20 deletions
diff --git a/www/htmlpp/Makefile b/www/htmlpp/Makefile index 6a0cf2269505..9d98f72c2f60 100644 --- a/www/htmlpp/Makefile +++ b/www/htmlpp/Makefile @@ -15,20 +15,24 @@ LICENSE= GPLv2+ USES= perl5 shebangfix tar:tgz SHEBANG_FILES= htmlpp - NO_WRKSUBDIR= yes NO_BUILD= yes NO_ARCH= yes +PORTDOCS= * + +OPTIONS_DEFINE= DOCS + do-install: - ${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL} - ${INSTALL_SCRIPT} ${WRKSRC}/htmlpp ${STAGEDIR}${PREFIX}/bin/htmlpp - ${INSTALL_DATA} ${WRKSRC}/htmlpp.d ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/htmlpp.d - (cd ${WRKSRC}; for FILE in *.pl; do ${INSTALL_DATA} $${FILE} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/$${FILE}; done) - (cd ${WRKSRC}; for FILE in *.def; do ${INSTALL_DATA} $${FILE} ${STAGEDIR}${PREFIX}/bin/$${FILE}; done) + @${MKDIR} ${STAGEDIR}${PREFIX}/${SITE_PERL_REL} + ${INSTALL_SCRIPT} ${WRKSRC}/htmlpp ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_DATA} ${WRKSRC}/*.def ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_DATA} ${WRKSRC}/*.pl ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/ + ${INSTALL_DATA} ${WRKSRC}/htmlpp.d ${STAGEDIR}${PREFIX}/${SITE_PERL_REL}/ ${INSTALL_DATA} ${WRKSRC}/guru_opt.fmt ${STAGEDIR}${PREFIX}/bin/guru.fmt - (cd ${WRKSRC}; ${MKDIR} ${STAGEDIR}${DOCSDIR}; for FILE in *.htm; do ${INSTALL_DATA} $${FILE} ${STAGEDIR}${DOCSDIR}/$${FILE}; done) - (cd ${WRKSRC}; for FILE in *.gif; do ${INSTALL_DATA} $${FILE} ${STAGEDIR}${DOCSDIR}/$${FILE}; done) - (cd ${WRKSRC}; for FILE in *.txt; do ${INSTALL_DATA} $${FILE} ${STAGEDIR}${DOCSDIR}/$${FILE}; done) + +do-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC} && ${INSTALL_DATA} *.htm *.gif *.txt ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/www/htmlpp/pkg-plist b/www/htmlpp/pkg-plist index df36d638e638..282ba65be5b4 100644 --- a/www/htmlpp/pkg-plist +++ b/www/htmlpp/pkg-plist @@ -11,14 +11,3 @@ bin/guru.fmt %%SITE_PERL%%/sfldate.pl %%SITE_PERL%%/shellwd.pl %%SITE_PERL%%/textdb.pl -share/doc/htmlpp/index.htm -share/doc/htmlpp/index1.htm -share/doc/htmlpp/index2.htm -share/doc/htmlpp/index3.htm -share/doc/htmlpp/index4.htm -share/doc/htmlpp/index5.htm -share/doc/htmlpp/htmlpp1.gif -share/doc/htmlpp/im0096c.gif -share/doc/htmlpp/newstone.gif -share/doc/htmlpp/gurutst.txt -share/doc/htmlpp/htmlpp.txt |