X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=405aea399bd00fddcc470985d48c02d1e36cacbe;hb=ebcf1485fff06d827e09d10a40f49c53177df2cf;hp=5aac597b9fab882f218443b8d6df1a0fbbbaab63;hpb=08c2921109d622fd3a1052bf291c246b90fde1a9;p=gitmo%2FClass-C3.git diff --git a/Makefile.PL b/Makefile.PL index 5aac597..405aea3 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,10 +1,18 @@ -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.18, - } -); +use inc::Module::Install; + +name 'Class-C3'; +all_from 'lib/Class/C3.pm'; + +# Class::C3 under 5.9.5+ has no deps +if($] < 5.009_005) { + build_requires 'Test::More' => '0.47'; + + feature 'XS Speedups', 'Class::C3::XS' => '0.04'; + + # Would like to disable these if they answer yes above too ... + requires 'Algorithm::C3' => '0.06'; + requires 'Scalar::Util' => '1.10'; +} + +auto_install; +WriteAll;