X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVariable-Magic.git;a=blobdiff_plain;f=Makefile.PL;h=35eea0c4213bb62a8945d9d454f50d7d1befd226;hp=1ad0ceacc6503785983db3374bee99f590749843;hb=bd7cdd0635d30485b50564b9eebb2d73b3c0f94b;hpb=78d307d30a1fa82e6b8e7ba95c617d9b87eb4d45 diff --git a/Makefile.PL b/Makefile.PL index 1ad0cea..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, @@ -111,7 +112,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, );