X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=445aae625b8e7c32fbefa52f5c45156a6c8d8a90;hb=fa6f37354a910b946ad799a96bdd3a2dd687174d;hp=0e704222e55ffc1c1da36361f0140e8bff3b0e14;hpb=d9057b72557cf2684582e3d13c59d019304d1e63;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/Makefile.PL b/Makefile.PL index 0e70422..445aae6 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -41,6 +41,13 @@ if ($has_cc) { print "none\n"; } +my $dist = 'Test-Valgrind'; + +(my $name = $dist) =~ s{-}{::}g; + +(my $file = $dist) =~ s{-}{/}g; +$file = "lib/$file.pm"; + my %PREREQ_PM = ( 'Carp' => 0, 'Digest::MD5' => 0, @@ -62,8 +69,6 @@ my %PREREQ_PM = ( 'version' => 0, ); -my $dist = 'Test-Valgrind'; - my %META = ( configure_requires => { 'File::Spec' => 0, @@ -88,21 +93,21 @@ my %META = ( ); WriteMakefile( - NAME => 'Test::Valgrind', + NAME => $name, AUTHOR => 'Vincent Pit ', LICENSE => 'perl', - VERSION_FROM => 'lib/Test/Valgrind.pm', - ABSTRACT_FROM => 'lib/Test/Valgrind.pm', + VERSION_FROM => $file, + ABSTRACT_FROM => $file, OPTIMIZE => '-g', C => \@C, PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => 5.006, META_MERGE => \%META, dist => { - PREOP => 'pod2text lib/Test/Valgrind.pm > $(DISTVNAME)/README', + PREOP => "pod2text $file > \$(DISTVNAME)/README", COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, clean => { - FILES => "$dist-* Makefile.bak *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt" + FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt" }, );