aboutsummaryrefslogtreecommitdiff
path: root/lang/p5-Switch
diff options
context:
space:
mode:
authorAnton Berezin <tobez@FreeBSD.org>2008-11-28 20:56:41 +0000
committerAnton Berezin <tobez@FreeBSD.org>2008-11-28 20:56:41 +0000
commitbfe07dfc7788eb16ff146f757992da0278c487b7 (patch)
tree0673c72f3a5dbbf92325e50d79f3f092ecd42d9b /lang/p5-Switch
parent4d5b1f90d2ef19b193f6cbba6c96f9f7b46ab304 (diff)
downloadports-bfe07dfc7788eb16ff146f757992da0278c487b7.tar.gz
ports-bfe07dfc7788eb16ff146f757992da0278c487b7.zip
Fix a 7.5-years old (!) dependency bug uncovered by a change in [bogus]
dependency. This snafu of mine actually predates my getting a commit bit. Bump PORTREVISION. Reported by: QAT bot
Notes
Notes: svn path=/head/; revision=223502
Diffstat (limited to 'lang/p5-Switch')
-rw-r--r--lang/p5-Switch/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/lang/p5-Switch/Makefile b/lang/p5-Switch/Makefile
index cac4a06864eb..d802175a56e8 100644
--- a/lang/p5-Switch/Makefile
+++ b/lang/p5-Switch/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Switch
PORTVERSION= 2.13
+PORTREVISION= 1
CATEGORIES= lang perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= ../../authors/id/R/RG/RGARCIA
@@ -15,12 +16,18 @@ PKGNAMEPREFIX= p5-
MAINTAINER= tobez@FreeBSD.org
COMMENT= Switch - A switch statement for Perl
-BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Filter/Util/Call.pm:${PORTSDIR}/devel/p5-Filter \
- ${SITE_PERL}/Text/Balanced.pm:${PORTSDIR}/devel/p5-Parse-RecDescent
+BUILD_DEPENDS= p5-Filter>0:${PORTSDIR}/devel/p5-Filter
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Switch.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500703
+BUILD_DEPENDS+= p5-Text-Balanced>=0:${PORTSDIR}/textproc/p5-Text-Balanced
+RUN_DEPENDS+= p5-Text-Balanced>=0:${PORTSDIR}/textproc/p5-Text-Balanced
+.endif
+
+.include <bsd.port.post.mk>