X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=f86b2549fba9d36f70c10f868f75b5681eef2a7d;hb=7f02e327153bdc618f6e79e005b63b56ad142132;hp=0198168adace38cbb0c7c532ce5f175f9b817885;hpb=a278f444637c3c07d8c8785ba4c1936654c9a117;p=perl%2Fmodules%2FSub-Prototype-Util.git diff --git a/Makefile.PL b/Makefile.PL index 0198168..f86b254 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -6,6 +6,17 @@ use ExtUtils::MakeMaker; my $dist = 'Sub-Prototype-Util'; +(my $name = $dist) =~ s{-}{::}g; + +(my $file = $dist) =~ s{-}{/}g; +$file = "lib/$file.pm"; + +my %PREREQ_PM = ( + 'Carp' => 0, + 'Exporter' => 0, + 'Scalar::Util' => 0, +); + my %META = ( configure_requires => { 'ExtUtils::MakeMaker' => 0, @@ -14,31 +25,29 @@ my %META = ( 'ExtUtils::MakeMaker' => 0, 'Scalar::Util' => 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 => 'Sub::Prototype::Util', + NAME => $name, AUTHOR => 'Vincent Pit ', LICENSE => 'perl', - VERSION_FROM => 'lib/Sub/Prototype/Util.pm', - ABSTRACT_FROM => 'lib/Sub/Prototype/Util.pm', + VERSION_FROM => $file, + ABSTRACT_FROM => $file, PL_FILES => {}, - PREREQ_PM => { - 'Carp' => 0, - 'Exporter' => 0, - 'Scalar::Util' => 0 - }, + PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => 5.006, META_MERGE => \%META, dist => { - PREOP => 'pod2text lib/Sub/Prototype/Util.pm > $(DISTVNAME)/README', + PREOP => "pod2text $file > \$(DISTVNAME)/README", COMPRESS => 'gzip -9f', SUFFIX => 'gz' }, clean => {