From: Vincent Pit Date: Mon, 5 Nov 2012 15:37:40 +0000 (-0200) Subject: Add BUILD_REQUIRES to WriteMakefile() X-Git-Tag: v0.02~7 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=5a0ccca9abebccf3ecd13f071be6a28f19b0f136;p=perl%2Fmodules%2FScope-Context.git Add BUILD_REQUIRES to WriteMakefile() --- diff --git a/Makefile.PL b/Makefile.PL index 13a0c2b..f2386d9 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -16,14 +16,18 @@ my %PREREQ_PM = ( 'Scalar::Util' => 0, ); +my %BUILD_REQUIRES = ( + 'ExtUtils::MakeMaker' => 0, + 'Test::More' => 0, + %PREREQ_PM, +); + my %META = ( configure_requires => { 'ExtUtils::MakeMaker' => 0, }, build_requires => { - 'ExtUtils::MakeMaker' => 0, - 'Test::More' => 0, - %PREREQ_PM, + %BUILD_REQUIRES, }, dynamic_config => 0, resources => { @@ -41,6 +45,7 @@ WriteMakefile( VERSION_FROM => $file, ABSTRACT_FROM => $file, PL_FILES => {}, + BUILD_REQUIRES => \%BUILD_REQUIRES, PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => 5.006, META_MERGE => \%META,