Author: kwilliams
Date: Sat Apr 19 20:13:53 2008
New Revision: 11118

Modified:
   ExtUtils-CBuilder/trunk/Build.PL
   ExtUtils-CBuilder/trunk/Makefile.PL

Log:
Add IO::File prereq, make Makefile.PL honor INSTALLDIRS correctly

Modified: ExtUtils-CBuilder/trunk/Build.PL
==============================================================================
--- ExtUtils-CBuilder/trunk/Build.PL    (original)
+++ ExtUtils-CBuilder/trunk/Build.PL    Sat Apr 19 20:13:53 2008
@@ -1,6 +1,14 @@
 use Module::Build;
 
-my $build = Module::Build->new
+my $class = Module::Build->subclass(code => <<'EOF');
+  sub do_create_makefile_pl {
+    my $self = shift;
+    $self->SUPER::do_create_makefile_pl(fh => $fh);
+    $self->do_system(qw(perl -pi -e), q{s/'INSTALLDIRS' => 
'site'/'INSTALLDIRS' => (\$] >= 5.009003 ? 'perl' : 'site')/}, 'Makefile.PL');
+  }
+EOF
+
+my $build = $class->new
   (
    module_name => 'ExtUtils::CBuilder',
    license => 'perl',
@@ -9,6 +17,7 @@
                'File::Spec' => 0,
                'Text::ParseWords' => 0,
                'Cwd' => 0,
+               'IO::File' => 0,
               },
    build_requires => {
                      'Test' => 0,

Modified: ExtUtils-CBuilder/trunk/Makefile.PL
==============================================================================
--- ExtUtils-CBuilder/trunk/Makefile.PL (original)
+++ ExtUtils-CBuilder/trunk/Makefile.PL Sat Apr 19 20:13:53 2008
@@ -1,4 +1,4 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.03
+# Note: this file was auto-generated by Module::Build::Compat version 0.2808_01
 use ExtUtils::MakeMaker;
 WriteMakefile
 (
@@ -8,6 +8,7 @@
                            'Cwd' => '0',
                            'File::Basename' => '0',
                            'File::Spec' => '0',
+                           'IO::File' => '0',
                            'Test' => '0',
                            'Text::ParseWords' => '0'
                          },

Reply via email to