keep strict metadata in META_MERGE and prereqs in META_ADD
Karen Etheridge [Thu, 17 Jul 2014 17:28:28 +0000 (10:28 -0700)]
Makefile.PL

index 3edd45c..4291e18 100644 (file)
@@ -7,9 +7,24 @@ use ExtUtils::MakeMaker;
 my %WriteMakefileArgs = (
   NAME => 'JSON::MaybeXS',
   VERSION_FROM => 'lib/JSON/MaybeXS.pm',
-  META_ADD => {
+
+  META_MERGE => {
     'meta-spec' => { version => 2 },
     dynamic_config => 1,
+    resources => {
+      repository => {
+        url => 'https://github.com/karenetheridge/JSON-MaybeXS.git',
+        web => 'https://github.com/karenetheridge/JSON-MaybeXS',
+        type => 'git',
+      },
+      bugtracker => {
+        mailto => 'bug-JSON-MaybeXS@rt.cpan.org',
+        web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=JSON-MaybeXS',
+      },
+    },
+  },
+
+  META_ADD => {
     prereqs => {
       configure => {
         requires => {
@@ -35,18 +50,6 @@ my %WriteMakefileArgs = (
         },
       },
     },
-
-    resources => {
-      repository => {
-        url => 'https://github.com/karenetheridge/JSON-MaybeXS.git',
-        web => 'https://github.com/karenetheridge/JSON-MaybeXS',
-        type => 'git',
-      },
-      bugtracker => {
-        mailto => 'bug-JSON-MaybeXS@rt.cpan.org',
-        web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=JSON-MaybeXS',
-      },
-    },
   },
 
   realclean => { FILES => [ 'Distar/', 'MANIFEST*' ] },