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

index 23c7b1e733a4a2a89a985fee861da619634736f4..96ef2564bd0e090be38d649ed57ec2dac0c625d4 100644 (file)
@@ -6,6 +6,12 @@ use ExtUtils::MakeMaker;
 
 my $dist = 'subs-auto';
 
+my %PREREQ_PM = (
+ 'Carp'            => 0,
+ 'Symbol'          => 0,
+ 'Variable::Magic' => '0.08',
+);
+
 my %META = (
  configure_requires => {
   'ExtUtils::MakeMaker' => 0,
@@ -13,6 +19,7 @@ my %META = (
  build_requires => {
   'ExtUtils::MakeMaker' => 0,
   'Test::More'          => 0,
+  %PREREQ_PM,
  },
  dynamic_config => 0,
  resources => {
@@ -30,11 +37,7 @@ WriteMakefile(
     VERSION_FROM     => 'lib/subs/auto.pm',
     ABSTRACT_FROM    => 'lib/subs/auto.pm',
     PL_FILES         => {},
-    PREREQ_PM        => {
-        'Carp'            => 0,
-        'Symbol'          => 0,
-        'Variable::Magic' => 0.08
-    },
+    PREREQ_PM        => \%PREREQ_PM,
     MIN_PERL_VERSION => 5.010,
     META_MERGE       => \%META,
     dist             => {