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

index c1bf647176fbdae8f42070b6b3e88301f40e2064..96b26302d642d54cae861955ed368a425843649e 100644 (file)
@@ -74,17 +74,21 @@ my %PREREQ_PM = (
  'base'     => 0,
 );
 
+my %BUILD_REQUIRES = (
+ 'Carp'                => 0,
+ 'Config'              => 0,
+ 'ExtUtils::MakeMaker' => 0,
+ 'Test::More'          => 0,
+ %PREREQ_PM,
+);
+
 my %META = (
  configure_requires => {
   'Config'              => 0,
   'ExtUtils::MakeMaker' => 0,
  },
  build_requires => {
-  'Carp'                => 0,
-  'Config'              => 0,
-  'ExtUtils::MakeMaker' => 0,
-  'Test::More'          => 0,
-  %PREREQ_PM,
+  %BUILD_REQUIRES,
  },
  dynamic_config => 1,
  resources => {
@@ -103,6 +107,7 @@ WriteMakefile(
  ABSTRACT_FROM    => $file,
  PL_FILES         => {},
  @DEFINES,
+ BUILD_REQUIRES   => \%BUILD_REQUIRES,
  PREREQ_PM        => \%PREREQ_PM,
  MIN_PERL_VERSION => '5.008',
  META_MERGE       => \%META,