X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=f901b6962215b3cb3c971a08db8d35e2a09a48e3;hb=562154278e335251dad66935310f12cc5a006508;hp=f62e12e1af435e6738917986931d968ac6456ad7;hpb=95bebf8c9b18222ddc1363d529f6fd6db46ae50a;p=gitmo%2FClass-C3.git diff --git a/Makefile.PL b/Makefile.PL index f62e12e..f901b69 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,12 +1,20 @@ -use ExtUtils::MakeMaker; -# See lib/ExtUtils/MakeMaker.pm for details of how to influence -# the contents of the Makefile that is written. -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 - } -); +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 ... + feature '-core', + 'Algorithm::C3' => '0.06', + 'Scalar::Util' => '1.10'; +} + +auto_install; +WriteAll;