X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=519bbbf0277deb780fbc65d016449d7f37b3b6b1;hb=66016313a147028d0880ccdb6edd556dcc2f794c;hp=fb9e42dc1d92d291d3a8c0cd731bebe8b2be8a7b;hpb=bcb259bd5b8592159107c6161b519c3eba326578;p=perl%2Fmodules%2FIPC-MorseSignals.git diff --git a/Makefile.PL b/Makefile.PL index fb9e42d..519bbbf 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -22,6 +22,19 @@ 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, + 'POSIX' => 0, + 'Time::HiRes' => 0, + 'base' => 0, +); + my %META = ( configure_requires => { 'Config' => 0, @@ -35,32 +48,29 @@ my %META = ( 'ExtUtils::MakeMaker' => 0, 'POSIX' => 0, 'Test::More' => 0, + %PREREQ_PM, }, + dynamic_config => 1, resources => { bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist", homepage => "http://search.cpan.org/dist/$dist/", license => 'http://dev.perl.org/licenses/', - repository => "http://git.profvince.com/perl/modules/$dist.git", + repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git", }, ); 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 => { - 'Bit::MorseSignals' => 0.05, - 'Carp' => 0, - 'POSIX' => 0, - 'Time::HiRes' => 0, - }, + 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 => {