aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorlth <lth@FreeBSD.org>2011-10-04 02:37:39 +0800
committerlth <lth@FreeBSD.org>2011-10-04 02:37:39 +0800
commit0ae1901828c5ac68eca97fd04c859f2329ac5fad (patch)
tree690dbe31d729b79b0a4f727faa2954d42e85949f /devel
parent0b241b72c09672306d166b98197bbf297d64ce1d (diff)
downloadfreebsd-ports-gnome-0ae1901828c5ac68eca97fd04c859f2329ac5fad.tar.gz
freebsd-ports-gnome-0ae1901828c5ac68eca97fd04c859f2329ac5fad.tar.zst
freebsd-ports-gnome-0ae1901828c5ac68eca97fd04c859f2329ac5fad.zip
- Set CPAN::Meta::YAML and JSON:PP as conditional dependencies as they are bundled in Perl 5.14
- Bump PORTREVISION for dependency change PR: ports/160778 Submitted by: sunpoet
Diffstat (limited to 'devel')
-rw-r--r--devel/p5-Parse-CPAN-Meta/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/devel/p5-Parse-CPAN-Meta/Makefile b/devel/p5-Parse-CPAN-Meta/Makefile
index 5be67bcb3c24..4114f28b68b2 100644
--- a/devel/p5-Parse-CPAN-Meta/Makefile
+++ b/devel/p5-Parse-CPAN-Meta/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Parse-CPAN-Meta
PORTVERSION= 1.44.01
+PORTREVISION= 1
CATEGORIES= devel perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:DAGOLDEN
@@ -16,12 +17,17 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:R}${PORTVERSION:E}
MAINTAINER= lth@FreeBSD.org
COMMENT= Parse META.yml and other similar CPAN metadata files
-BUILD_DEPENDS= p5-CPAN-Meta-YAML>=0.002:${PORTSDIR}/devel/p5-CPAN-Meta-YAML \
- p5-JSON-PP>=2.27103:${PORTSDIR}/converters/p5-JSON-PP
-RUN_DEPENDS= ${BUILD_DEPENDS}
-
PERL_CONFIGURE= yes
MAN3= Parse::CPAN::Meta.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501400
+BUILD_DEPENDS+= p5-CPAN-Meta-YAML>=0.002:${PORTSDIR}/devel/p5-CPAN-Meta-YAML \
+ p5-JSON-PP>=2.27103:${PORTSDIR}/converters/p5-JSON-PP
+RUN_DEPENDS+= p5-CPAN-Meta-YAML>=0.002:${PORTSDIR}/devel/p5-CPAN-Meta-YAML \
+ p5-JSON-PP>=2.27103:${PORTSDIR}/converters/p5-JSON-PP
+.endif
+
+.include <bsd.port.post.mk>