remove direct use of Class::C3 in tests
[p5sagit/Class-C3-Componentised.git] / Makefile.PL
index 0b10913..338ce6b 100644 (file)
@@ -7,21 +7,30 @@ name      'Class-C3-Componentised';
 author    'Ash Berlin <ash@cpan.org>';
 all_from  'lib/Class/C3/Componentised.pm';
 
-requires  'MRO::Compat';
-requires  'Class::Inspector';
-requires  'Carp';
-requires  'Test::Exception';
+test_requires  'Test::Exception' => '0.31';
+test_requires  'Test::More' => '0.96';
+
+requires  'MRO::Compat'         => '0.09';
+requires  'Class::Inspector'    => '1.23';
 
 # we don't actually need Class::C3. MRO::Compat loads it on 5.8. On 5.10 it
 # isn't needed. However, some existing code relies on us loading Class::C3. We
 # don't want to break it just yet. Therefore we depend directly on Class::C3 as
 # well.
-
-### !!! IMPORTANT !!! ###
-# tests currently rely on Class::C3 availability, by requiring it directly
-# will need adjustment if the require is removed
 requires  'Class::C3' => '0.20';
 
-build_requires 'FindBin';
+resources repository => 'git://git.shadowcat.co.uk/p5sagit/Class-C3-Componentised.git';
+
+if ($Module::Install::AUTHOR) {
+
+  print "Regenerating README\n";
+  system('pod2text lib/Class/C3/Componentised.pm > README');
+
+  if (-f 'MANIFEST') {
+    print "Removing MANIFEST\n";
+    unlink 'MANIFEST';
+  }
+}
+
 
 WriteAll;