]> git.vpit.fr Git - perl/modules/indirect.git/commitdiff
Add BUILD_REQUIRES to WriteMakefile()
authorVincent Pit <vince@profvince.com>
Fri, 2 Nov 2012 13:06:39 +0000 (11:06 -0200)
committerVincent Pit <vince@profvince.com>
Fri, 2 Nov 2012 13:06:39 +0000 (11:06 -0200)
Makefile.PL

index 1d506d8729bebbef980efd37b698667eac67af2a..dd01441091686f6ab68048df9a5e22dfcc69b7d9 100644 (file)
@@ -30,14 +30,18 @@ my %PREREQ_PM = (
  'XSLoader' => 0,
 );
 
+my %BUILD_REQUIRES =(
+ 'ExtUtils::MakeMaker' => 0,
+ 'Test::More'          => 0,
+ %PREREQ_PM,
+);
+
 my %META = (
  configure_requires => {
   'ExtUtils::MakeMaker' => 0,
  },
  build_requires => {
-  'ExtUtils::MakeMaker' => 0,
-  'Test::More'          => 0,
-  %PREREQ_PM,
+  %BUILD_REQUIRES,
  },
  dynamic_config => 1,
  resources => {
@@ -56,6 +60,7 @@ WriteMakefile(
  ABSTRACT_FROM    => $file,
  PL_FILES         => {},
  @DEFINES,
+ BUILD_REQUIRES   => \%BUILD_REQUIRES,
  PREREQ_PM        => \%PREREQ_PM,
  MIN_PERL_VERSION => '5.008001',
  META_MERGE       => \%META,