Fix some legacy code to stop warning on newer perls
[dbsrgits/SQL-Translator.git] / Makefile.PL
index c7d12d0..96f385c 100644 (file)
@@ -1,7 +1,10 @@
-use inc::Module::Install 0.89;
+use inc::Module::Install 1.00;
 use strict;
 use warnings;
 
+# to deal wuth x.y.z versions properly
+configure_requires 'ExtUtils::MakeMaker' => 6.54;
+
 my $deps = {
   requires => {
     'Class::Base'              => 0,
@@ -11,16 +14,17 @@ my $deps = {
     'Carp::Clan'               => 0,
     'IO::Dir'                  => 0,
     'IO::Scalar'               => 2.110,
-    'Parse::RecDescent'        => 1.096000,   # PBP ftw
+    'Parse::RecDescent'        => 1.962002,
     'Pod::Usage'               => 0,
     'Class::Accessor::Fast'    => 0,
     'DBI'                      => 0,
     'File::ShareDir'           => 1.0,
     'File::Spec'               => 0,
+    'Scalar::Util'             => 0,
     'XML::Writer'              => 0.500,
   },
   recommends => {
-    'Template'                 => 2.10,
+    'Template'                 => 2.20,
     'GD'                       => 0,
     'GraphViz'                 => 0,
     'Graph::Directed'          => 0,
@@ -28,9 +32,9 @@ my $deps = {
     'Text::ParseWords'         => 0,
     'Text::RecordParser'       => 0.02,
     'XML::LibXML'              => 1.69,
-    'YAML'                     => 0.66,
   },
   test_requires => {
+    'YAML'                     => 0.66,
     'File::Basename'           => 0,
     'Test::More'               => 0.6,
     'Test::Differences'        => 0,
@@ -83,7 +87,6 @@ if ($Module::Install::AUTHOR) {
 
 WriteAll();
 
-
 sub _recompile_grammars {
   # placeholder, will be used to recompile P::RD parsers before shipping
   # will also allow to lose dependency on P::RD
@@ -121,18 +124,21 @@ sub _recreate_rt_source {
   };
 
   if ($@) {
-    print <<EOE;
+    warn <<EOE;
 
 =========================================================================
-===============              FATAL ERROR                =================
+===============              WARNING !!!                =================
 =========================================================================
 
 Unable to update the roundtrip schema (attempt triggered by AUTHOR mode).
-Aborting Makefile generation.
+We will still generate a Makefile, but be aware that if you build a dist
+this way, it *WILL* be broken.
 
+-------------------------------------------------------------------------
 $@
 
+Press Enter to continue.
 EOE
-    exit 1;
+  <>;
   }
 }