diff options
author | leeym <leeym@FreeBSD.org> | 2006-02-20 01:30:21 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2006-02-20 01:30:21 +0800 |
commit | f84bc556b992b8ee87bc17d8e3e50b2bac088d2b (patch) | |
tree | c73407eb49335e55db827afd71d702d52f83f9bc /converters | |
parent | 33cd54713877e65b60db4042c386cbac79728fcb (diff) | |
download | freebsd-ports-graphics-f84bc556b992b8ee87bc17d8e3e50b2bac088d2b.tar.gz freebsd-ports-graphics-f84bc556b992b8ee87bc17d8e3e50b2bac088d2b.tar.zst freebsd-ports-graphics-f84bc556b992b8ee87bc17d8e3e50b2bac088d2b.zip |
- unbreak on old perl
- bump PORTREVISION
Diffstat (limited to 'converters')
-rw-r--r-- | converters/p5-Convert-Bencode/Makefile | 17 | ||||
-rw-r--r-- | converters/p5-Convert-Bencode/files/extrapatch-lib-Convert-Bencode.pm | 25 | ||||
-rw-r--r-- | converters/p5-Convert-Bencode/pkg-plist | 2 |
3 files changed, 42 insertions, 2 deletions
diff --git a/converters/p5-Convert-Bencode/Makefile b/converters/p5-Convert-Bencode/Makefile index fd419989518..147002be450 100644 --- a/converters/p5-Convert-Bencode/Makefile +++ b/converters/p5-Convert-Bencode/Makefile @@ -7,6 +7,7 @@ PORTNAME= Convert-Bencode PORTVERSION= 1.03 +PORTREVISION= 1 CATEGORIES= converters perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= Convert @@ -15,8 +16,22 @@ PKGNAMEPREFIX= p5- MAINTAINER= mor@WhiteLuna.com COMMENT= This module provides encode and decode bencoded strings respectivly +BUILD_DEPENDS= ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple + PERL_CONFIGURE= yes MAN3= Convert::Bencode.3 -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if ${PERL_LEVEL} < 500600 +EXTRA_PATCHES= ${PATCHDIR}/extrapatch-lib-Convert-Bencode.pm + +post-patch: + ${FIND} ${WRKSRC} -name "*.orig" -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> diff --git a/converters/p5-Convert-Bencode/files/extrapatch-lib-Convert-Bencode.pm b/converters/p5-Convert-Bencode/files/extrapatch-lib-Convert-Bencode.pm new file mode 100644 index 00000000000..febea4742d9 --- /dev/null +++ b/converters/p5-Convert-Bencode/files/extrapatch-lib-Convert-Bencode.pm @@ -0,0 +1,25 @@ +--- lib/Convert/Bencode.pm.orig Tue Oct 7 05:07:53 2003 ++++ lib/Convert/Bencode.pm Mon Feb 20 01:00:56 2006 +@@ -64,12 +64,10 @@ + =cut + + use strict; +-use warnings; +-use bytes; + + BEGIN { + use Exporter (); +- our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, @EXPORT_FAIL, %EXPORT_TAGS); ++ use vars qw($VERSION @ISA @EXPORT @EXPORT_OK @EXPORT_FAIL %EXPORT_TAGS); + + $VERSION = 1.03; + @ISA = qw(Exporter); +@@ -77,7 +75,7 @@ + @EXPORT_FAIL = qw(&_dechunk); + %EXPORT_TAGS = (all => [qw(&bencode &bdecode)]); + } +-our @EXPORT_OK; ++use vars @EXPORT_OK; + + END { } + diff --git a/converters/p5-Convert-Bencode/pkg-plist b/converters/p5-Convert-Bencode/pkg-plist index 7d1f1aea0fd..e0c803d19b5 100644 --- a/converters/p5-Convert-Bencode/pkg-plist +++ b/converters/p5-Convert-Bencode/pkg-plist @@ -3,4 +3,4 @@ @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Convert/Bencode @dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Convert @dirrmtry %%SITE_PERL%%/auto/Convert -@dirrmtry %%SITE_PERL%%/Convert
\ No newline at end of file +@dirrmtry %%SITE_PERL%%/Convert |