svn commit: r442709 - head/japanese/another-htmllint
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Mon Jun 5 23:25:17 UTC 2017
Author: sunpoet
Date: Mon Jun 5 23:25:16 2017
New Revision: 442709
URL: https://svnweb.freebsd.org/changeset/ports/442709
Log:
Remove outdated PERL_LEVEL check
- While I'm here, convert to options target helper
With hat: perl
Approved by: portmgr (blanket)
Modified:
head/japanese/another-htmllint/Makefile
Modified: head/japanese/another-htmllint/Makefile
==============================================================================
--- head/japanese/another-htmllint/Makefile Mon Jun 5 23:25:11 2017 (r442708)
+++ head/japanese/another-htmllint/Makefile Mon Jun 5 23:25:16 2017 (r442709)
@@ -9,7 +9,8 @@ DISTNAME= htmllint
MAINTAINER= kuriyama at FreeBSD.org
COMMENT= Another HTML-lint (all messages are written in Japanese)
-RUN_DEPENDS= p5-libwww>=0:www/p5-libwww \
+RUN_DEPENDS= p5-CGI.pm>=0:www/p5-CGI.pm \
+ p5-libwww>=0:www/p5-libwww \
ja-p5-Jcode>=0:japanese/p5-Jcode
USES= dos2unix perl5 shebangfix zip
@@ -32,20 +33,14 @@ SEDSUB= ${SED} -i.bak -e 's@%%PREFIX%%@${PREFIX}@ ; s
# Please set this!
HTMLLINT_ADMIN?= kuriyama at FreeBSD.org
-.include <bsd.port.pre.mk>
-
-.if ${PERL_LEVEL} >= 502200
-RUN_DEPENDS+= p5-CGI.pm>=0:www/p5-CGI.pm
-.endif
-
do-build:
@${SEDSUB} ${WRKSRC}/htmllintenv
@${MV} ${WRKSRC}/htmllintenv ${WRKSRC}/htmllint.env
@${SEDSUB} ${WRKSRC}/htmllint.cgi
@${SED} -i.bak -e 's|^</address>|</address><br>Maintained by <address>${HTMLLINT_ADMIN}</address>|' ${WRKSRC}/*.html
-.if ${PORT_OPTIONS:MW3M}
+
+do-build-W3M-on:
@${SED} -i.bak -e 's|^#$$W3M|$$W3M|' ${WRKSRC}/htmllint.env
-.endif
do-install:
${MKDIR} ${STAGEDIR}${DATADIR}/rule ${STAGEDIR}${DATADIR}/html
@@ -54,4 +49,4 @@ do-install:
cd ${WRKSRC} && ${INSTALL_DATA} ${PM} ${STAGEDIR}${DATADIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${RULE} ${STAGEDIR}${DATADIR}/rule
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
More information about the svn-ports-head
mailing list