]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - Makefile.PL
Put prerequisites in their own separate hash
[perl/modules/Variable-Magic.git] / Makefile.PL
index 5d698c6c7ffdb548c78f2e773eb157137eb7ad01..3d526339fd455dc2d42bf77f5fabfeeed0d76593 100644 (file)
@@ -45,10 +45,22 @@ if ($^O eq 'MSWin32' && $^V lt v5.9.0) {
  push @DEFINES, '-DVMG_MULTIPLICITY=0';
 }
 
+# Fork emulation got "fixed" in 5.10.1
+if ($^O eq 'MSWin32' && $^V lt v5.10.1) {
+ push @DEFINES, '-DVMG_FORKSAFE=0';
+}
+
 @DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
 
 my $dist = 'Variable-Magic';
 
+my %PREREQ_PM = (
+ 'Carp'     => 0,
+ 'Exporter' => 0,
+ 'XSLoader' => 0,
+ 'base'     => 0,
+);
+
 my %META = (
  configure_requires => {
   'Config'              => 0,
@@ -59,7 +71,9 @@ my %META = (
   'Config'              => 0,
   'ExtUtils::MakeMaker' => 0,
   'Test::More'          => 0,
+  %PREREQ_PM,
  },
+ dynamic_config => 1,
  resources => {
   bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
   homepage   => "http://search.cpan.org/dist/$dist/",
@@ -76,12 +90,7 @@ WriteMakefile(
     ABSTRACT_FROM    => 'lib/Variable/Magic.pm',
     PL_FILES         => {},
     @DEFINES,
-    PREREQ_PM        => {
-        'Carp'     => 0,
-        'Exporter' => 0,
-        'XSLoader' => 0,
-        'base'     => 0,
-    },
+    PREREQ_PM        => \%PREREQ_PM,
     MIN_PERL_VERSION => 5.008,
     META_MERGE       => \%META,
     dist             => {