]> git.vpit.fr Git - perl/modules/Perl-Critic-Policy-Dynamic-NoIndirect.git/commitdiff
Put prerequisites in their own separate hash
authorVincent Pit <vince@profvince.com>
Sun, 4 Oct 2009 07:41:36 +0000 (09:41 +0200)
committerVincent Pit <vince@profvince.com>
Sun, 4 Oct 2009 07:41:36 +0000 (09:41 +0200)
Makefile.PL

index d02fb5d21ea674ffc986bea67205e77850b9e05d..21d0cd99b0da3ab9592e747b1109c9e35f85867c 100644 (file)
@@ -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             => {