X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=6c5a8eedd6fb98c6a0c374b864e78c215e61dc9e;hb=93e4bb3f70bb211cd79b0275dd180b394d7bf8bd;hp=ab808e496ff7ad1c54fbe26990aec6155e5411eb;hpb=f7facd7b73c20ba048f0f6c0baea399ba8db10ed;p=gitmo%2FClass-C3.git diff --git a/Makefile.PL b/Makefile.PL index ab808e4..6c5a8ee 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,12 +1,24 @@ -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, - 'Sub::Name' => 0, - 'NEXT' => 0, - } -); +use inc::Module::Install 0.75; + +name 'Class-C3'; +all_from 'lib/Class/C3.pm'; + +# Class::C3 under 5.9.5+ has no deps +if($] < 5.009_005) { + test_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'; +} + +# Rebuild README for maintainers +if(-e 'MANIFEST.SKIP') { + system("pod2text lib/Class/C3.pm >README"); +} + +auto_provides; +auto_install; +WriteAll;