From: Vincent Pit Date: Sun, 4 Oct 2009 07:58:22 +0000 (+0200) Subject: Put prerequisites in their own separate hash X-Git-Tag: v0.06~15 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fsubs-auto.git;a=commitdiff_plain;h=e75c64d7d6ffe63f58d5284671bf22f73acd0a1a Put prerequisites in their own separate hash --- diff --git a/Makefile.PL b/Makefile.PL index 23c7b1e..96ef256 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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 => {