aboutsummaryrefslogtreecommitdiffstats
path: root/japanese
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2015-07-22 11:39:42 +0800
committerkuriyama <kuriyama@FreeBSD.org>2015-07-22 11:39:42 +0800
commitc532b49b6791f5af8e9a21f5a8216e296897e58c (patch)
tree886f3e3a5e10b69db7bca21b0b9f49e4e086d2de /japanese
parentc61aecc2f396e9e614b5491b448a2dc519f714c1 (diff)
downloadfreebsd-ports-gnome-c532b49b6791f5af8e9a21f5a8216e296897e58c.tar.gz
freebsd-ports-gnome-c532b49b6791f5af8e9a21f5a8216e296897e58c.tar.zst
freebsd-ports-gnome-c532b49b6791f5af8e9a21f5a8216e296897e58c.zip
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>
Diffstat (limited to 'japanese')
-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>