also handle undef inputs
[p5sagit/Safe-Isa.git] / Makefile.PL
index 4641c15..c35e0d7 100644 (file)
@@ -8,26 +8,28 @@ WriteMakefile(
   NAME => 'Safe::Isa',
   VERSION_FROM => 'lib/Safe/Isa.pm',
 
-  META_MERGE => {
-    'meta-spec' => { version => 2 },
-    dynamic_config => 0,
+  PREREQ_PM => {
+    'Exporter' => '5.57',
+    'Scalar::Util' => 0,
+  },
 
-    resources => {
-      # r/w: p5sagit@git.shadowcat.co.uk:Safe-Isa.git
-      repository => {
-        url => 'git://git.shadowcat.co.uk/p5sagit/Safe-Isa.git',
-        web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/Safe-Isa.git',
-        type => 'git',
-      },
-      bugtracker => {
-          mailto => 'bug-Safe-Isa@rt.cpan.org',
-          web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Safe-Isa',
-      },
-    },
+  -f 'META.yml' ? () : (
+    META_MERGE => {
+      'meta-spec' => { version => 2 },
+      dynamic_config => 0,
 
-    PREREQ_PM => {
-      'Exporter' => '5.57',
-      'Scalar::Util' => 0,
+      resources => {
+        # r/w: p5sagit@git.shadowcat.co.uk:Safe-Isa.git
+        repository => {
+          url => 'git://git.shadowcat.co.uk/p5sagit/Safe-Isa.git',
+          web => 'http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit/Safe-Isa.git',
+          type => 'git',
+        },
+        bugtracker => {
+            mailto => 'bug-Safe-Isa@rt.cpan.org',
+            web => 'https://rt.cpan.org/Public/Dist/Display.html?Name=Safe-Isa',
+        },
+      },
     },
-  },
+  ),
 );