-WriteMakefile(
- NAME => 'Test::Valgrind',
- AUTHOR => 'Vincent Pit <perl@profvince.com>',
- LICENSE => 'perl',
- VERSION_FROM => 'lib/Test/Valgrind.pm',
- ABSTRACT_FROM => 'lib/Test/Valgrind.pm',
- PL_FILES => { './Gensupp.PL' => 'lib/' . $supp },
- PM => {
- 'lib/Test/Valgrind.pm'
- => '$(INST_LIB)/Test/Valgrind.pm',
- 'lib/Test/Valgrind/Suppressions.pm'
- => '$(INST_ARCHLIB)/Test/Valgrind/Suppressions.pm',
- 'lib/' . $supp => '$(INST_ARCHLIB)/' . $supp,
- },
- PREREQ_PM => {
- 'Carp' => 0,
- 'Exporter' => 0,
- 'POSIX' => 0,
- 'Perl::Destruct::Level' => 0,
- 'Test::More' => 0,
- },
- dist => {
- PREOP => 'pod2text lib/Test/Valgrind.pm > $(DISTVNAME)/README; '
- . build_req,
- COMPRESS => 'gzip -9f', SUFFIX => 'gz',
- },
- clean => { FILES => "Test-Valgrind-* lib/$supp *.gcov *.gcda *.gcno cover_db" },
+(my $name = $dist) =~ s{-}{::}g;
+
+(my $file = $dist) =~ s{-}{/}g;
+$file = "lib/$file.pm";
+
+my %PREREQ_PM = (
+ 'Carp' => 0,
+ 'Digest::MD5' => 0,
+ 'Env::Sanctify' => 0,
+ 'File::HomeDir' => '0.86',
+ 'File::Path' => 0,
+ 'File::Spec' => 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,