--- /dev/null
+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;
+
+++ /dev/null
-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
--- /dev/null
+^_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
+++ /dev/null
-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,
- }
-);
# use these for debugging ...
sub _dump_MRO_table { %MRO }
our $TURN_OFF_C3 = 0;
+
+# state tracking for initialize()/uninitialize()
our $_initialized = 0;
sub import {
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.