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 <nothingmuch@woobling.org>',
INSTALLDIRS => 'site',
PL_FILES => { },
MIN_PERL_VERSION => '5.006',
- PREREQ_PM => \%RUN_DEPS,
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',
+ },
+ x_IRC => 'irc://irc.perl.org/#toolchain',
+ 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);
-