use meta v2
[p5sagit/Devel-GlobalDestruction-XS.git] / Makefile.PL
1 use strict;
2 use warnings;
3
4 require 5.006;
5
6 use ExtUtils::MakeMaker;
7
8 my $mymeta_works = eval { ExtUtils::MakeMaker->VERSION('6.5707'); 1 };
9 my $mymeta = $mymeta_works || eval { ExtUtils::MakeMaker->VERSION('6.5702'); 1 };
10
11 my %WriteMakefileArgs = (
12   NAME                => 'Devel::GlobalDestruction::XS',
13   AUTHOR              => 'Yuval Kogman <nothingmuch@woobling.org>',
14   VERSION_FROM        => 'lib/Devel/GlobalDestruction/XS.pm',
15   ABSTRACT_FROM       => 'lib/Devel/GlobalDestruction/XS.pm',
16   LICENSE             => 'perl',
17   INSTALLDIRS         => 'site',
18   PL_FILES            => { },
19   MIN_PERL_VERSION    => '5.006',
20   META_ADD => {
21     'meta-spec' => { version => 2.0 },
22     resources => {
23       repository => {
24         url => 'git://git.shadowcat.co.uk/p5sagit/Devel-GlobalDestruction-XS.git',
25         web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/Devel-GlobalDestruction-XS.git',
26         type => 'git',
27       },
28       bugtracker => {
29         web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-GlobalDestruction-XS',
30         mailto => 'bug-Devel-GlobalDestruction-XS@rt.cpan.org',
31       },
32       license => [ 'http://dev.perl.org/licenses/' ],
33     },
34     requires => { },
35     dynamic_config => 0,
36   },
37   ($mymeta and !$mymeta_works) ? ( 'NO_MYMETA' => 1 ) : (),
38 );
39
40 WriteMakefile(%WriteMakefileArgs);