From: Graham Knop Date: Mon, 5 Jan 2015 21:09:31 +0000 (-0500) Subject: remove extraneous Makefile.PL bits since we have no deps X-Git-Tag: v0.02~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0792b5d179a078ad446fc3b41a6a5929b469b723;p=p5sagit%2FDevel-GlobalDestruction-XS.git remove extraneous Makefile.PL bits since we have no deps --- diff --git a/Makefile.PL b/Makefile.PL index 7d84579..f0cbc21 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -8,11 +8,6 @@ use ExtUtils::MakeMaker; my $mymeta_works = eval { ExtUtils::MakeMaker->VERSION('6.5707'); 1 }; my $mymeta = $mymeta_works || eval { ExtUtils::MakeMaker->VERSION('6.5702'); 1 }; -my %META_BITS = ( -); -my %RUN_DEPS = ( -); - my %WriteMakefileArgs = ( NAME => 'Devel::GlobalDestruction::XS', AUTHOR => 'Yuval Kogman ', @@ -22,33 +17,15 @@ my %WriteMakefileArgs = ( INSTALLDIRS => 'site', PL_FILES => { }, MIN_PERL_VERSION => '5.006', - PREREQ_PM => \%RUN_DEPS, META_ADD => { resources => { repository => 'git://git.shadowcat.co.uk/p5sagit/Devel-GlobalDestruction-XS.git', bugtracker => 'http://rt.cpan.org/Public/Dist/Display.html?Name=Devel-GlobalDestruction-XS', }, - requires => \%RUN_DEPS, + requires => { }, dynamic_config => 0, }, ($mymeta and !$mymeta_works) ? ( 'NO_MYMETA' => 1 ) : (), ); -unless ( eval { ExtUtils::MakeMaker->VERSION('6.56') } ) { - my $br = delete $WriteMakefileArgs{BUILD_REQUIRES}; - my $pp = $WriteMakefileArgs{PREREQ_PM}; - for my $mod ( keys %$br ) { - if ( exists $pp->{$mod} ) { - $pp->{$mod} = $br->{$mod} if $br->{$mod} > $pp->{$mod}; - } - else { - $pp->{$mod} = $br->{$mod}; - } - } -} - -delete $WriteMakefileArgs{CONFIGURE_REQUIRES} - unless eval { ExtUtils::MakeMaker->VERSION('6.52') }; - WriteMakefile(%WriteMakefileArgs); -