actually load JSON::MaybeXS in JSON.pm bool test
[p5sagit/JSON-MaybeXS.git] / Makefile.PL
index 5c49b94..0b78345 100644 (file)
@@ -1,13 +1,13 @@
 use strict;
 use warnings FATAL => 'all';
 use ExtUtils::MakeMaker;
-(do 'maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
+(do './maint/Makefile.PL.include' or die $@) unless -f 'META.yml';
 
 my %WriteMakefileArgs = (
   NAME => 'JSON::MaybeXS',
   VERSION_FROM => 'lib/JSON/MaybeXS.pm',
 
-  META_ADD => {
+  META_MERGE => {
     'meta-spec' => { version => 2 },
     dynamic_config => 1,
     resources => {
@@ -35,7 +35,10 @@ my %WriteMakefileArgs = (
       'Matt S Trout <mst@shadowcat.co.uk>',
     ],
     keywords => [ qw(json serializer serialiser data) ],
+  },
 
+  META_ADD => {
+    'meta-spec' => { version => 2 },
     prereqs => {
       configure => {
         requires => {