aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authortobez <tobez@FreeBSD.org>2003-05-15 17:26:22 +0800
committertobez <tobez@FreeBSD.org>2003-05-15 17:26:22 +0800
commit209f344035d809fe31c23b0d092a22a186e5f94f (patch)
treef0df53339fc41abadbf9a8af29527d164a54945b /devel
parentb71b4d6f8b59ec1a9241dabe668b067bb692a1d8 (diff)
downloadfreebsd-ports-gnome-209f344035d809fe31c23b0d092a22a186e5f94f.tar.gz
freebsd-ports-gnome-209f344035d809fe31c23b0d092a22a186e5f94f.tar.zst
freebsd-ports-gnome-209f344035d809fe31c23b0d092a22a186e5f94f.zip
p5-Params-Validate has an extra module, Attribute::Params::Validate,
which uses Attribute::Handlers, which requires perl 5.6 or above. This is an add-on functionality which is not necessary for main module operation. Make this port work with all supported Perls. PR: 51652 Approved by: maintainer
Diffstat (limited to 'devel')
-rw-r--r--devel/p5-Params-Validate/Makefile10
1 files changed, 2 insertions, 8 deletions
diff --git a/devel/p5-Params-Validate/Makefile b/devel/p5-Params-Validate/Makefile
index a252a99dd703..d931cd1986a5 100644
--- a/devel/p5-Params-Validate/Makefile
+++ b/devel/p5-Params-Validate/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Params-Validate
PORTVERSION= 0.54
+PORTREVISION= 1
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Devel/DROLSKY
@@ -23,14 +24,7 @@ MAN3= Attribute::Params::Validate.3 Params::ValidateXS.3 \
.include <bsd.port.pre.mk>
-##
-## this port depends on devel/p5-Attribute-Handlers
-## which requires PERL 5.6.x or later
-##
-.if ${PERL_LEVEL} < 500600
-IGNORE= Port requires perl 5.6.x or later. Install lang/perl5 then try again
-.endif
-.if ${PERL_LEVEL} < 500800
+.if ${PERL_LEVEL} >= 500600 && ${PERL_LEVEL} < 500800
BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Attribute/Handlers.pm:${PORTSDIR}/devel/p5-Attribute-Handlers
RUN_DEPENDS= ${BUILD_DEPENDS}
.endif