diff --git a/devel/p5-CPAN-Meta/Makefile b/devel/p5-CPAN-Meta/Makefile index 38e16f064534..0367fb5c7457 100644 --- a/devel/p5-CPAN-Meta/Makefile +++ b/devel/p5-CPAN-Meta/Makefile @@ -3,6 +3,7 @@ PORTNAME= CPAN-Meta PORTVERSION= 2.142060 +PORTREVISION= 1 CATEGORIES= devel perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- @@ -13,11 +14,6 @@ COMMENT= The distribution metadata for a CPAN dist LICENSE= ART10 GPLv1 LICENSE_COMB= dual -BUILD_DEPENDS= p5-CPAN-Meta-Requirements>=2.121:${PORTSDIR}/devel/p5-CPAN-Meta-Requirements \ - p5-CPAN-Meta-YAML>=0.008:${PORTSDIR}/devel/p5-CPAN-Meta-YAML \ - p5-Parse-CPAN-Meta>=1.44.03:${PORTSDIR}/devel/p5-Parse-CPAN-Meta -RUN_DEPENDS:= ${BUILD_DEPENDS} - USE_PERL5= configure USES= perl5 @@ -28,4 +24,16 @@ BUILD_DEPENDS+= p5-JSON-PP>=2.27200:${PORTSDIR}/converters/p5-JSON-PP RUN_DEPENDS+= p5-JSON-PP>=2.27200:${PORTSDIR}/converters/p5-JSON-PP .endif +.if ${PERL_LEVEL} < 501800 +BUILD_DEPENDS+= p5-CPAN-Meta-Requirements>=2.121:${PORTSDIR}/devel/p5-CPAN-Meta-Requirements \ + p5-CPAN-Meta-YAML>=0.008:${PORTSDIR}/devel/p5-CPAN-Meta-YAML +RUN_DEPENDS+= p5-CPAN-Meta-Requirements>=2.121:${PORTSDIR}/devel/p5-CPAN-Meta-Requirements \ + p5-CPAN-Meta-YAML>=0.008:${PORTSDIR}/devel/p5-CPAN-Meta-YAML +.endif + +.if ${PERL_LEVEL} < 502000 +BUILD_DEPENDS+= p5-Parse-CPAN-Meta>=1.44.14:${PORTSDIR}/devel/p5-Parse-CPAN-Meta +RUN_DEPENDS+= p5-Parse-CPAN-Meta>=1.44.14:${PORTSDIR}/devel/p5-Parse-CPAN-Meta +.endif + .include