diff options
author | mm <mm@FreeBSD.org> | 2010-09-22 00:08:11 +0800 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2010-09-22 00:08:11 +0800 |
commit | 66250384aac316bb7c7e78e17a9f60ee4eef0d73 (patch) | |
tree | ac1208411d08a7a297bc4f544163f0a43e756b59 /net-p2p | |
parent | 48de0cba3d21dae83e5b1fed09e41e79380ef9ec (diff) | |
download | freebsd-ports-gnome-66250384aac316bb7c7e78e17a9f60ee4eef0d73.tar.gz freebsd-ports-gnome-66250384aac316bb7c7e78e17a9f60ee4eef0d73.tar.zst freebsd-ports-gnome-66250384aac316bb7c7e78e17a9f60ee4eef0d73.zip |
Explicitly depend on p5-Digest-MD5 only if PERL_LEVEL < 500703
Explicitly depend on p5-Digest-SHA only if PERL_LEVEL < 501000
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/p5-Net-BitTorrent/Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/net-p2p/p5-Net-BitTorrent/Makefile b/net-p2p/p5-Net-BitTorrent/Makefile index eb60cb70da28..5f19bbfa9b6c 100644 --- a/net-p2p/p5-Net-BitTorrent/Makefile +++ b/net-p2p/p5-Net-BitTorrent/Makefile @@ -7,6 +7,7 @@ PORTNAME= Net-BitTorrent PORTVERSION= 0.052 +PORTREVISION= 1 CATEGORIES= net-p2p perl5 MASTER_SITES= CPAN/../../authors/id/S/SA/SANKO PKGNAMEPREFIX= p5- @@ -14,9 +15,8 @@ PKGNAMEPREFIX= p5- MAINTAINER= perl@FreeBSD.org COMMENT= BitTorrent peer-to-peer protocol class -RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Digest/SHA.pm:${PORTSDIR}/security/p5-Digest-SHA \ - ${SITE_PERL}/${PERL_ARCH}/version.pm:${PORTSDIR}/devel/p5-version -BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/version.pm:${PORTSDIR}/devel/p5-version +BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/version.pm:${PORTSDIR}/devel/p5-version CONFIGURE_ARGS= </dev/null PERL_MODBUILD= yes @@ -36,4 +36,11 @@ MAN3= Net::BitTorrent.3 \ Net::BitTorrent::Util.3 \ Net::BitTorrent::Version.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 +BUILD_DEPENDS+= p5-Digest-SHA>=5.47:${PORTSDIR}/security/p5-Digest-SHA +.endif + +.include <bsd.port.post.mk> |