From: Vincent Pit Date: Sun, 4 Oct 2009 07:45:58 +0000 (+0200) Subject: Put prerequisites in their own separate hash X-Git-Tag: v0.10~19 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=9ad632a2da22489824627a6ee04e29599389d971;p=perl%2Fmodules%2FScope-Upper.git Put prerequisites in their own separate hash --- diff --git a/Makefile.PL b/Makefile.PL index 890b7fa..2619ce7 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -15,6 +15,12 @@ if ($^O eq 'MSWin32' && $^V lt v5.9.0) { my $dist = 'Scope-Upper'; +my %PREREQ_PM = ( + 'Exporter' => 0, + 'XSLoader' => 0, + 'base' => 0, +); + my %META = ( configure_requires => { 'ExtUtils::MakeMaker' => 0, @@ -22,6 +28,7 @@ my %META = ( build_requires => { 'ExtUtils::MakeMaker' => 0, 'Test::More' => 0, + %PREREQ_PM, }, dynamic_config => 1, resources => { @@ -40,11 +47,7 @@ WriteMakefile( ABSTRACT_FROM => 'lib/Scope/Upper.pm', PL_FILES => {}, @DEFINES, - PREREQ_PM => { - 'Exporter' => 0, - 'XSLoader' => 0, - 'base' => 0, - }, + PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => 5.006, META_MERGE => \%META, dist => {