This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix ExtUtils-CBuilder tests for Perl 5.6
[perl5.git] / dist / ExtUtils-CBuilder / Makefile.PL
index 57014a3..431f421 100644 (file)
@@ -1,52 +1,65 @@
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.010.
 use strict;
 use warnings;
 
 use strict;
 use warnings;
 
-use ExtUtils::MakeMaker 6.30;
+
+
+use ExtUtils::MakeMaker;
 
 my %WriteMakefileArgs = (
 
 my %WriteMakefileArgs = (
-  "NAME" => "ExtUtils::CBuilder",
-  "VERSION_FROM" => "lib/ExtUtils/CBuilder.pm",
-  "ABSTRACT_FROM" => "lib/ExtUtils/CBuilder.pm",
+  "ABSTRACT" => "Compile and link C code for Perl modules",
   "AUTHOR" => "Ken Williams <kwilliams\@cpan.org>, The Perl 5 Porters",
   "AUTHOR" => "Ken Williams <kwilliams\@cpan.org>, The Perl 5 Porters",
-  "BUILD_REQUIRES" => {
-    "Test::More" => "0.47"
-  },
   "CONFIGURE_REQUIRES" => {
   "CONFIGURE_REQUIRES" => {
-    "ExtUtils::MakeMaker" => "6.30"
+    "ExtUtils::MakeMaker" => 0
   },
   },
-  "EXE_FILES" => [],
-  "INSTALLDIRS" => ($] < 5.011 ? 'perl' : 'site'),
+  "DISTNAME" => "ExtUtils-CBuilder",
   "LICENSE" => "perl",
   "LICENSE" => "perl",
+  "NAME" => "ExtUtils::CBuilder",
   "PREREQ_PM" => {
     "Cwd" => 0,
   "PREREQ_PM" => {
     "Cwd" => 0,
+    "ExtUtils::MakeMaker" => "6.30",
     "File::Basename" => 0,
     "File::Spec" => "3.13",
     "File::Temp" => 0,
     "IO::File" => 0,
     "IPC::Cmd" => 0,
     "File::Basename" => 0,
     "File::Spec" => "3.13",
     "File::Temp" => 0,
     "IO::File" => 0,
     "IPC::Cmd" => 0,
-    "Perl::OSType" => 0,
+    "Perl::OSType" => 1,
     "Text::ParseWords" => 0
   },
     "Text::ParseWords" => 0
   },
+  "TEST_REQUIRES" => {
+    "Test::More" => "0.47"
+  },
+  "VERSION" => "0.280227",
+  "test" => {
+    "TESTS" => "t/*.t"
+  }
 );
 
 );
 
-unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
-  my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
-  my $pp = $WriteMakefileArgs{PREREQ_PM};
-  for my $mod ( keys %$br ) {
-    if ( exists $pp->{$mod} ) {
-      $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod};
-    }
-    else {
-      $pp->{$mod} = $br->{$mod};
-    }
-  }
+
+my %FallbackPrereqs = (
+  "Cwd" => 0,
+  "ExtUtils::MakeMaker" => "6.30",
+  "File::Basename" => 0,
+  "File::Spec" => "3.13",
+  "File::Temp" => 0,
+  "IO::File" => 0,
+  "IPC::Cmd" => 0,
+  "Perl::OSType" => 1,
+  "Test::More" => "0.47",
+  "Text::ParseWords" => 0
+);
+
+
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
+  delete $WriteMakefileArgs{TEST_REQUIRES};
+  delete $WriteMakefileArgs{BUILD_REQUIRES};
+  $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
 }
 
 delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
   unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
 
 $WriteMakefileArgs{INSTALLDIRS} = 'perl'
 }
 
 delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
   unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
 
 $WriteMakefileArgs{INSTALLDIRS} = 'perl'
-    if $] >= 5.009005 && $] <= 5.011000;
+    if "$]" >= 5.009003 && "$]" <= 5.011000;
 
 WriteMakefile(%WriteMakefileArgs);
 
 WriteMakefile(%WriteMakefileArgs);
-