X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=6d5529aface34a3fe0489ce0addf3ea30083b1bd;hb=0c2e9b71331a73062e87c57fbe80a1e3614f545e;hp=431d78c81db79221a66c6ef1b56f7c7789b1e216;hpb=2ffffc6d4b76c053ddf254ef9356c92bba7d2acf;p=gitmo%2FClass-C3.git diff --git a/Makefile.PL b/Makefile.PL index 431d78c..6d5529a 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,11 +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, - 'Algorithm::C3' => 0.01, - } -); +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.07'; + + # Would like to disable these if they answer yes above too ... + requires 'Algorithm::C3' => '0.06'; + requires 'Scalar::Util' => '1.10'; +} + +auto_install; +WriteAll;