X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=14d276e6f2d335e8f3e7c61a524c7f009be1791b;hb=4ec45e4261121ecdc32dd5431f939abebf0b6dc4;hp=5397afa726e6da000326205283fdcd96ff73eca4;hpb=3a859aa7502f69dbe6445a1eee8af49250f823d0;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/Makefile.PL b/Makefile.PL index 5397afa..14d276e 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 @@ -64,12 +48,15 @@ my %PREREQ_PM = ( 'File::HomeDir' => '0.86', 'File::Path' => 0, 'File::Spec' => 0, - 'File::Temp' => 0, + 'File::Temp' => '0.14', # OO interface + 'Filter::Util::Call' => 0, 'Fcntl' => 0, + 'List::Util' => 0, 'POSIX' => 0, 'Perl::Destruct::Level' => 0, 'Scalar::Util' => 0, 'Test::Builder' => 0, + 'Test::More' => 0, 'XML::Twig' => 0, 'base' => 0, 'version' => 0, @@ -79,15 +66,8 @@ 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, @@ -102,7 +82,7 @@ my %META = ( bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist", homepage => "http://search.cpan.org/dist/$dist/", license => 'http://dev.perl.org/licenses/', - repository => "http://git.profvince.com/perl/modules/$dist.git", + repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git", }, );