X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=5f7416f52c566dd286c0e92f701090de41b2afaf;hb=f1ae3d774418c9751bfe91d2a268c41c92deb551;hp=3ffa8fbdaa4b9204ab0853dfb75cdce4e0566e5e;hpb=b90507ca14e09b450113be587662f1b66d2671cc;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/Makefile.PL b/Makefile.PL index 3ffa8fb..5f7416f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,28 +4,12 @@ use strict; use warnings; use ExtUtils::MakeMaker; -my $has_version_pm; BEGIN { eval { require Config }; die 'OS unsupported' if $@; Config->import(qw/%Config/); eval { require File::Spec }; die 'OS unsupported' if $@; - $has_version_pm = eval "require version; 1" || 0; -} -use lib 'lib'; - -print 'Checking for valgrind ' . ('>= 3.1.0 ' x $has_version_pm) .'in PATH... '; -require Test::Valgrind::Session; -my $vg = eval q[ - Test::Valgrind::Session->new((min_version => '3.1.0') x $has_version_pm) - ->valgrind -]; -if ($vg) { - print "$vg\n"; -} else { - print "no\n"; - die 'OS unsupported'; } # Inspired from Module::Install::Can @@ -57,6 +41,8 @@ if ($has_cc) { print "none\n"; } +my $dist = 'Test-Valgrind'; + my %PREREQ_PM = ( 'Carp' => 0, 'Digest::MD5' => 0, @@ -78,19 +64,10 @@ my %PREREQ_PM = ( 'version' => 0, ); -my $dist = 'Test-Valgrind'; - my %META = ( configure_requires => { - 'Carp' => 0, - 'Config' => 0, - 'ExtUtils::MakeMaker' => 0, - 'Fcntl' => 0, 'File::Spec' => 0, - 'POSIX' => 0, - 'Scalar::Util' => 0, - 'base' => 0, - 'version' => 0, + 'ExtUtils::MakeMaker' => 0, }, build_requires => { 'ExtUtils::MakeMaker' => 0, @@ -101,6 +78,7 @@ my %META = ( 'DynaLoader' => 0, 'XSLoader' => 0, }, + dynamic_config => 1, resources => { bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist", homepage => "http://search.cpan.org/dist/$dist/",