aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Zverev <az@FreeBSD.org>2014-11-10 16:45:43 +0000
committerAndrej Zverev <az@FreeBSD.org>2014-11-10 16:45:43 +0000
commit6d0d2d07ac2873620c3de650b3ee75383805366e (patch)
treeab33d095e3d7bd0eb19c7bd741f134b5e42c26cf
parent365024aa97f7341c30ffd95d785e6b63e656bc3f (diff)
Notes
-rw-r--r--devel/p5-Config-Any/Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/devel/p5-Config-Any/Makefile b/devel/p5-Config-Any/Makefile
index b217359f956e..d26929f357e8 100644
--- a/devel/p5-Config-Any/Makefile
+++ b/devel/p5-Config-Any/Makefile
@@ -3,7 +3,7 @@
PORTNAME= Config-Any
PORTVERSION= 0.24
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -14,8 +14,7 @@ COMMENT= Load class configuration data from a number of file formats
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
-BUILD_DEPENDS= p5-Config-General>=2.47:${PORTSDIR}/devel/p5-Config-General \
- p5-Module-Pluggable>=0:${PORTSDIR}/devel/p5-Module-Pluggable
+BUILD_DEPENDS= p5-Config-General>=2.47:${PORTSDIR}/devel/p5-Config-General
RUN_DEPENDS:= ${BUILD_DEPENDS}
OPTIONS_DEFINE= INI JSON XML YAML
@@ -46,4 +45,12 @@ BUILD_DEPENDS+= p5-YAML-LibYAML>=0:${PORTSDIR}/textproc/p5-YAML-LibYAML
RUN_DEPENDS+= p5-YAML-LibYAML>=0:${PORTSDIR}/textproc/p5-YAML-LibYAML
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} >= 502000
+# Module::Pluggable was first released with perl v5.8.9 and removed from v5.19.0
+RUN_DEPENDS+= p5-Module-Pluggable>=0:${PORTSDIR}/devel/p5-Module-Pluggable
+BUILD_DEPENDS+= p5-Module-Pluggable>=0:${PORTSDIR}/devel/p5-Module-Pluggable
+.endif
+
+.include <bsd.port.post.mk>