X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=ee99c6a4c70c7ae77310677ad853505c2636ee86;hb=89efebad76a19d337169424185e240a2301a1f53;hp=caafb55f6d379bc1b49b995aca8e6ce7ee8e3891;hpb=9aaf36461a79c118c35f3bf546933fefbd9bfd35;p=p5sagit%2FDevel-GlobalDestruction.git diff --git a/Makefile.PL b/Makefile.PL index caafb55..ee99c6a 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,7 +1,7 @@ use strict; use warnings; -require 5.006000; +require 5.006; use ExtUtils::MakeMaker; BEGIN { if ( $^O eq 'cygwin' ) { @@ -25,7 +25,11 @@ my $mymeta = $mymeta_works || eval { ExtUtils::MakeMaker->VERSION('6.5702'); 1 } my %META_BITS = ( ); my %RUN_DEPS = ( - 'Sub::Exporter' => 0, + 'Sub::Exporter::Progressive' => '0.001006', + ( (defined ${^GLOBAL_PHASE} or !can_xs() ) + ? () + : ('Devel::GlobalDestruction::XS' => 0) + ), ); my %WriteMakefileArgs = ( @@ -34,22 +38,18 @@ my %WriteMakefileArgs = ( LICENSE => 'perl', INSTALLDIRS => 'site', PL_FILES => { }, - MIN_PERL_VERSION => '5.006000', + MIN_PERL_VERSION => '5.006', PREREQ_PM => \%RUN_DEPS, CONFIGURE_REQUIRES => { 'ExtUtils::CBuilder' => 0.27 }, META_ADD => { resources => { - homepage => 'http://search.cpan.org/dist/Devel-Globaldestruction', - repository => 'git://git.shadowcat.co.uk/p5sagit/Devel-Globaldestruction.git', - bugtracker => 'http://rt.cpan.org/Public/Dist/Display.html?Name=Devel-Globaldestruction', + homepage => 'http://search.cpan.org/dist/Devel-GlobalDestruction', + repository => 'git://git.shadowcat.co.uk/p5sagit/Devel-GlobalDestruction.git', + bugtracker => 'http://rt.cpan.org/Public/Dist/Display.html?Name=Devel-GlobalDestruction', }, requires => \%RUN_DEPS, }, ($mymeta and !$mymeta_works) ? ( 'NO_MYMETA' => 1 ) : (), - ( (defined ${^GLOBAL_PHASE} or !can_xs() ) - ? (XS => {}, C => []) - : () - ), ); unless ( eval { ExtUtils::MakeMaker->VERSION('6.56') } ) {