From a79321e3525bffe75942a776ff973cb10a80589b Mon Sep 17 00:00:00 2001 From: Yen-Ming Lee Date: Sun, 19 Feb 2006 17:35:38 +0000 Subject: - unbreak it on old perl - fix plist --- net-p2p/p5-Net-BitTorrent-File/Makefile | 18 +++++++++++++++--- net-p2p/p5-Net-BitTorrent-File/pkg-plist | 8 +++++--- 2 files changed, 20 insertions(+), 6 deletions(-) (limited to 'net-p2p/p5-Net-BitTorrent-File') diff --git a/net-p2p/p5-Net-BitTorrent-File/Makefile b/net-p2p/p5-Net-BitTorrent-File/Makefile index 44891551fb44..eb227ab01b39 100644 --- a/net-p2p/p5-Net-BitTorrent-File/Makefile +++ b/net-p2p/p5-Net-BitTorrent-File/Makefile @@ -16,9 +16,10 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-fix MAINTAINER= mor@WhiteLuna.com COMMENT= Perl5 module for handles loading and saveing of .torrent file -BUILD_DEPENDS= ${SITE_PERL}/Convert/Bencode.pm:${PORTSDIR}/converters/p5-Convert-Bencode \ +RUN_DEPENDS= ${SITE_PERL}/Convert/Bencode.pm:${PORTSDIR}/converters/p5-Convert-Bencode \ ${SITE_PERL}/${PERL_ARCH}/Digest/SHA1.pm:${PORTSDIR}/security/p5-Digest-SHA1 -RUN_DEPENDS= ${BUILD_DEPENDS} +BUILD_DEPENDS= ${RUN_DEPENDS} +BUILD_DEPENDS+= ${SITE_PERL}/Test/Simple.pm:${PORTSDIR}/devel/p5-Test-Simple WRKSRC= ${WRKDIR}/${DISTNAME:S/-fix//} @@ -26,4 +27,15 @@ PERL_CONFIGURE= yes MAN3= Net::BitTorrent::File.3 -.include +.include + +.if ${PERL_LEVEL} < 500600 +post-patch: + ${REINPLACE_CMD} -e '/warnings/d' ${WRKSRC}/lib/Net/BitTorrent/File.pm + ${FIND} ${WRKSRC} -name "*.bak" -delete + +post-configure: + ${PERL} -pi -e 's/-I\S+PERL\S+ //g if m{PERL_DL_NONLAZY}' ${WRKSRC}/Makefile +.endif + +.include diff --git a/net-p2p/p5-Net-BitTorrent-File/pkg-plist b/net-p2p/p5-Net-BitTorrent-File/pkg-plist index 69dda328ced9..b6f6506fb383 100644 --- a/net-p2p/p5-Net-BitTorrent-File/pkg-plist +++ b/net-p2p/p5-Net-BitTorrent-File/pkg-plist @@ -1,5 +1,7 @@ -%%SITE_PERL%%/mach/auto/Net/BitTorrent/File/.packlist +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/BitTorrent/File/.packlist %%SITE_PERL%%/Net/BitTorrent/File.pm -@dirrmtry %%SITE_PERL%%/mach/auto/Net/BitTorrent/File -@dirrmtry %%SITE_PERL%%/mach/auto/Net/BitTorrent +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/BitTorrent/File +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net/BitTorrent +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Net @dirrmtry %%SITE_PERL%%/Net/BitTorrent +@dirrmtry %%SITE_PERL%%/Net -- cgit v1.2.3