From: Brandon L Black Date: Wed, 20 Sep 2006 02:44:37 +0000 (+0000) Subject: convert to Module::Build X-Git-Tag: 0.14~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6262b4cfc624279955709a067d52b1f611eb7a7d;hp=ff168601b6fb63af7716f6da5c21e34053660f8a;p=gitmo%2FClass-C3.git convert to Module::Build --- diff --git a/Build.PL b/Build.PL new file mode 100644 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 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 index 0000000..795aeb0 --- /dev/null +++ b/MANIFEST.SKIP @@ -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 index a074d35..0000000 --- a/Makefile.PL +++ /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, - } -); diff --git a/lib/Class/C3.pm b/lib/Class/C3.pm index c5a720c..a9158ed 100644 --- a/lib/Class/C3.pm +++ b/lib/Class/C3.pm @@ -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. Stevan Little, Estevan@iinteractive.comE +Brandon L. Black, Eblblack@gmail.comE + =head1 COPYRIGHT AND LICENSE Copyright 2005, 2006 by Infinity Interactive, Inc.