From: Vincent Pit Date: Sun, 4 Oct 2009 07:59:08 +0000 (+0200) Subject: Put prerequisites in their own separate hash X-Git-Tag: v0.03~21 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=b02c8b9901366830eaec3e39ad3683e9fa5b387b;p=perl%2Fmodules%2Fwith.git Put prerequisites in their own separate hash --- diff --git a/Makefile.PL b/Makefile.PL index eee03c0..953f578 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -6,6 +6,14 @@ use ExtUtils::MakeMaker; my $dist = 'with'; +my %PREREQ_PM = ( + 'Carp' => 0, + 'Filter::Util::Call' => 0, + 'Scalar::Util' => 0, + 'Sub::Prototype::Util' => '0.08', + 'Text::Balanced' => 0, +); + my %META = ( configure_requires => { 'ExtUtils::MakeMaker' => 0, @@ -13,6 +21,7 @@ my %META = ( build_requires => { 'ExtUtils::MakeMaker' => 0, 'Test::More' => 0, + %PREREQ_PM, }, dynamic_config => 0, resources => { @@ -30,13 +39,7 @@ WriteMakefile( VERSION_FROM => 'lib/with.pm', ABSTRACT_FROM => 'lib/with.pm', PL_FILES => {}, - PREREQ_PM => { - 'Carp' => 0, - 'Filter::Util::Call' => 0, - 'Scalar::Util' => 0, - 'Sub::Prototype::Util' => 0.08, - 'Text::Balanced' => 0, - }, + PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => 5.009004, META_MERGE => \%META, dist => {