Bump optional prereq on Class::C3 to make sure we don't get redefined warnings.
[gitmo/MRO-Compat.git] / Makefile.PL
index cf8bc11..e0f2ca4 100644 (file)
@@ -1,14 +1,18 @@
-use inc::Module::Install;
+use inc::Module::Install 0.75;
 
-name           '';
-all_from       'lib/mro.pm';
+name          'MRO-Compat';
+all_from      'lib/MRO/Compat.pm';
 
-build_requires 'Test::More'    => '0.47';
+requires      'perl'       => 5.006_000;
+test_requires 'Test::More' => '0.47';
 
-if($] > 5.009_004) {
-    warn "*** There is no good reason to install this module on Perl version 5.9.5 or higher ***";
-    # XXX can I prevent M::I from installing mro.pm in this case?
+if($] < 5.009_005) {
+    feature  'XS Speedups', 'Class::C3::XS' => '0.08';
+    requires 'Class::C3' => '0.20';
 }
 
-auto_install;
+# Rebuild README for maintainers
+system("pod2text lib/MRO/Compat.pm >README") if -e 'MANIFEST.SKIP';
+
+auto_provides;
 WriteAll;