X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=28b5d19b41065196e7396f2fd6f7763797b1c06c;hb=d0660de3be6b97fece8f48e4ca2f78e9a8ee7110;hp=890b7fa61190d933774b7221d01cfc4ad76f6592;hpb=30523195513703f80086785fc7cf94f31692027e;p=perl%2Fmodules%2FScope-Upper.git diff --git a/Makefile.PL b/Makefile.PL index 890b7fa..28b5d19 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -15,6 +15,17 @@ if ($^O eq 'MSWin32' && $^V lt v5.9.0) { my $dist = 'Scope-Upper'; +(my $name = $dist) =~ s{-}{::}g; + +(my $file = $dist) =~ s{-}{/}g; +$file = "lib/$file.pm"; + +my %PREREQ_PM = ( + 'Exporter' => 0, + 'XSLoader' => 0, + 'base' => 0, +); + my %META = ( configure_requires => { 'ExtUtils::MakeMaker' => 0, @@ -22,6 +33,7 @@ my %META = ( build_requires => { 'ExtUtils::MakeMaker' => 0, 'Test::More' => 0, + %PREREQ_PM, }, dynamic_config => 1, resources => { @@ -33,27 +45,23 @@ my %META = ( ); WriteMakefile( - NAME => 'Scope::Upper', - AUTHOR => 'Vincent Pit ', - LICENSE => 'perl', - VERSION_FROM => 'lib/Scope/Upper.pm', - ABSTRACT_FROM => 'lib/Scope/Upper.pm', - PL_FILES => {}, - @DEFINES, - PREREQ_PM => { - 'Exporter' => 0, - 'XSLoader' => 0, - 'base' => 0, - }, - MIN_PERL_VERSION => 5.006, - META_MERGE => \%META, - dist => { - PREOP => 'pod2text lib/Scope/Upper.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 => {}, + @DEFINES, + PREREQ_PM => \%PREREQ_PM, + MIN_PERL_VERSION => 5.006, + 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" + }, ); package MY;