From: Vincent Pit Date: Sun, 4 Oct 2009 07:41:36 +0000 (+0200) Subject: Put prerequisites in their own separate hash X-Git-Tag: v0.05~7 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=5c70b731adb5c21d9d9bcbc2aff7d8d7721c48bd;p=perl%2Fmodules%2FPerl-Critic-Policy-Dynamic-NoIndirect.git Put prerequisites in their own separate hash --- diff --git a/Makefile.PL b/Makefile.PL index d02fb5d..21d0cd9 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -6,6 +6,14 @@ use ExtUtils::MakeMaker; my $dist = 'Perl-Critic-Policy-Dynamic-NoIndirect'; +my %PREREQ_PM = ( + 'Carp' => 0, + 'Perl::Critic::Utils' => 0, + 'Perl::Critic::DynamicPolicy' => 0, + 'base' => 0, + 'indirect' => '0.16', +); + my %META = ( configure_requires => { 'ExtUtils::MakeMaker' => 0, @@ -14,6 +22,7 @@ my %META = ( 'ExtUtils::MakeMaker' => 0, 'Perl::Critic::TestUtils' => 0, 'Test::More' => 0, + %PREREQ_PM, }, dynamic_config => 0, resources => { @@ -31,13 +40,7 @@ WriteMakefile( VERSION_FROM => 'lib/Perl/Critic/Policy/Dynamic/NoIndirect.pm', ABSTRACT_FROM => 'lib/Perl/Critic/Policy/Dynamic/NoIndirect.pm', PL_FILES => {}, - PREREQ_PM => { - 'Carp' => 0, - 'Perl::Critic::Utils' => 0, - 'Perl::Critic::DynamicPolicy' => 0, - 'base' => 0, - 'indirect' => '0.16', - }, + PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => 5.008, META_MERGE => \%META, dist => {