]> git.vpit.fr Git - perl/modules/Thread-Cleanup.git/commitdiff
Put prerequisites in their own separate hash
authorVincent Pit <vince@profvince.com>
Sun, 4 Oct 2009 07:50:01 +0000 (09:50 +0200)
committerVincent Pit <vince@profvince.com>
Sun, 4 Oct 2009 07:50:01 +0000 (09:50 +0200)
Makefile.PL

index 8a8edbbefa291dead2750f22fddffc9b653df578..d54e1e08d1ff9dfd03ad7fad5c7799c8463c083a 100644 (file)
@@ -6,6 +6,11 @@ use ExtUtils::MakeMaker;
 
 my $dist = 'Thread-Cleanup';
 
+my %PREREQ_PM = (
+ 'XSLoader' => 0,
+ 'threads'  => '1.07',
+);
+
 my %META = (
  configure_requires => {
   'ExtUtils::MakeMaker' => 0,
@@ -14,6 +19,7 @@ my %META = (
   'ExtUtils::MakeMaker' => 0,
   'Test::More'          => 0,
   'threads::shared'     => '0.91',
+  %PREREQ_PM,
  },
  dynamic_config => 0,
  resources => {
@@ -31,10 +37,7 @@ WriteMakefile(
     VERSION_FROM     => 'lib/Thread/Cleanup.pm',
     ABSTRACT_FROM    => 'lib/Thread/Cleanup.pm',
     PL_FILES         => {},
-    PREREQ_PM        => {
-        'XSLoader'      => 0,
-        'threads'       => '1.07',
-    },
+    PREREQ_PM        => \%PREREQ_PM,
     MIN_PERL_VERSION => 5.008,
     META_MERGE       => \%META,
     dist             => {