From: Vincent Pit Date: Sun, 4 Oct 2009 08:01:42 +0000 (+0200) Subject: Put prerequisites in their own separate hash X-Git-Tag: v0.12~4 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=8ea83fa8a47d0a6117ba46fd46d726715619f6fe;p=perl%2Fmodules%2FLinux-SysInfo.git Put prerequisites in their own separate hash --- diff --git a/Makefile.PL b/Makefile.PL index 350112b..5febb76 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -8,6 +8,12 @@ die 'OS unsupported' unless $^O && $^O eq 'linux'; my $dist = 'Linux-SysInfo'; +my %PREREQ_PM = ( + 'Exporter' => 0, + 'XSLoader' => 0, + 'base' => 0, +); + my %META = ( configure_requires => { 'ExtUtils::MakeMaker' => 0, @@ -15,6 +21,7 @@ my %META = ( build_requires => { 'ExtUtils::MakeMaker' => 0, 'Test::More' => 0, + %PREREQ_PM, }, dynamic_config => 1, resources => { @@ -32,11 +39,7 @@ WriteMakefile( VERSION_FROM => 'lib/Linux/SysInfo.pm', ABSTRACT_FROM => 'lib/Linux/SysInfo.pm', PL_FILES => {}, - PREREQ_PM => { - 'Exporter' => 0, - 'XSLoader' => 0, - 'base' => 0, - }, + PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => 5.006, META_MERGE => \%META, dist => {