From: Vincent Pit Date: Sun, 4 Oct 2009 07:50:01 +0000 (+0200) Subject: Put prerequisites in their own separate hash X-Git-Tag: v0.03~6 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=d88364af37eb10467d33930800710a6edbe0544d;p=perl%2Fmodules%2FThread-Cleanup.git Put prerequisites in their own separate hash --- diff --git a/Makefile.PL b/Makefile.PL index 8a8edbb..d54e1e0 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -6,6 +6,11 @@ use ExtUtils::MakeMaker; my $dist = 'Thread-Cleanup'; +my %PREREQ_PM = ( + 'XSLoader' => 0, + 'threads' => '1.07', +); + my %META = ( configure_requires => { 'ExtUtils::MakeMaker' => 0, @@ -14,6 +19,7 @@ my %META = ( 'ExtUtils::MakeMaker' => 0, 'Test::More' => 0, 'threads::shared' => '0.91', + %PREREQ_PM, }, dynamic_config => 0, resources => { @@ -31,10 +37,7 @@ WriteMakefile( VERSION_FROM => 'lib/Thread/Cleanup.pm', ABSTRACT_FROM => 'lib/Thread/Cleanup.pm', PL_FILES => {}, - PREREQ_PM => { - 'XSLoader' => 0, - 'threads' => '1.07', - }, + PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => 5.008, META_MERGE => \%META, dist => {