use Module::Install
Arthur Axel "fREW" Schmidt [Wed, 27 Jan 2010 06:28:00 +0000 (06:28 +0000)]
Makefile.PL
TODO

index c40c104..651975d 100644 (file)
@@ -1,10 +1,24 @@
-use ExtUtils::MakeMaker;
-
-WriteMakefile(
-     NAME          => 'DBIx::Class::Journal',
-     VERSION_FROM  => 'lib/DBIx/Class/Journal.pm',
-     PREREQ_PM     => { 'DBIx::Class'           => 0.08,
-                        'DBD::SQLite'           => 0.12,
-                        'Test::TempDir'         => 0.04,
-                    },
-);
+use inc::Module::Install 0.89;
+use strict;
+use warnings;
+
+use 5.008001;
+
+# ****** DO NOT ADD OPTIONAL DEPENDENCIES. EVER. --mst ******
+
+name     'DBIx-Class-Journal';
+perl_version '5.008001';
+all_from 'lib/DBIx/Class/Journal.pm';
+
+
+test_requires 'Test::TempDir'       => '0.04';
+
+requires 'DBIx::Class'               => '0.08';
+
+tests_recursive ('t');
+
+resources 'license'     => 'http://dev.perl.org/licenses/';
+resources 'repository'  => 'http://dev.catalyst.perl.org/repos/bast/DBIx-Class-Journal/';
+
+WriteAll();
+
diff --git a/TODO b/TODO
index 1fb3cf8..2985bd4 100644 (file)
--- a/TODO
+++ b/TODO
@@ -8,6 +8,3 @@ $resultset->delete and other bulk ops
 $history->restore;
 $changeset->rollback; # all up to this point?
 $changeset->reverse; # only this one
-
-why isn't this a Module::Install based app?
-add Test/TempDir.pm to build_requires
\ No newline at end of file