X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=d7078f68cdc31f659a5f5d61fd2bfa0044b7b7be;hb=2d8ea983a92ff04838a169dff57208d9f6388d88;hp=d4c4e9a6a08bd99580262488a1c1e5da07a03be0;hpb=d304984927c1cac62247a93d2cfeb9d1215c9713;p=gitmo%2FClass-C3.git diff --git a/Makefile.PL b/Makefile.PL index d4c4e9a..d7078f6 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,11 +1,19 @@ -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.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', + ($] < 5.009_005 ? ('Class::C3::XS' => '0.02') : ()); + + # Would like to disable these if they answer yes above too ... + requires 'Algorithm::C3' => '0.06'; + requires 'Scalar::Util' => '1.10'; +} + +auto_install; +WriteAll;