X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FAcme-CPANAuthors-You-re_using.git;a=blobdiff_plain;f=Makefile.PL;h=f3c7fcfb43399633d72d1fd649542a3693f10967;hp=e0922253e3ef0020b8dfc2af26ec7ab3c38f14dd;hb=98afe09ae95e99083f515f01ed57274b2d6a3955;hpb=45493a0fdc277496511bd5850afbf5d19bafbc9d diff --git a/Makefile.PL b/Makefile.PL index e092225..f3c7fcf 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,42 +4,50 @@ use ExtUtils::MakeMaker; my $dist = 'Acme-CPANAuthors-You-re_using'; +(my $name = $dist) =~ s{-}{::}g; + +(my $file = $dist) =~ s{-}{/}g; +$file = "lib/$file.pm"; + +my %PREREQ_PM = ( + 'Acme::CPANAuthors' => '0.14', + 'Carp' => 0, + 'ExtUtils::Installed' => '1.999', +); + my %META = ( configure_requires => { 'ExtUtils::MakeMaker' => 0, }, build_requires => { - 'Acme::CPANAuthors' => 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 => 'Acme::CPANAuthors::You::re_using', - AUTHOR => 'Vincent Pit ', - LICENSE => 'perl', - VERSION_FROM => 'lib/Acme/CPANAuthors/You/re_using.pm', - ABSTRACT_FROM => 'lib/Acme/CPANAuthors/You/re_using.pm', - PL_FILES => {}, - PREREQ_PM => { - 'Acme::CPANAuthors' => 0, - 'Carp' => 0, - 'ExtUtils::Installed' => 0, - }, - MIN_PERL_VERSION => 5.006, - META_MERGE => \%META, - dist => { - PREOP => 'pod2text lib/Acme/CPANAuthors/You/re_using.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.006, + META_MERGE => \%META, + dist => { + PREOP => "pod2text -u $file > \$(DISTVNAME)/README", + COMPRESS => 'gzip -9f', SUFFIX => 'gz' + }, + clean => { + FILES => "$dist-* *.gcov *.gcda *.gcno cover_db Debian_CPANTS.txt" + }, );