X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=5acde4af51bb5ed6b75d035a9fb446e6ae04ff5b;hb=866ba35f22aea25317474921f5ee987a2dff1d41;hp=8e97065e3e3aef144d494cff7a6036ae10bddb6e;hpb=0924885541f9e2960901159251c2b00a5f012c54;p=p5sagit%2FDevel-GlobalDestruction-XS.git diff --git a/Makefile.PL b/Makefile.PL index 8e97065..5acde4a 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,34 +17,24 @@ my %WriteMakefileArgs = ( INSTALLDIRS => 'site', PL_FILES => { }, MIN_PERL_VERSION => '5.006', - PREREQ_PM => \%RUN_DEPS, - CONFIGURE_REQUIRES => { 'ExtUtils::CBuilder' => 0.27 }, META_ADD => { + 'meta-spec' => { version => 2.0 }, 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', + repository => { + url => 'git://git.shadowcat.co.uk/p5sagit/Devel-GlobalDestruction-XS.git', + web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/Devel-GlobalDestruction-XS.git', + type => 'git', + }, + bugtracker => { + web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-GlobalDestruction-XS', + mailto => 'bug-Devel-GlobalDestruction-XS@rt.cpan.org', + }, + license => [ 'http://dev.perl.org/licenses/' ], }, - 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); -