- unbreak it on old perl

- fix plist
This commit is contained in:
Yen-Ming Lee 2006-02-19 17:35:38 +00:00
parent 3226f4727d
commit a79321e352
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=156399
2 changed files with 20 additions and 6 deletions

View file

@ -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 <bsd.port.mk>
.include <bsd.port.pre.mk>
.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 <bsd.port.post.mk>

View file

@ -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