From: Vincent Pit Date: Sun, 4 Oct 2009 07:51:03 +0000 (+0200) Subject: Put prerequisites in their own separate hash X-Git-Tag: v0.38~7 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=c564dd3d9aa09995215809312226810cbf03823c;p=perl%2Fmodules%2FVariable-Magic.git Put prerequisites in their own separate hash --- diff --git a/Makefile.PL b/Makefile.PL index 8af049a..3d52633 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -54,6 +54,13 @@ if ($^O eq 'MSWin32' && $^V lt v5.10.1) { my $dist = 'Variable-Magic'; +my %PREREQ_PM = ( + 'Carp' => 0, + 'Exporter' => 0, + 'XSLoader' => 0, + 'base' => 0, +); + my %META = ( configure_requires => { 'Config' => 0, @@ -64,6 +71,7 @@ my %META = ( 'Config' => 0, 'ExtUtils::MakeMaker' => 0, 'Test::More' => 0, + %PREREQ_PM, }, dynamic_config => 1, resources => { @@ -82,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 => {