X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=1e8cc00886fa837b51bcfa2cf6def79d4c2841b5;hb=92e6d17d21b18fdac46cc8c241f1415030c1db2d;hp=3c0b06d5cc52da5b00a3d6c654a296367a56b109;hpb=b6e529994b32c1e6c26e80b4d9479208b105bfed;p=perl%2Fmodules%2FScalar-Vec-Util.git diff --git a/Makefile.PL b/Makefile.PL index 3c0b06d..1e8cc00 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,12 +4,11 @@ use strict; use warnings; use ExtUtils::MakeMaker; +use Config; + BEGIN { - eval { require Config }; - die 'OS unsupported' if $@; - Config->import(qw<%Config>); - eval { require File::Spec }; - die 'OS unsupported' if $@; + local $@; + eval { require File::Spec; 1 } or die 'OS unsupported'; } my $cc; @@ -125,14 +124,14 @@ WriteMakefile( C => \@C, @DEFINES, PREREQ_PM => \%PREREQ_PM, - MIN_PERL_VERSION => 5.006, + MIN_PERL_VERSION => '5.006', META_MERGE => \%META, dist => { PREOP => "pod2text -u $file > \$(DISTVNAME)/README", 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*" }, );