aboutsummaryrefslogtreecommitdiff
path: root/net/p5-AnyEvent-Twitter
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2010-09-21 16:08:11 +0000
committerMartin Matuska <mm@FreeBSD.org>2010-09-21 16:08:11 +0000
commit17e550ca2fd180b150f6645ced5f3bb45bc32292 (patch)
treee856fa025c5b15bbef21f621e347c51780662a47 /net/p5-AnyEvent-Twitter
parentb4599e3d63c3a94b17026b18d1f8ac27faac53fc (diff)
downloadports-17e550ca2fd180b150f6645ced5f3bb45bc32292.tar.gz
ports-17e550ca2fd180b150f6645ced5f3bb45bc32292.zip
Explicitly depend on p5-Digest-MD5 only if PERL_LEVEL < 500703
Explicitly depend on p5-Digest-SHA only if PERL_LEVEL < 501000
Notes
Notes: svn path=/head/; revision=261560
Diffstat (limited to 'net/p5-AnyEvent-Twitter')
-rw-r--r--net/p5-AnyEvent-Twitter/Makefile14
1 files changed, 10 insertions, 4 deletions
diff --git a/net/p5-AnyEvent-Twitter/Makefile b/net/p5-AnyEvent-Twitter/Makefile
index 92aee770011b..ca0f2bfa64fb 100644
--- a/net/p5-AnyEvent-Twitter/Makefile
+++ b/net/p5-AnyEvent-Twitter/Makefile
@@ -7,6 +7,7 @@
PORTNAME= AnyEvent-Twitter
PORTVERSION= 0.51
+PORTREVISION= 1
CATEGORIES= net perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
@@ -14,16 +15,21 @@ PKGNAMEPREFIX= p5-
MAINTAINER= sahil@FreeBSD.org
COMMENT= Implementation of the Twitter API for AnyEvent
-BUILD_DEPENDS= p5-AnyEvent>=3.5:${PORTSDIR}/devel/p5-AnyEvent \
+RUN_DEPENDS= p5-AnyEvent>=3.5:${PORTSDIR}/devel/p5-AnyEvent \
p5-AnyEvent-HTTP>=0:${PORTSDIR}/www/p5-AnyEvent-HTTP \
- p5-Digest-SHA>=0:${PORTSDIR}/security/p5-Digest-SHA \
p5-JSON>=0:${PORTSDIR}/converters/p5-JSON \
p5-Net-OAuth>=0:${PORTSDIR}/net/p5-Net-OAuth \
p5-Net-Twitter-Lite>=0:${PORTSDIR}/net/p5-Net-Twitter-Lite
-RUN_DEPENDS= ${BUILD_DEPENDS}
+BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN3= AnyEvent::Twitter.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 501000
+RUN_DEPENDS+= p5-Digest-SHA>=5.47:${PORTSDIR}/security/p5-Digest-SHA
+.endif
+
+.include <bsd.port.post.mk>