From: Vincent Pit Date: Sun, 4 Oct 2009 07:46:47 +0000 (+0200) Subject: Put prerequisites in their own separate hash X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FSub-Nary.git;a=commitdiff_plain;h=a9c414973d1c28519f4b527dffe0f2a45986e84a Put prerequisites in their own separate hash --- diff --git a/Makefile.PL b/Makefile.PL index f83bd21..aaf4295 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -6,6 +6,12 @@ use ExtUtils::MakeMaker; my $dist = 'Sub-Nary'; +my %PREREQ_PM = ( + 'B' => 0, + 'Carp' => 0, + 'XSLoader' => 0, +); + 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/Sub/Nary.pm', ABSTRACT_FROM => 'lib/Sub/Nary.pm', PL_FILES => {}, - PREREQ_PM => { - 'B' => 0, - 'Carp' => 0, - 'XSLoader' => 0 - }, + PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => 5.008001, META_MERGE => \%META, dist => {