aboutsummaryrefslogtreecommitdiff
path: root/japanese/another-htmllint
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2015-07-22 03:39:42 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2015-07-22 03:39:42 +0000
commitee2eaab410b4268a6987bce385a5cc5898e1bff9 (patch)
tree886f3e3a5e10b69db7bca21b0b9f49e4e086d2de /japanese/another-htmllint
parent23e54d3bb8e3b36b4b64eaee82535cc4b579d47e (diff)
Add www/p5-CGI.pm to RUN_DEPENDS when perl is 5.22 or later.
PR: ports/201615 Submitted by: Yasuhiro KIMURA <yasu@utahime.org>
Notes
Notes: svn path=/head/; revision=392659
Diffstat (limited to 'japanese/another-htmllint')
-rw-r--r--japanese/another-htmllint/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/japanese/another-htmllint/Makefile b/japanese/another-htmllint/Makefile
index bdaba2ae15b9..ce08d10df0d8 100644
--- a/japanese/another-htmllint/Makefile
+++ b/japanese/another-htmllint/Makefile
@@ -18,6 +18,7 @@ DOS2UNIX_FILES= readme.txt
SHEBANG_FILES= htmllint.cgi tagslist.cgi
SUB_FILES= htmllint pkg-message
SUB_LIST+= PERL=${PERL}
+NO_ARCH= YES
OPTIONS_DEFINE= W3M
W3M_DESC= Use w3m to show rendering result
@@ -31,7 +32,11 @@ SEDSUB= ${SED} -i.bak -e 's@%%PREFIX%%@${PREFIX}@ ; s@%%DATADIR%%@${DATADIR}@'
# Please set this!
HTMLLINT_ADMIN?= kuriyama@FreeBSD.org
-.include <bsd.port.options.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} >= 502200
+RUN_DEPENDS+= p5-CGI.pm>=0:${PORTSDIR}/www/p5-CGI.pm
+.endif
do-build:
@${SEDSUB} ${WRKSRC}/htmllintenv
@@ -49,4 +54,4 @@ do-install:
cd ${WRKSRC} && ${INSTALL_DATA} ${PM} ${STAGEDIR}${DATADIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${RULE} ${STAGEDIR}${DATADIR}/rule
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>