aboutsummaryrefslogtreecommitdiff
path: root/converters
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2006-02-19 17:30:21 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2006-02-19 17:30:21 +0000
commit3226f4727dd21229dfaca3d2bb8372e973a96714 (patch)
tree9311733a2cda75b08e0f174459edc4cce96207ea /converters
parentfb303359bcfbf32077530057f556c368c03f8c2e (diff)
downloadports-3226f4727dd21229dfaca3d2bb8372e973a96714.tar.gz
ports-3226f4727dd21229dfaca3d2bb8372e973a96714.zip
Notes
Diffstat (limited to 'converters')
-rw-r--r--converters/p5-Convert-Bencode/Makefile17
-rw-r--r--converters/p5-Convert-Bencode/files/extrapatch-lib-Convert-Bencode.pm25
-rw-r--r--converters/p5-Convert-Bencode/pkg-plist2
3 files changed, 42 insertions, 2 deletions
diff --git a/converters/p5-Convert-Bencode/Makefile b/converters/p5-Convert-Bencode/Makefile
index fd4199895184..147002be4505 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 000000000000..febea4742d9e
--- /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 7d1f1aea0fd4..e0c803d19b54 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