fix META file generation by working around rt#85406
[gitmo/Role-Tiny.git] / Makefile.PL
index 3f6d42c..2ff04b9 100644 (file)
@@ -22,7 +22,7 @@ WriteMakefile(
   },
   $mymeta_works ? (BUILD_REQUIRES => \%BUILD_DEPS) : (),
 
-  META_MERGE => {
+  -f 'META.yml' ? () : (META_MERGE => {
     'meta-spec' => { version => 2 },
     no_index => {
       directory => [ 'xt' ]
@@ -39,5 +39,5 @@ WriteMakefile(
           web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Role-Tiny',
       },
     },
-  },
+  }),
 );