aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2009-12-04 04:59:09 +0800
committerleeym <leeym@FreeBSD.org>2009-12-04 04:59:09 +0800
commit0ece6348f9aa267fa4657279800ac496cce97477 (patch)
tree45691b01bb4ee9e27e0e2766cc1f017c6e921fe6 /devel
parent0a5c3906189f100cbb8945d9542f2640135ecdfb (diff)
downloadfreebsd-ports-gnome-0ece6348f9aa267fa4657279800ac496cce97477.tar.gz
freebsd-ports-gnome-0ece6348f9aa267fa4657279800ac496cce97477.tar.zst
freebsd-ports-gnome-0ece6348f9aa267fa4657279800ac496cce97477.zip
- simplify dependencies
- bump PORTREVISION
Diffstat (limited to 'devel')
-rw-r--r--devel/p5-Smart-Comments/Makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/devel/p5-Smart-Comments/Makefile b/devel/p5-Smart-Comments/Makefile
index 883528b1c464..f297df53c9d7 100644
--- a/devel/p5-Smart-Comments/Makefile
+++ b/devel/p5-Smart-Comments/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Smart-Comments
PORTVERSION= 1.0.4
+PORTREVISION= 1
CATEGORIES= devel perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= ../../authors/id/C/CH/CHORNY
@@ -15,15 +16,18 @@ PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= Comments that do more than just sit there
-BUILD_DEPENDS= p5-Filter-Simple>=0.80:${PORTSDIR}/textproc/p5-Filter-Simple \
- p5-Text-Balanced>=2.0:${PORTSDIR}/textproc/p5-Text-Balanced \
- ${SITE_PERL}/${PERL_ARCH}/version.pm:${PORTSDIR}/devel/p5-version \
- ${SITE_PERL}/${PERL_ARCH}/List/Util.pm:${PORTSDIR}/lang/p5-Scalar-List-Utils \
- ${SITE_PERL}/${PERL_ARCH}/Data/Dumper.pm:${PORTSDIR}/devel/p5-Data-Dumper
-RUN_DEPENDS= ${BUILD_DEPENDS}
-
PERL_MODBUILD= yes
MAN3= Smart::Comments.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500900
+RUN_DEPENDS+= p5-version>=0:${PORTSDIR}/devel/p5-version
+.endif
+
+.if ${PERL_LEVEL} < 500905
+RUN_DEPENDS+= p5-Text-Balanced>=2:${PORTSDIR}/textproc/p5-Text-Balanced
+.endif
+
+.include <bsd.port.post.mk>