switch from EXTRA_META to META_MERGE
authorTony Cook <tony@develop-help.com>
Mon, 21 Sep 2009 10:58:27 +0000 (10:58 +0000)
committerTony Cook <tony@develop-help.com>
Mon, 21 Sep 2009 10:58:27 +0000 (10:58 +0000)
Makefile.PL

index b098ebe..5ef0314 100644 (file)
@@ -76,13 +76,20 @@ if ($eu_mm_version > 6.06) {
 # EXTRA_META was also introduced in 6.30_01
 if ($eu_mm_version > 6.3001) {
   $opts{LICENSE} = 'perl';
-  $opts{EXTRA_META} = <<META;
-configure_requires:
-  Imager: 0.54
-build_requires:
-  Imager: 0.54
-  Test::More: 0.47
-META
+}
+if ($eu_mm_version >= 6.46) {
+  $opts{META_MERGE} =
+    {
+     configure_requires => 
+     {
+      Imager => "0.54"
+     },
+     build_requires => 
+     {
+      Imager => "0.54",
+      "Test::More" => "0.47",
+     }
+    };
 }
 
 WriteMakefile(%opts);