use meta v2
[p5sagit/Devel-GlobalDestruction-XS.git] / Makefile.PL
index 076fdc4..5acde4a 100644 (file)
@@ -8,46 +8,33 @@ 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 <nothingmuch@woobling.org>',
   VERSION_FROM        => 'lib/Devel/GlobalDestruction/XS.pm',
+  ABSTRACT_FROM       => 'lib/Devel/GlobalDestruction/XS.pm',
   LICENSE             => 'perl',
   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);
-