X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=c8d5838a7f8a47a06d1804e14031e26893b91f3c;hb=455d083e91062cc7e742f828db98303bc83bbc3b;hp=22092a07a9d987da1129adbcb082aa3ac37d5754;hpb=d01665b0af6675214d0d186b05a9c53efd10e3cf;p=perl%2Fmodules%2Fautovivification.git diff --git a/Makefile.PL b/Makefile.PL index 22092a0..c8d5838 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,18 +52,24 @@ 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 => { - bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist", + bugtracker => "http://rt.cpan.org/Dist/Display.html?Name=$dist", homepage => "http://search.cpan.org/dist/$dist/", license => 'http://dev.perl.org/licenses/', repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git", @@ -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,