]> git.vpit.fr Git - perl/modules/Scope-Upper.git/commitdiff
Add BUILD_REQUIRES to WriteMakefile()
authorVincent Pit <vince@profvince.com>
Wed, 22 Aug 2012 10:10:24 +0000 (12:10 +0200)
committerVincent Pit <vince@profvince.com>
Wed, 22 Aug 2012 10:10:24 +0000 (12:10 +0200)
Makefile.PL

index 50e5e148fcc716a1d1c30eb5d79d52c362475b42..33d3290e19ffb7331aa76130b10c89c92d41df81 100644 (file)
@@ -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,