X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FAcme-CPANAuthors-You-re_using.git;a=blobdiff_plain;f=Makefile.PL;h=724e82b9c9f9377d4f3eb29723d8970c45a0d38b;hp=1bc758233ae3fc65b1f4f166373a07ab4c3d1404;hb=HEAD;hpb=ccce87545fda1846090f652fc4770e2393070ab9 diff --git a/Makefile.PL b/Makefile.PL index 1bc7582..724e82b 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,42 +4,56 @@ 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.16', + 'File::Find' => 0, + 'Module::Metadata' => '1.000017', +); + +my %BUILD_REQUIRES = ( + 'ExtUtils::MakeMaker' => 0, + 'Test::More' => 0, + 'lib' => 0, + %PREREQ_PM, +); + my %META = ( configure_requires => { 'ExtUtils::MakeMaker' => 0, }, build_requires => { - 'Acme::CPANAuthors' => 0, - 'ExtUtils::MakeMaker' => 0, - 'Test::More' => 0, + %BUILD_REQUIRES, }, + 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/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 => {}, + BUILD_REQUIRES => \%BUILD_REQUIRES, + 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" + }, );