aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlth <lth@FreeBSD.org>2004-06-07 04:33:17 +0800
committerlth <lth@FreeBSD.org>2004-06-07 04:33:17 +0800
commitbce0fd409366ea61d872ffee3e81b90a47e4b9f0 (patch)
tree1b48d510c17ac630ca84c0401d97245455c207a7
parentdacea27f83a8daf3226293488d9f92dfb6a4bc04 (diff)
downloadfreebsd-ports-graphics-bce0fd409366ea61d872ffee3e81b90a47e4b9f0.tar.gz
freebsd-ports-graphics-bce0fd409366ea61d872ffee3e81b90a47e4b9f0.tar.zst
freebsd-ports-graphics-bce0fd409366ea61d872ffee3e81b90a47e4b9f0.zip
- Fix for perl 5.005_03
- Bump PORTREVISION Approved by: erwin (mentor)
-rw-r--r--devel/p5-Test-Manifest/Makefile7
-rw-r--r--devel/p5-Test-Manifest/files/5.005_03-lib::Manifest.pm43
-rw-r--r--devel/p5-Test-Manifest/files/patch-Makefile.PL13
3 files changed, 62 insertions, 1 deletions
diff --git a/devel/p5-Test-Manifest/Makefile b/devel/p5-Test-Manifest/Makefile
index 935b425db1c..3805a78a3f5 100644
--- a/devel/p5-Test-Manifest/Makefile
+++ b/devel/p5-Test-Manifest/Makefile
@@ -7,6 +7,7 @@
PORTNAME= Test-Manifest
PORTVERSION= 0.93
+PORTREVISION= 1
CATEGORIES= devel perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Test
@@ -19,4 +20,8 @@ PERL_CONFIGURE= YES
MAN3= Test::Manifest.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.if ${PERL_LEVEL} <= 500503
+EXTRA_PATCHES= ${FILESDIR}/5.005_03-lib::Manifest.pm
+.endif
+.include <bsd.port.post.mk>
diff --git a/devel/p5-Test-Manifest/files/5.005_03-lib::Manifest.pm b/devel/p5-Test-Manifest/files/5.005_03-lib::Manifest.pm
new file mode 100644
index 00000000000..bca7d2e9503
--- /dev/null
+++ b/devel/p5-Test-Manifest/files/5.005_03-lib::Manifest.pm
@@ -0,0 +1,43 @@
+--- lib/Manifest.pm.orig Fri Feb 20 20:11:18 2004
++++ lib/Manifest.pm Sun Jun 6 16:35:27 2004
+@@ -102,17 +102,17 @@
+ sub get_t_files()
+ {
+ carp( "$Manifest does not exist!" ) unless -e $Manifest;
+- return unless open my( $fh ), $Manifest;
++ return unless open FH, $Manifest;
+
+ my @tests = ();
+
+- while( <$fh> )
++ while( <FH> )
+ {
+ chomp;
+ carp( "test file begins with t/ [$_]" ) if m|^t/|;
+ push @tests, "t/$_" if -e "t/$_";
+ }
+- close $fh;
++ close FH;
+
+ return wantarray ? @tests : join " ", @tests;
+ }
+@@ -131,16 +131,16 @@
+ sub make_test_manifest()
+ {
+ carp( "t/ directory does not exist!" ) unless -d "t";
+- return unless open my( $fh ), "> $Manifest";
++ return unless open FH, "> $Manifest";
+
+ my $count = 0;
+ while( my $file = glob("t/*.t") )
+ {
+ $file =~ s|^t/||;
+- print $fh "$file\n";
++ print FH "$file\n";
+ $count++;
+ }
+- close $fh;
++ close FH;
+
+ return $count;
+ }
diff --git a/devel/p5-Test-Manifest/files/patch-Makefile.PL b/devel/p5-Test-Manifest/files/patch-Makefile.PL
new file mode 100644
index 00000000000..71b1e3f863c
--- /dev/null
+++ b/devel/p5-Test-Manifest/files/patch-Makefile.PL
@@ -0,0 +1,13 @@
+--- Makefile.PL.orig Sun Jun 6 19:22:52 2004
++++ Makefile.PL Sun Jun 6 19:23:02 2004
+@@ -7,8 +7,8 @@
+ 'VERSION_FROM' => 'lib/Manifest.pm',
+
+ 'PREREQ_PM' => {
+- 'Test::More' => '0',
+- 'ExtUtils::MakeMaker' => '6.03',
++# 'Test::More' => '0',
++# 'ExtUtils::MakeMaker' => '6.03',
+ },
+
+ 'PM' =>