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

index 136c02090df2b96a6fd8e75e4801da929bcfa448..9011218ec5118d9b6e5a574f6172121e0dab9083 100644 (file)
@@ -6,6 +6,19 @@ use ExtUtils::MakeMaker;
 
 my $dist = 'CPANPLUS-Dist-Gentoo';
 
+my %PREREQ_PM = (
+ 'Carp'              => 0,
+ 'CPANPLUS'          => 0,
+ 'Cwd'               => 0,
+ 'List::Util'        => 0,
+ 'File::Copy'        => 0,
+ 'File::Path'        => 0,
+ 'File::Spec'        => 0,
+ 'IPC::Cmd'          => 0,
+ 'Parse::CPAN::Meta' => 0,
+ 'base'              => 0,
+);
+
 my %META = (
  configure_requires => {
   'ExtUtils::MakeMaker' => 0,
@@ -13,6 +26,7 @@ my %META = (
  build_requires => {
   'ExtUtils::MakeMaker' => 0,
   'Test::More'          => 0,
+  %PREREQ_PM,
  },
  dynamic_config => 0,
  resources => {
@@ -30,18 +44,7 @@ WriteMakefile(
     VERSION_FROM     => 'lib/CPANPLUS/Dist/Gentoo.pm',
     ABSTRACT_FROM    => 'lib/CPANPLUS/Dist/Gentoo.pm',
     PL_FILES         => {},
-    PREREQ_PM        => {
-        'Carp'              => 0,
-        'CPANPLUS'          => 0,
-        'Cwd'               => 0,
-        'List::Util'        => 0,
-        'File::Copy'        => 0,
-        'File::Path'        => 0,
-        'File::Spec'        => 0,
-        'IPC::Cmd'          => 0,
-        'Parse::CPAN::Meta' => 0,
-        'base'              => 0,
-    },
+    PREREQ_PM        => \%PREREQ_PM,
     MIN_PERL_VERSION => 5.006,
     META_MERGE       => \%META,
     dist             => {