X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=b6344e0c89f99028e11b5996032a76df0a8976cb;hb=3d084a8cc8d18ccfd4e39a64ae21668674ed9c47;hp=b251d5aa4a5e3fce23d50d4b14d796554b985967;hpb=d4be4bd8bf54216cf2a58041f82f5fdaead5850a;p=p5sagit%2FDevel-GlobalDestruction.git diff --git a/Makefile.PL b/Makefile.PL index b251d5a..b6344e0 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -25,7 +25,7 @@ my $mymeta = $mymeta_works || eval { ExtUtils::MakeMaker->VERSION('6.5702'); 1 } my %META_BITS = ( ); my %RUN_DEPS = ( - 'Sub::Exporter::Progressive' => '0.001002', + 'Sub::Exporter::Progressive' => '0.001006', ( (defined ${^GLOBAL_PHASE} or !can_xs() ) ? () : ('Devel::GlobalDestruction::XS' => 0) @@ -65,6 +65,21 @@ unless ( eval { ExtUtils::MakeMaker->VERSION('6.56') } ) { } } +if (eval { require Devel::GlobalDestruction } + && Devel::GlobalDestruction->VERSION < 0.10) { + package MY; + no warnings 'once'; + + *install = sub { + my $self = shift; + return ' +pure_site_install :: + $(NOECHO) $(RM_F) ' . $self->quote_literal( + $self->catfile('$(DESTINSTALLSITEARCH)', 'Devel', 'GlobalDestruction.pm') + ) . "\n" . $self->SUPER::install; + }; +} + delete $WriteMakefileArgs{CONFIGURE_REQUIRES} unless eval { ExtUtils::MakeMaker->VERSION('6.52') };