diff options
author | Lars Thegler <lth@FreeBSD.org> | 2004-06-06 20:33:17 +0000 |
---|---|---|
committer | Lars Thegler <lth@FreeBSD.org> | 2004-06-06 20:33:17 +0000 |
commit | 46a8f45e5f0b2e22f285d1fe2be68d05522f7d1e (patch) | |
tree | b3eaf81a1b7a374550789ee9fdf71d68912ab792 | |
parent | Fix pkg-descr and COMMENT. (diff) |
- Fix for perl 5.005_03
- Bump PORTREVISION
Approved by: erwin (mentor)
Notes
Notes:
svn path=/head/; revision=110961
-rw-r--r-- | devel/p5-Test-Manifest/Makefile | 7 | ||||
-rw-r--r-- | devel/p5-Test-Manifest/files/5.005_03-lib::Manifest.pm | 43 | ||||
-rw-r--r-- | devel/p5-Test-Manifest/files/patch-Makefile.PL | 13 |
3 files changed, 62 insertions, 1 deletions
diff --git a/devel/p5-Test-Manifest/Makefile b/devel/p5-Test-Manifest/Makefile index 935b425db1c9..3805a78a3f59 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 000000000000..bca7d2e95035 --- /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 000000000000..71b1e3f863c8 --- /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' => |