use bare filehandles rather than IO::File (patch from leont)'
[p5sagit/Module-Metadata.git] / Makefile.PL
index 407826e..9329964 100644 (file)
@@ -17,7 +17,6 @@ WriteMakefile(
     'Carp'        => 0,
     'File::Find'  => 0,
     'File::Spec'  => 0,
-    'IO::File'    => 0,
     'strict'      => 0,
     'warnings'    => 0,
     'vars'        => 0,
@@ -28,6 +27,7 @@ WriteMakefile(
       : ()
     ,
   },
+  -f 'META.yml' ? () : (
   META_MERGE => {
     'meta-spec' => { version => 2 },
     dynamic_config => 0,
@@ -44,8 +44,8 @@ WriteMakefile(
       },
     },
     prereqs => {
-      requires => {
-        test => {
+      test => {
+        requires => {
           'Test::More' => 0,
           'Carp' => 0,
           'Config' => 0,
@@ -61,5 +61,5 @@ WriteMakefile(
         },
       },
     },
-  },
+  } ),
 );