diff options
Diffstat (limited to 'devel/p5-Config-Any/Makefile')
-rw-r--r-- | devel/p5-Config-Any/Makefile | 15 |
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> |