aboutsummaryrefslogtreecommitdiffstats
path: root/lang/p5-Switch/Makefile
diff options
context:
space:
mode:
authortobez <tobez@FreeBSD.org>2008-11-29 04:56:41 +0800
committertobez <tobez@FreeBSD.org>2008-11-29 04:56:41 +0800
commit9899443b27b5697e7cc4122d3c61ef97f4f7c784 (patch)
tree351e674a10ea32b612072e20dedd07f77ad037c5 /lang/p5-Switch/Makefile
parent35ba20df22babaa8d7d521238dbf12f35c4336b0 (diff)
downloadfreebsd-ports-gnome-9899443b27b5697e7cc4122d3c61ef97f4f7c784.tar.gz
freebsd-ports-gnome-9899443b27b5697e7cc4122d3c61ef97f4f7c784.tar.zst
freebsd-ports-gnome-9899443b27b5697e7cc4122d3c61ef97f4f7c784.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
Diffstat (limited to 'lang/p5-Switch/Makefile')
-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>