X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=1db1f75d3717637697f87a0c73d0a0c674305611;hb=7a4cc9c49020f9ab815a4a7bf5f260035cc72bea;hp=c5f16bd35da293f631bb6d43cb479b2cccacc111;hpb=fcc0c5eeb3205fb6af00e3bb1b6ceb36b42bc458;p=perl%2Fmodules%2FScope-Upper.git diff --git a/Makefile.PL b/Makefile.PL index c5f16bd..1db1f75 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,7 +33,9 @@ my %META = ( build_requires => { 'ExtUtils::MakeMaker' => 0, 'Test::More' => 0, + %PREREQ_PM, }, + dynamic_config => 1, resources => { bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist", homepage => "http://search.cpan.org/dist/$dist/", @@ -32,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; @@ -60,6 +69,6 @@ package MY; sub postamble { return <<'POSTAMBLE'; testdeb: all - PERL_DL_NONLAZY=1 PERLDB_OPTS="NonStop=1" prove --exec='$(PERL) -d -T -I$(INST_LIB) -I$(INST_ARCHLIB)' $(TEST_FILES) + PERL_DL_NONLAZY=1 PERLDB_OPTS="NonStop=1" $(FULLPERLRUN) -MTAP::Harness -e 'TAP::Harness->new({verbosity => q{$(VERBOSE)}, lib => [ q{$(INST_LIB)}, q{$(INST_ARCHLIB)} ], switches => [ q{-d} ]})->runtests(@ARGV)' $(TEST_FILES) POSTAMBLE }