aboutsummaryrefslogtreecommitdiff
path: root/textproc/p5-PPI
diff options
context:
space:
mode:
authorLars Thegler <lth@FreeBSD.org>2011-06-12 16:02:17 +0000
committerLars Thegler <lth@FreeBSD.org>2011-06-12 16:02:17 +0000
commita5b7be0e114d4cb927c45e727b498a2da0f853b3 (patch)
tree67fafec6a31b7a149699748c3bfe6903ac1388b0 /textproc/p5-PPI
parentbb820b75167525a74d275907cf41f0f7381962b7 (diff)
downloadports-a5b7be0e114d4cb927c45e727b498a2da0f853b3.tar.gz
ports-a5b7be0e114d4cb927c45e727b498a2da0f853b3.zip
- Add PERL_LEVEL check: List::Utils>=1.20 is already in Perl 5.10 and above
- Use new CPAN:id macro - Bump PORTREVISION for dependency change PR: ports/157625 Submitted by: sunpoet
Notes
Notes: svn path=/head/; revision=275449
Diffstat (limited to 'textproc/p5-PPI')
-rw-r--r--textproc/p5-PPI/Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/textproc/p5-PPI/Makefile b/textproc/p5-PPI/Makefile
index a5fae45fb739..fe4147e4fda1 100644
--- a/textproc/p5-PPI/Makefile
+++ b/textproc/p5-PPI/Makefile
@@ -7,8 +7,10 @@
PORTNAME= PPI
PORTVERSION= 1.215
+PORTREVISION= 1
CATEGORIES= textproc perl5
-MASTER_SITES= CPAN/../../authors/id/A/AD/ADAMK
+MASTER_SITES= CPAN
+MASTER_SITE_SUBDIR= CPAN:ADAMK
PKGNAMEPREFIX= p5-
MAINTAINER= lth@FreeBSD.org
@@ -18,10 +20,9 @@ BUILD_DEPENDS= \
p5-Clone>=0.30:${PORTSDIR}/devel/p5-Clone \
p5-IO-String>=1.07:${PORTSDIR}/devel/p5-IO-String \
p5-List-MoreUtils>=0.16:${PORTSDIR}/lang/p5-List-MoreUtils \
- p5-Scalar-List-Utils>=1.20:${PORTSDIR}/lang/p5-Scalar-List-Utils \
p5-Params-Util>=1.00:${PORTSDIR}/devel/p5-Params-Util \
p5-Task-Weaken>0:${PORTSDIR}/devel/p5-Task-Weaken
-RUN_DEPENDS= ${BUILD_DEPENDS}
+RUN_DEPENDS:= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
@@ -115,4 +116,11 @@ MAN3= PPI.3 \
PPI::Transform.3 \
PPI::Transform::UpdateCopyright.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+BUILD_DEPENDS+= p5-Scalar-List-Utils>=1.20:${PORTSDIR}/lang/p5-Scalar-List-Utils
+RUN_DEPENDS+= p5-Scalar-List-Utils>=1.20:${PORTSDIR}/lang/p5-Scalar-List-Utils
+.endif
+
+.include <bsd.port.post.mk>