X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=19b52f4d2a653a25a2ea3f55c05af9aba0eafe40;hb=8dc3fa903caaa60b799fa4bfd0e484de822f5617;hp=a4d5bc625353d910938dfcab5073d56ceebf93a8;hpb=322e017efffd73fa5b61dc33125e08e74eda737b;p=perl%2Fmodules%2FBit-MorseSignals.git diff --git a/Makefile.PL b/Makefile.PL index a4d5bc6..19b52f4 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,6 +4,19 @@ use ExtUtils::MakeMaker; my $dist = 'Bit-MorseSignals'; +(my $name = $dist) =~ s{-}{::}g; + +(my $file = $dist) =~ s{-}{/}g; +$file = "lib/$file.pm"; + +my %PREREQ_PM = ( + 'Carp' => 0, + 'Encode' => 0, + 'Exporter' => 0, + 'Storable' => 0, + 'base' => 0, +); + my %META = ( configure_requires => { 'ExtUtils::MakeMaker' => 0, @@ -12,32 +25,29 @@ my %META = ( 'utf8' => 0, 'ExtUtils::MakeMaker' => 0, 'Test::More' => 0, + %PREREQ_PM, }, + dynamic_config => 0, 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/?p=perl/modules/$dist.git", + repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git", }, ); WriteMakefile( - NAME => 'Bit::MorseSignals', + NAME => $name, AUTHOR => 'Vincent Pit ', LICENSE => 'perl', - VERSION_FROM => 'lib/Bit/MorseSignals.pm', - ABSTRACT_FROM => 'lib/Bit/MorseSignals.pm', + VERSION_FROM => $file, + ABSTRACT_FROM => $file, PL_FILES => {}, - PREREQ_PM => { - 'Carp' => 0, - 'Encode' => 0, - 'Exporter' => 0, - 'Storable' => 0, - }, + PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => 5.008, META_MERGE => \%META, dist => { - PREOP => 'pod2text lib/Bit/MorseSignals.pm > $(DISTVNAME)/README', + PREOP => "pod2text $file > \$(DISTVNAME)/README", COMPRESS => 'gzip -9f', SUFFIX => 'gz' }, clean => {