From: Vincent Pit Date: Wed, 22 Aug 2012 10:10:24 +0000 (+0200) Subject: Add BUILD_REQUIRES to WriteMakefile() X-Git-Tag: v0.19~2 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=2236279ceecd37fc3e752bdf1142808a0f671d6e;p=perl%2Fmodules%2FScope-Upper.git Add BUILD_REQUIRES to WriteMakefile() --- diff --git a/Makefile.PL b/Makefile.PL index 50e5e14..33d3290 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -40,15 +40,19 @@ my %PREREQ_PM = ( 'base' => 0, ); +my %BUILD_REQUIRES = ( + 'ExtUtils::MakeMaker' => 0, + 'Test::More' => 0, + %PREREQ_PM, +); + my %META = ( configure_requires => { 'Config' => 0, 'ExtUtils::MakeMaker' => 0, }, build_requires => { - 'ExtUtils::MakeMaker' => 0, - 'Test::More' => 0, - %PREREQ_PM, + %BUILD_REQUIRES, }, dynamic_config => 1, resources => { @@ -67,6 +71,7 @@ WriteMakefile( ABSTRACT_FROM => $file, PL_FILES => {}, @DEFINES, + BUILD_REQUIRES => \%BUILD_REQUIRES, PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => '5.006', META_MERGE => \%META,