From: Vincent Pit Date: Sun, 4 Oct 2009 08:00:08 +0000 (+0200) Subject: Put prerequisites in their own separate hash X-Git-Tag: v0.09~12 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLexical-Types.git;a=commitdiff_plain;h=facee3ee62ad8bb8616c8ddbf14579e385cb271d Put prerequisites in their own separate hash --- diff --git a/Makefile.PL b/Makefile.PL index 1b5d0ec..fd2d202 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -15,6 +15,11 @@ if ($^O eq 'MSWin32' && $^V lt v5.9.0) { my $dist = 'Lexical-Types'; +my %PREREQ_PM = ( + 'Carp' => 0, + 'XSLoader' => 0, +); + my %META = ( configure_requires => { 'ExtUtils::MakeMaker' => 0, @@ -23,6 +28,7 @@ my %META = ( 'ExtUtils::MakeMaker' => 0, 'Test::More' => 0, 'constant' => 0, + %PREREQ_PM, }, dynamic_config => 1, resources => { @@ -41,10 +47,7 @@ WriteMakefile( ABSTRACT_FROM => 'lib/Lexical/Types.pm', PL_FILES => {}, @DEFINES, - PREREQ_PM => { - 'Carp' => 0, - 'XSLoader' => 0, - }, + PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => 5.008, META_MERGE => \%META, dist => {