diff options
author | bapt <bapt@FreeBSD.org> | 2014-01-28 15:39:39 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-01-28 15:39:39 +0800 |
commit | 2aeffbd22fa80bca3dbbe575566fb7e0c09df712 (patch) | |
tree | fe37d45b941b03ce424ce8557f3d7341a917b59e /www | |
parent | cacb4f757c95390a2471e55503e3932041fa0213 (diff) | |
download | freebsd-ports-gnome-2aeffbd22fa80bca3dbbe575566fb7e0c09df712.tar.gz freebsd-ports-gnome-2aeffbd22fa80bca3dbbe575566fb7e0c09df712.tar.zst freebsd-ports-gnome-2aeffbd22fa80bca3dbbe575566fb7e0c09df712.zip |
Support stage
Fix shebang
Diffstat (limited to 'www')
-rw-r--r-- | www/validator/Makefile | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/www/validator/Makefile b/www/validator/Makefile index 6db77e5b8f3d..321f015e2604 100644 --- a/www/validator/Makefile +++ b/www/validator/Makefile @@ -25,9 +25,11 @@ RUN_DEPENDS= onsgmls:${PORTSDIR}/textproc/opensp \ p5-URI>=0:${PORTSDIR}/net/p5-URI \ p5-XML-LibXML>=0:${PORTSDIR}/textproc/p5-XML-LibXML -USES= perl5 +USES= perl5 shebangfix NO_BUILD= yes USE_PERL5= run +SHEBANG_FILES= httpd/cgi-bin/check \ + httpd/cgi-bin/sendfeedback.pl SUB_FILES= pkg-message validator.conf.sample @@ -35,12 +37,7 @@ OPTIONS_DEFINE= HTML_TIDY OPTIONS_DEFAULT=HTML_TIDY HTML_TIDY_DESC= Enable HTML Markup Cleaning -NO_STAGE= yes -.include <bsd.port.pre.mk> - -.if ${PORT_OPTIONS:MHTML_TIDY} -RUN_DEPENDS+= p5-HTML-Tidy>=0:${PORTSDIR}/textproc/p5-HTML-Tidy -.endif +HTML_TIDY_RUN_DEPENDS= p5-HTML-Tidy>=0:${PORTSDIR}/textproc/p5-HTML-Tidy post-extract: @${RM} ${WRKSRC}/README.cvs @@ -49,17 +46,14 @@ post-extract: @${RM} ${WRKSRC}/htdocs/config/validator.conf pre-install: - @${CP} ${WRKDIR}/validator.conf.sample ${WRKSRC}/htdocs/config/ + ${CP} -f ${WRKDIR}/validator.conf.sample ${WRKSRC}/htdocs/config/ do-install: - ${MKDIR} ${PREFIX}/www/validator/htdocs - ${MKDIR} ${PREFIX}/www/validator/httpd/cgi-bin - ${MKDIR} ${PREFIX}/www/validator/share - (cd ${WRKSRC}/htdocs && ${COPYTREE_SHARE} \* ${PREFIX}/www/validator/htdocs/) - ${INSTALL_SCRIPT} ${WRKSRC}/httpd/cgi-bin/* ${PREFIX}/www/validator/httpd/cgi-bin - (cd ${WRKSRC}/share && ${COPYTREE_SHARE} \* ${PREFIX}/www/validator/share/) - -post-install: - @${CAT} ${PKGMESSAGE} - -.include <bsd.port.post.mk> + ${MKDIR} ${STAGEDIR}${PREFIX}/www/validator/htdocs + ${MKDIR} ${STAGEDIR}${PREFIX}/www/validator/httpd/cgi-bin + ${MKDIR} ${STAGEDIR}${PREFIX}/www/validator/share + (cd ${WRKSRC}/htdocs && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/www/validator/htdocs/) + ${INSTALL_SCRIPT} ${WRKSRC}/httpd/cgi-bin/* ${STAGEDIR}${PREFIX}/www/validator/httpd/cgi-bin + (cd ${WRKSRC}/share && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/www/validator/share/) + +.include <bsd.port.mk> |