X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=49f9a42e3b7a15744c0259a97db643579d6d229a;hb=874c48a14d61dbde5ab5b6fc170f2eb57342295f;hp=e0922253e3ef0020b8dfc2af26ec7ab3c38f14dd;hpb=45493a0fdc277496511bd5850afbf5d19bafbc9d;p=perl%2Fmodules%2FAcme-CPANAuthors-You-re_using.git diff --git a/Makefile.PL b/Makefile.PL index e092225..49f9a42 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,6 +4,17 @@ 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, + 'Carp' => 0, + 'ExtUtils::Installed' => 0, +); + my %META = ( configure_requires => { 'ExtUtils::MakeMaker' => 0, @@ -12,31 +23,29 @@ my %META = ( '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', + NAME => $name, AUTHOR => 'Vincent Pit ', LICENSE => 'perl', - VERSION_FROM => 'lib/Acme/CPANAuthors/You/re_using.pm', - ABSTRACT_FROM => 'lib/Acme/CPANAuthors/You/re_using.pm', + VERSION_FROM => $file, + ABSTRACT_FROM => $file, PL_FILES => {}, - PREREQ_PM => { - 'Acme::CPANAuthors' => 0, - 'Carp' => 0, - 'ExtUtils::Installed' => 0, - }, + PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => 5.006, META_MERGE => \%META, dist => { - PREOP => 'pod2text lib/Acme/CPANAuthors/You/re_using.pm > $(DISTVNAME)/README', + PREOP => "pod2text $file > \$(DISTVNAME)/README", COMPRESS => 'gzip -9f', SUFFIX => 'gz' }, clean => {