Skip to content

Commit

Permalink
Backport to perl 5.005
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.perl.org/modules/Module-Build/trunk@4036 50811bd7-b8ce-0310-adc1-d9db26280581
  • Loading branch information
kenahoo committed Mar 29, 2003
1 parent 88b6427 commit 2bfa2b3
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 15 deletions.
25 changes: 13 additions & 12 deletions Build.PL
Expand Up @@ -13,23 +13,24 @@ my $build = new Module::Build
module_name => 'Module::Build',
license => 'perl',
requires => {
perl => '5.6.0',
perl => '5.005_03',
Config => 0,
Data::Dumper => 0,
File::Basename => 0,
File::Compare => 0,
File::Copy => 0,
File::Find => 0,
File::Path => 0,
File::Spec => 0,
ExtUtils::Install => 0,
'Data::Dumper' => 0,
'File::Basename' => 0,
'File::Compare' => 0,
'File::Copy' => 0,
'File::Find' => 0,
'File::Path' => 0,
'File::Spec' => 0,
'ExtUtils::Install' => 0,
'IO::File' => 0,
Cwd => 0,
},
recommends => {
YAML => 0.35,
Archive::Tar => 0.23,
ExtUtils::Install => 0.30,
ExtUtils::ParseXS => 0,
'Archive::Tar' => 0.23,
'ExtUtils::Install' => 0.30,
'ExtUtils::ParseXS' => 0,
# Module::Signature => 0.21, # Our support isn't good enough yet
},
build_requires => {
Expand Down
3 changes: 2 additions & 1 deletion lib/Module/Build/Compat.pm
Expand Up @@ -4,6 +4,7 @@ $VERSION = '0.02';

use strict;
use File::Spec;
use IO::File;
use Config;

my %makefile_to_build =
Expand Down Expand Up @@ -54,7 +55,7 @@ EOF

sub fake_prereqs {
my $file = File::Spec->catfile('_build', 'prereqs');
open my $fh, "< $file" or die "Can't read $file: $!";
my $fh = IO::File->new("< $file") or die "Can't read $file: $!";
my $prereqs = eval do {local $/; <$fh>};
close $fh;

Expand Down
2 changes: 1 addition & 1 deletion t/common.pl
Expand Up @@ -15,7 +15,7 @@ sub stdout_of {
}

sub slurp {
open my($fh), $_[0] or die "Can't open $_[0]: $!";
my $fh = IO::File->new($_[0]) or die "Can't open $_[0]: $!";
local $/;
return <$fh>;
}
Expand Down
2 changes: 1 addition & 1 deletion t/runthrough.t
Expand Up @@ -56,7 +56,7 @@ if ($HAVE_YAML) {
ok not -e File::Spec->catdir('Sample-0.01', 'blib');

# Make sure all of the above was done by the new version of Module::Build
open my($fh), File::Spec->catfile($goto, 'META.yml');
my $fh = IO::File->new(File::Spec->catfile($goto, 'META.yml'));
my $contents = do {local $/; <$fh>};
ok $contents, "/Module::Build version ". $build->VERSION ."/";

Expand Down

0 comments on commit 2bfa2b3

Please sign in to comment.