From: Vincent Pit Date: Sun, 4 Oct 2009 07:56:53 +0000 (+0200) Subject: Put prerequisites in their own separate hash X-Git-Tag: v0.07~32 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Frgit.git;a=commitdiff_plain;h=f7ec92f82e6efe169eb50934f1d3841ee2bd0143 Put prerequisites in their own separate hash --- diff --git a/Makefile.PL b/Makefile.PL index d6617ff..1ba7a61 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -6,6 +6,17 @@ use ExtUtils::MakeMaker; my $dist = 'rgit'; +my %PREREQ_PM = ( + 'Carp' => 0, + 'Cwd' => 0, + 'Exporter' => 0, + 'File::Find' => 0, + 'File::Spec::Functions' => 0, + 'Object::Tiny' => 0, + 'POSIX' => 0, + 'base' => 0, +); + my %META = ( configure_requires => { 'ExtUtils::MakeMaker' => 0, @@ -16,6 +27,7 @@ my %META = ( 'File::Spec::Functions' => 0, 'File::Temp' => 0, 'Test::More' => 0, + %PREREQ_PM, }, recommends => { 'Term::ReadKey' => 0, @@ -37,16 +49,7 @@ WriteMakefile( ABSTRACT => 'Recursively execute a command on all the git repositories in a directory tree.', PL_FILES => { }, EXE_FILES => [ 'bin/rgit' ], - PREREQ_PM => { - 'Carp' => 0, - 'Cwd' => 0, - 'Exporter' => 0, - 'File::Find' => 0, - 'File::Spec::Functions' => 0, - 'Object::Tiny' => 0, - 'POSIX' => 0, - 'base' => 0, - }, + PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => 5.008, META_MERGE => \%META, dist => {