switch to Module::Install
Jonathan Rockway [Thu, 27 Sep 2007 18:08:36 +0000 (18:08 +0000)]
Build.PL [deleted file]
Makefile.PL [new file with mode: 0644]

diff --git a/Build.PL b/Build.PL
deleted file mode 100644 (file)
index a473e11..0000000
--- a/Build.PL
+++ /dev/null
@@ -1,35 +0,0 @@
-use Module::Build;
-
-use strict;
-use warnings;
-
-# Scalar::Util 1.18 doesn't work on Windows
-my $win32 = !! ( $^O eq 'Win32' or $^O eq 'cygwin' );
-
-my $build = Module::Build->new(
-    module_name => 'Moose',
-    license => 'perl',
-    requires => {
-        'Scalar::Util'       => $win32 ? '1.17' : '1.18',
-        'Carp'               => '0',
-        'Class::MOP'         => '0.39',
-        'Sub::Name'          => '0.02',
-        'Sub::Exporter'      => '0.972',   
-        'B'                  => '0',             
-    },
-    optional => {
-    },
-    build_requires => {
-        'Test::More'       => '0.62',
-        'Test::Exception'  => '0.21',
-        'Test::LongString' => '0',
-    },
-    create_makefile_pl => 'traditional',
-    recursive_test_files => 1,
-    add_to_cleanup => [
-        'META.yml', '*.bak', '*.gz', 'Makefile.PL',
-    ],
-);
-
-$build->create_build_script;
-
diff --git a/Makefile.PL b/Makefile.PL
new file mode 100644 (file)
index 0000000..2159752
--- /dev/null
@@ -0,0 +1,28 @@
+use strict;
+use warnings;
+use inc::Module::Install;
+
+name 'Moose';
+all_from 'lib/Moose.pm';
+license 'perl';
+
+# Scalar::Util 1.18 doesn't work on Windows
+my $win32 = !! ( $^O eq 'Win32' or $^O eq 'cygwin' );
+
+# prereqs
+requires 'Scalar::Util' => $win32 ? '1.17' : '1.18';
+requires 'Carp';
+requires 'Class::MOP' => '0.39';
+requires 'Sub::Name' => '0.02';
+requires 'Sub::Exporter' => '0.972';
+requires 'B';
+
+# things the tests need
+build_requires 'Test::More' => '0.62';
+build_requires 'Test::Exception' => '0.21';
+build_requires 'Test::LongString';
+
+tests('t/*.t t/*/*.t');
+
+WriteAll();
+