replacing Build.PL with Makefile.PL
John Goulah [Thu, 1 May 2008 22:11:03 +0000 (22:11 +0000)]
Build.PL [deleted file]
MANIFEST
Makefile.PL [new file with mode: 0644]

diff --git a/Build.PL b/Build.PL
deleted file mode 100644 (file)
index 790dcab..0000000
--- a/Build.PL
+++ /dev/null
@@ -1,27 +0,0 @@
-use Module::Build;
-
-use strict;
-
-my $build = Module::Build->new(
-    module_name => 'MooseX::Getopt',
-    license => 'perl',
-    requires => {   
-        'Moose'        => '0.39',
-        'Getopt::Long' => '2.34',
-    },
-    optional => {
-        'Getopt::Long::Descriptive' => 0,
-    },
-    build_requires => {
-        'Test::More'       => '0.62',
-        'Test::Exception'  => '0.21',
-    },
-    create_makefile_pl => 'traditional',
-    recursive_test_files => 1,
-    add_to_cleanup => [
-        'META.yml', '*.bak', '*.gz', 'Makefile.PL',
-    ],
-);
-
-$build->create_build_script;
-
index 24d0d07..1c258b8 100644 (file)
--- a/MANIFEST
+++ b/MANIFEST
@@ -1,5 +1,15 @@
-Build.PL
 ChangeLog
+inc/Module/AutoInstall.pm
+inc/Module/Install.pm
+inc/Module/Install/AutoInstall.pm
+inc/Module/Install/Base.pm
+inc/Module/Install/Can.pm
+inc/Module/Install/Fetch.pm
+inc/Module/Install/Include.pm
+inc/Module/Install/Makefile.pm
+inc/Module/Install/Metadata.pm
+inc/Module/Install/Win32.pm
+inc/Module/Install/WriteAll.pm
 lib/MooseX/Getopt.pm
 lib/MooseX/Getopt/Meta/Attribute.pm
 lib/MooseX/Getopt/Meta/Attribute/NoGetopt.pm
@@ -19,5 +29,6 @@ t/004_nogetop.t
 t/005_strict.t
 t/006_metaclass_traits.t
 t/007_nogetopt_trait.t
+t/008_configfromfile.t
 t/pod.t
 t/pod_coverage.t
diff --git a/Makefile.PL b/Makefile.PL
new file mode 100644 (file)
index 0000000..317458b
--- /dev/null
@@ -0,0 +1,20 @@
+use inc::Module::Install;
+
+name 'MooseX-Getopt';
+license 'perl';
+
+all_from 'lib/MooseX/Getopt.pm';
+
+requires 'Moose'        => '0.43';
+requires 'Getopt::Long' => '2.37';
+
+# optional
+requires 'Getopt::Long::Descriptive' => 0;
+
+build_requires 'Test::More'       => '0.62';
+build_requires 'Test::Exception'  => '0.21';
+
+tests_recursive();
+auto_install;
+
+WriteAll;