aboutsummaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2012-04-21 13:53:58 +0800
committersunpoet <sunpoet@FreeBSD.org>2012-04-21 13:53:58 +0800
commit86bb47cf30b07bcaa22e5402762e123b70e6d679 (patch)
treeed3218954d1d05ff3b7284a235f9d9a41cfb477c /dns
parent2d602e44d4fd1cc20e7da460b78b2128b1704234 (diff)
downloadfreebsd-ports-gnome-86bb47cf30b07bcaa22e5402762e123b70e6d679.tar.gz
freebsd-ports-gnome-86bb47cf30b07bcaa22e5402762e123b70e6d679.tar.zst
freebsd-ports-gnome-86bb47cf30b07bcaa22e5402762e123b70e6d679.zip
- Fix BUILD_DEPENDS: p5-HTTP-Tiny is in core since Perl 5.13.9 (check PERL_LEVEL against 501400)
Diffstat (limited to 'dns')
-rw-r--r--dns/p5-Mozilla-PublicSuffix/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/dns/p5-Mozilla-PublicSuffix/Makefile b/dns/p5-Mozilla-PublicSuffix/Makefile
index 3ccbcb2b485f..fe0b9f870f52 100644
--- a/dns/p5-Mozilla-PublicSuffix/Makefile
+++ b/dns/p5-Mozilla-PublicSuffix/Makefile
@@ -15,8 +15,7 @@ DISTNAME= ${PORTNAME}-v${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Get public suffix of domain name via Mozilla Public Suffix List
-BUILD_DEPENDS= p5-HTTP-Tiny>=0:${PORTSDIR}/www/p5-HTTP-Tiny \
- p5-Regexp-Common>=0:${PORTSDIR}/textproc/p5-Regexp-Common \
+BUILD_DEPENDS= p5-Regexp-Common>=0:${PORTSDIR}/textproc/p5-Regexp-Common \
p5-URI>=0:${PORTSDIR}/net/p5-URI
RUN_DEPENDS= p5-Regexp-Common>=0:${PORTSDIR}/textproc/p5-Regexp-Common \
p5-URI>=0:${PORTSDIR}/net/p5-URI
@@ -28,4 +27,10 @@ PERL_MODBUILD= yes
MAN3= Mozilla::PublicSuffix.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501400
+BUILD_DEPENDS+= p5-HTTP-Tiny>=0:${PORTSDIR}/www/p5-HTTP-Tiny
+.endif
+
+.include <bsd.port.post.mk>