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/;
48 'File::HomeDir' => '0.86',
51 'File::Temp' => '0.14', # OO interface
52 'Filter::Util::Call' => 0,
56 'Perl::Destruct::Level' => 0,
65 my $dist = 'Test-Valgrind';
68 configure_requires => {
70 'ExtUtils::MakeMaker' => 0,
73 'ExtUtils::MakeMaker' => 0,
82 bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist",
83 homepage => "http://search.cpan.org/dist/$dist/",
84 license => 'http://dev.perl.org/licenses/',
85 repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git",
90 NAME => 'Test::Valgrind',
91 AUTHOR => 'Vincent Pit <perl@profvince.com>',
93 VERSION_FROM => 'lib/Test/Valgrind.pm',
94 ABSTRACT_FROM => 'lib/Test/Valgrind.pm',
97 PREREQ_PM => \%PREREQ_PM,
98 MIN_PERL_VERSION => 5.006,
101 PREOP => 'pod2text lib/Test/Valgrind.pm > $(DISTVNAME)/README',
102 COMPRESS => 'gzip -9f', SUFFIX => 'gz',
105 FILES => "$dist-* Makefile.bak *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt"