X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=52adfb1b1d1ae886107e39043565a6e2efeb8df5;hb=c5785624dc4f0933fecda24f25349181b53e82e2;hp=d4c4e9a6a08bd99580262488a1c1e5da07a03be0;hpb=d304984927c1cac62247a93d2cfeb9d1215c9713;p=gitmo%2FClass-C3.git diff --git a/Makefile.PL b/Makefile.PL index d4c4e9a..52adfb1 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.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', 'Class::C3::XS' => '0.03'; + + # Would like to disable these if they answer yes above too ... + requires 'Algorithm::C3' => '0.06'; + requires 'Scalar::Util' => '1.10'; +} + +auto_install; +WriteAll;