From: Vincent Pit Date: Sun, 4 Oct 2009 08:23:29 +0000 (+0200) Subject: Build the $name and the main $file from $dist X-Git-Tag: v0.16~13 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=66016313a147028d0880ccdb6edd556dcc2f794c;p=perl%2Fmodules%2FIPC-MorseSignals.git Build the $name and the main $file from $dist --- diff --git a/Makefile.PL b/Makefile.PL index 677bb22..519bbbf 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -22,6 +22,11 @@ for (qw/USR1 USR2/) { my $dist = 'IPC-MorseSignals'; +(my $name = $dist) =~ s{-}{::}g; + +(my $file = $dist) =~ s{-}{/}g; +$file = "lib/$file.pm"; + my %PREREQ_PM = ( 'Bit::MorseSignals' => 0.05, 'Carp' => 0, @@ -55,17 +60,17 @@ my %META = ( ); WriteMakefile( - NAME => 'IPC::MorseSignals', + NAME => $name, AUTHOR => 'Vincent Pit ', LICENSE => 'perl', - VERSION_FROM => 'lib/IPC/MorseSignals.pm', - ABSTRACT_FROM => 'lib/IPC/MorseSignals.pm', + VERSION_FROM => $file, + ABSTRACT_FROM => $file, PL_FILES => {}, PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => 5.008, META_MERGE => \%META, dist => { - PREOP => 'pod2text lib/IPC/MorseSignals.pm > $(DISTVNAME)/README', + PREOP => "pod2text $file > \$(DISTVNAME)/README", COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, clean => {