X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=be831928004549d58a78c0d97582ec351819f082;hb=feaf2ede1be5dde7634742c2c0532b1b28d56361;hp=0e704222e55ffc1c1da36361f0140e8bff3b0e14;hpb=d9057b72557cf2684582e3d13c59d019304d1e63;p=perl%2Fmodules%2FTest-Valgrind.git diff --git a/Makefile.PL b/Makefile.PL index 0e70422..be83192 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,18 +93,18 @@ 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 => {