X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=35eea0c4213bb62a8945d9d454f50d7d1befd226;hb=fceb925d08fa5e96cf477963195c3c4f6dbede65;hp=c1bf647176fbdae8f42070b6b3e88301f40e2064;hpb=be9ad15f2ed3bec04d8186bbdf592b98f10e693d;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/Makefile.PL b/Makefile.PL index c1bf647..35eea0c 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,11 +4,7 @@ use strict; use warnings; use ExtUtils::MakeMaker; -BEGIN { - eval { require Config }; - die 'OS unsupported' if $@; - Config->import(qw<%Config>); -} +use Config; my @DEFINES; my %macro; @@ -74,17 +70,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 +103,7 @@ WriteMakefile( ABSTRACT_FROM => $file, PL_FILES => {}, @DEFINES, + BUILD_REQUIRES => \%BUILD_REQUIRES, PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => '5.008', META_MERGE => \%META,