X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=72bad649e4d27837cf6ceaeaf9a74a94e9ece0dd;hb=73e842e4f1d6c0c83bf58d589b5598cf1cfa8955;hp=68d31bc19e87f7a5613e4d44efff6b7fc98696a7;hpb=5a0082a93fd11e0e6c71f61a82dc0886e246cc0e;p=perl%2Fmodules%2Fautovivification.git diff --git a/Makefile.PL b/Makefile.PL index 68d31bc..72bad64 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,12 +4,7 @@ use strict; use warnings; use ExtUtils::MakeMaker; -BEGIN { - local $@; - eval { require Config }; - die 'OS unsupported' if $@; - Config->import(qw<%Config>); -} +use Config; my @DEFINES; my %macro; @@ -57,14 +52,20 @@ my %PREREQ_PM = ( 'XSLoader' => 0, ); +my %BUILD_REQUIRES = ( + 'Config' => 0, + 'Exporter' => 0, + '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 => { @@ -83,6 +84,7 @@ WriteMakefile( ABSTRACT_FROM => $file, PL_FILES => {}, @DEFINES, + BUILD_REQUIRES => \%BUILD_REQUIRES, PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => '5.008003', META_MERGE => \%META, @@ -91,7 +93,7 @@ WriteMakefile( COMPRESS => 'gzip -9f', SUFFIX => 'gz' }, clean => { - FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt" + FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt*" }, %macro, );