5 use ExtUtils::MakeMaker;
8 eval { require Config };
9 die 'OS unsupported' if $@;
10 Config->import(qw/%Config/);
11 eval { require File::Spec };
12 die 'OS unsupported' if $@;
15 # Inspired from Module::Install::Can
16 print "Checking for a valid C compiler in the PATH... ";
17 my @ccs = ($Config{cc});
18 unshift @ccs, $ENV{CC} if $ENV{CC};
19 my @path = File::Spec->path;
22 File::Spec->file_name_is_absolute($cc)
24 : map File::Spec->catfile($_, $cc), @path
29 if (-x $cc or MM->maybe_command($cc)) {
36 my $xs = 'Valgrind.xs';
37 (my $c = $xs) =~ s/\.xs$/.c/;
44 my $dist = 'Test-Valgrind';
46 (my $name = $dist) =~ s{-}{::}g;
48 (my $file = $dist) =~ s{-}{/}g;
49 $file = "lib/$file.pm";
55 'File::HomeDir' => '0.86',
58 'File::Temp' => '0.14', # OO interface
59 'Filter::Util::Call' => 0,
63 'Perl::Destruct::Level' => 0,
73 configure_requires => {
75 'ExtUtils::MakeMaker' => 0,
78 'ExtUtils::MakeMaker' => 0,
88 bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
89 homepage => "http://search.cpan.org/dist/$dist/",
90 license => 'http://dev.perl.org/licenses/',
91 repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
97 AUTHOR => 'Vincent Pit <perl@profvince.com>',
99 VERSION_FROM => $file,
100 ABSTRACT_FROM => $file,
103 PREREQ_PM => \%PREREQ_PM,
104 MIN_PERL_VERSION => 5.006,
105 META_MERGE => \%META,
107 PREOP => "pod2text $file > \$(DISTVNAME)/README",
108 COMPRESS => 'gzip -9f', SUFFIX => 'gz',
111 FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"