From: Vincent Pit Date: Mon, 5 Nov 2012 23:57:11 +0000 (-0200) Subject: Add BUILD_REQUIRES to WriteMakefile() X-Git-Tag: v0.04~4 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=a1bb9cab5dc2ba16af149f126cb58a8a0d08fbed;p=perl%2Fmodules%2Fre-engine-Hooks.git Add BUILD_REQUIRES to WriteMakefile() --- diff --git a/Makefile.PL b/Makefile.PL index 315aa13..b481d58 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -16,6 +16,16 @@ my %PREREQ_PM = ( 'DynaLoader' => 0, ); +my %BUILD_REQUIRES = ( + 'ExtUtils::Depends' => 0, + 'ExtUtils::MakeMaker' => 0, + 'File::Spec' => 0, + 'POSIX' => 0, + 'Test::More' => 0, + 'blib' => 0, + %PREREQ_PM, +); + my %META = ( configure_requires => { 'ExtUtils::Depends' => 0, @@ -23,13 +33,7 @@ my %META = ( 'File::Spec' => 0, }, build_requires => { - 'ExtUtils::Depends' => 0, - 'ExtUtils::MakeMaker' => 0, - 'File::Spec' => 0, - 'POSIX' => 0, - 'Test::More' => 0, - 'blib' => 0, - %PREREQ_PM, + %BUILD_REQUIRES, }, dynamic_config => 1, resources => { @@ -96,6 +100,7 @@ WriteMakefile( VERSION_FROM => $file, ABSTRACT_FROM => $file, PL_FILES => {}, + BUILD_REQUIRES => \%BUILD_REQUIRES, PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => '5.010001', META_MERGE => \%META,