X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=401711606b91e243cdcbc5c192311be1110ccecd;hb=446820f6d081e113538483498bb5590b601a6f09;hp=f83bd21802ab4d1c6f8c9c86d6de3646d0ffc41e;hpb=73c6a3bf03454eb43bf2d439b90dfe924cecd87a;p=perl%2Fmodules%2FSub-Nary.git diff --git a/Makefile.PL b/Makefile.PL index f83bd21..4017116 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -6,6 +6,17 @@ use ExtUtils::MakeMaker; my $dist = 'Sub-Nary'; +(my $name = $dist) =~ s{-}{::}g; + +(my $file = $dist) =~ s{-}{/}g; +$file = "lib/$file.pm"; + +my %PREREQ_PM = ( + 'B' => 0, + 'Carp' => 0, + 'XSLoader' => 0, +); + my %META = ( configure_requires => { 'ExtUtils::MakeMaker' => 0, @@ -13,10 +24,11 @@ my %META = ( build_requires => { 'ExtUtils::MakeMaker' => 0, 'Test::More' => 0, + %PREREQ_PM, }, dynamic_config => 0, resources => { - bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist", + bugtracker => "http://rt.cpan.org/Dist/Display.html?Name=$dist", homepage => "http://search.cpan.org/dist/$dist/", license => 'http://dev.perl.org/licenses/', repository => "http://git.profvince.com/?p=perl%2Fmodules%2F$dist.git", @@ -24,26 +36,22 @@ my %META = ( ); WriteMakefile( - NAME => 'Sub::Nary', - AUTHOR => 'Vincent Pit ', - LICENSE => 'perl', - VERSION_FROM => 'lib/Sub/Nary.pm', - ABSTRACT_FROM => 'lib/Sub/Nary.pm', - PL_FILES => {}, - PREREQ_PM => { - 'B' => 0, - 'Carp' => 0, - 'XSLoader' => 0 - }, - MIN_PERL_VERSION => 5.008001, - META_MERGE => \%META, - dist => { - PREOP => 'pod2text lib/Sub/Nary.pm > $(DISTVNAME)/README', - COMPRESS => 'gzip -9f', SUFFIX => 'gz' - }, - clean => { - FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt" - } + NAME => $name, + AUTHOR => 'Vincent Pit ', + LICENSE => 'perl', + VERSION_FROM => $file, + ABSTRACT_FROM => $file, + PL_FILES => {}, + PREREQ_PM => \%PREREQ_PM, + MIN_PERL_VERSION => 5.008001, + META_MERGE => \%META, + dist => { + PREOP => "pod2text $file > \$(DISTVNAME)/README", + COMPRESS => 'gzip -9f', SUFFIX => 'gz' + }, + clean => { + FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt" + } ); 1;