Rewrite sql formatter script and shove it into examples until more tested
[dbsrgits/SQL-Abstract.git] / Makefile.PL
index bcaee3a..8faa856 100644 (file)
@@ -1,18 +1,36 @@
-use 5.006;
-use ExtUtils::MakeMaker;
-# See lib/ExtUtils/MakeMaker.pm for details of how to influence
-# the contents of the Makefile that is written.
-WriteMakefile(
-    NAME           => 'SQL::Abstract',
-    VERSION_FROM   => 'lib/SQL/Abstract.pm', # finds $VERSION
-    PREREQ_PM      => {
-      "List::Util" => 0
-      "Scalar::Util" => 0
-      "Test::Builder" => 0,
-      "Test::More" => 0,
-      "Test::Exception" => 0,
-      "Data::Dumper" => 0,
-     }, # e.g., Module::Name => 1.1
-    ABSTRACT_FROM  => 'lib/SQL/Abstract.pm', # retrieve abstract from module
-    AUTHOR         => 'Nathan Wiger (nate@wiger.org)',
-);
+use inc::Module::Install 1.06;
+use strict;
+use warnings;
+
+use 5.006002;
+
+perl_version '5.006002';
+name 'SQL-Abstract';
+author 'Nathan Wiger <nate@wiger.org>';
+resources 'license'     => 'http://dev.perl.org/licenses/';
+resources 'repository'  => 'git://git.shadowcat.co.uk/dbsrgits/SQL-Abstract.git';
+resources 'bugtracker'  => 'http://rt.cpan.org/NoAuth/Bugs.html?Dist=SQL-Abstract';
+
+all_from 'lib/SQL/Abstract.pm';
+
+dynamic_config 0;
+
+requires 'List::Util'   => 0;
+requires 'Scalar::Util' => 0;
+requires 'Moo'          => 1.004002;
+requires 'Hash::Merge'  => 0.12;
+
+test_requires "Test::More"      => 0.88;
+test_requires "Test::Exception" => 0.31;
+test_requires "Test::Warn"      => 0;
+test_requires "Test::Deep"      => 0.101;
+test_requires "Storable"        => 0;   # for cloning in tests
+
+no_index package => 'DBIx::Class::Storage::Debug::PrettyPrint';
+no_index directory => 'examples';
+
+tests_recursive 't';
+
+auto_install();
+
+WriteAll();