]> git.vpit.fr Git - perl/modules/Lexical-Types.git/commitdiff
Add BUILD_REQUIRES to WriteMakefile()
authorVincent Pit <vince@profvince.com>
Fri, 2 Nov 2012 01:25:57 +0000 (23:25 -0200)
committerVincent Pit <vince@profvince.com>
Fri, 2 Nov 2012 01:25:57 +0000 (23:25 -0200)
Makefile.PL

index e7593bc1bf699df83e4c084ee0f4e5e38b9cba2c..4fc9c081337d073988d7bae09aa89b1ac381204a 100644 (file)
@@ -53,17 +53,21 @@ my %PREREQ_PM = (
  'XSLoader' => 0,
 );
 
+my %BUILD_REQUIRES = (
+ 'Config'              => 0,
+ 'ExtUtils::MakeMaker' => 0,
+ 'Test::More'          => 0,
+ 'constant'            => 0,
+ %PREREQ_PM,
+);
+
 my %META = (
  configure_requires => {
   'Config'              => 0,
   'ExtUtils::MakeMaker' => 0,
  },
  build_requires => {
-  'Config'              => 0,
-  'ExtUtils::MakeMaker' => 0,
-  'Test::More'          => 0,
-  'constant'            => 0,
-  %PREREQ_PM,
+  %BUILD_REQUIRES,
  },
  dynamic_config => 1,
  resources => {
@@ -82,6 +86,7 @@ WriteMakefile(
  ABSTRACT_FROM    => $file,
  PL_FILES         => {},
  @DEFINES,
+ BUILD_REQUIRES   => \%BUILD_REQUIRES,
  PREREQ_PM        => \%PREREQ_PM,
  MIN_PERL_VERSION => 5.008003,
  META_MERGE       => \%META,