convert to Module::Build
Brandon L Black [Wed, 20 Sep 2006 02:44:37 +0000 (02:44 +0000)]
Build.PL [new file with mode: 0644]
MANIFEST [deleted file]
MANIFEST.SKIP [new file with mode: 0644]
Makefile.PL [deleted file]
lib/Class/C3.pm

diff --git a/Build.PL b/Build.PL
new file mode 100644 (file)
index 0000000..d4f82eb
--- /dev/null
+++ b/Build.PL
@@ -0,0 +1,25 @@
+use Module::Build;
+
+use strict;
+
+my $build = Module::Build->new(
+    module_name => 'Class::C3',
+    license => 'perl',
+    requires => {
+        'Scalar::Util'    => 1.10,
+        'Algorithm::C3'   => 0.05,
+    },
+    optional => {},
+    build_requires => {
+        'Test::More' => '0.47',
+        'Test::Exception' => 0.15,
+    },
+    create_makefile_pl => 'traditional',
+    recursive_test_files => 1,
+    add_to_cleanup => [
+        'META.yml', '*.bak', '*.gz', 'Makefile.PL',
+    ],
+);
+
+$build->create_build_script;
+
diff --git a/MANIFEST b/MANIFEST
deleted file mode 100644 (file)
index d5bb3d0..0000000
--- a/MANIFEST
+++ /dev/null
@@ -1,32 +0,0 @@
-ChangeLog
-Makefile.PL
-MANIFEST
-README
-lib/Class/C3.pm
-opt/c3.pm
-t/00_load.t
-t/01_MRO.t
-t/02_MRO.t
-t/03_MRO.t
-t/04_MRO.t
-t/05_MRO.t
-t/06_MRO.t
-t/10_Inconsistent_hierarchy.t
-t/20_reinitialize.t
-t/21_C3_with_overload.t
-t/22_uninitialize.t
-t/30_next_method.t
-t/31_next_method_skip.t
-t/32_next_method_edge_cases.t
-t/33_next_method_used_with_NEXT.t
-t/34_next_method_in_eval.t
-t/35_next_method_in_anon.t
-t/pod.t
-t/pod_coverage.t
-t/lib/A.pm
-t/lib/B.pm
-t/lib/C.pm
-t/lib/D.pm
-t/lib/E.pm
-t/lib/F.pm
-util/visualize_c3.pl
diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP
new file mode 100644 (file)
index 0000000..795aeb0
--- /dev/null
@@ -0,0 +1,18 @@
+^_build
+^Build$
+^blib
+~$
+\.bak$
+^MANIFEST\.SKIP$
+CVS
+\.svn
+\.DS_Store
+cover_db
+\..*\.sw.?$
+^Makefile$
+^pm_to_blib$
+^MakeMaker-\d
+^blibdirs$
+\.old$
+^#.*#$
+^\.#
\ No newline at end of file
diff --git a/Makefile.PL b/Makefile.PL
deleted file mode 100644 (file)
index a074d35..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-use ExtUtils::MakeMaker;
-WriteMakefile(
-    'NAME'             => 'Class::C3',
-    'VERSION_FROM'     => 'lib/Class/C3.pm', # finds $VERSION
-    'PREREQ_PM'                => {
-        'Test::More'      => 0.47,
-        'Test::Exception' => 0.15,
-        'Scalar::Util'    => 1.10,
-        'Algorithm::C3'   => 0.05,
-               }
-);
index c5a720c..a9158ed 100644 (file)
@@ -28,6 +28,8 @@ our %MRO;
 # use these for debugging ...
 sub _dump_MRO_table { %MRO }
 our $TURN_OFF_C3 = 0;
+
+# state tracking for initialize()/uninitialize()
 our $_initialized = 0;
 
 sub import {
@@ -562,6 +564,8 @@ C<maybe::next::method>.
 
 Stevan Little, E<lt>stevan@iinteractive.comE<gt>
 
+Brandon L. Black, E<lt>blblack@gmail.comE<gt>
+
 =head1 COPYRIGHT AND LICENSE
 
 Copyright 2005, 2006 by Infinity Interactive, Inc.