2 use warnings FATAL => 'all';
6 name => 'Devel-GlobalDestruction-XS',
18 url => 'git://github.com/p5sagit/Devel-GlobalDestruction-XS.git',
19 # git://git.shadowcat.co.uk/p5sagit/Devel-GlobalDestruction-XS.git
20 web => 'http://github.com/p5sagit/Devel-GlobalDestruction-XS',
24 web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Devel-GlobalDestruction-XS',
25 mailto => 'bug-Devel-GlobalDestruction-XS@rt.cpan.org',
27 x_IRC => 'irc://irc.perl.org/#toolchain',
28 license => [ 'http://dev.perl.org/licenses/' ],
34 ## BOILERPLATE ###############################################################
35 require ExtUtils::MakeMaker;
36 (do './maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
38 # have to do this since old EUMM dev releases miss the eval $VERSION line
39 my $eumm_version = eval $ExtUtils::MakeMaker::VERSION;
40 my $mymeta = $eumm_version >= 6.57_02;
41 my $mymeta_broken = $mymeta && $eumm_version < 6.57_07;
43 ($MM_ARGS{NAME} = $META{name}) =~ s/-/::/g;
44 ($MM_ARGS{VERSION_FROM} = "lib/$MM_ARGS{NAME}.pm") =~ s{::}{/}g;
45 $META{license} = [ $META{license} ]
46 if $META{license} && !ref $META{license};
47 $MM_ARGS{LICENSE} = $META{license}[0]
48 if $META{license} && $eumm_version >= 6.30;
49 $MM_ARGS{NO_MYMETA} = 1
51 $MM_ARGS{META_ADD} = { 'meta-spec' => { version => 2 }, %META }
54 for (qw(configure build test runtime)) {
55 my $key = $_ eq 'runtime' ? 'PREREQ_PM' : uc $_.'_REQUIRES';
56 my $r = $MM_ARGS{$key} = {
57 %{$META{prereqs}{$_}{requires} || {}},
58 %{delete $MM_ARGS{$key} || {}},
60 defined $r->{$_} or delete $r->{$_} for keys %$r;
63 $MM_ARGS{MIN_PERL_VERSION} = delete $MM_ARGS{PREREQ_PM}{perl} || 0;
65 delete $MM_ARGS{MIN_PERL_VERSION}
66 if $eumm_version < 6.47_01;
67 $MM_ARGS{BUILD_REQUIRES} = {%{$MM_ARGS{BUILD_REQUIRES}}, %{delete $MM_ARGS{TEST_REQUIRES}}}
68 if $eumm_version < 6.63_03;
69 $MM_ARGS{PREREQ_PM} = {%{$MM_ARGS{PREREQ_PM}}, %{delete $MM_ARGS{BUILD_REQUIRES}}}
70 if $eumm_version < 6.55_01;
71 delete $MM_ARGS{CONFIGURE_REQUIRES}
72 if $eumm_version < 6.51_03;
74 ExtUtils::MakeMaker::WriteMakefile(%MM_ARGS);
75 ## END BOILERPLATE ###########################################################