remove direct use of Class::C3 in tests
[p5sagit/Class-C3-Componentised.git] / Makefile.PL
1 use inc::Module::Install 1.00;
2
3 use 5.006002;
4 perl_version '5.006002';
5
6 name      'Class-C3-Componentised';
7 author    'Ash Berlin <ash@cpan.org>';
8 all_from  'lib/Class/C3/Componentised.pm';
9
10 test_requires  'Test::Exception' => '0.31';
11 test_requires  'Test::More' => '0.96';
12
13 requires  'MRO::Compat'         => '0.09';
14 requires  'Class::Inspector'    => '1.23';
15
16 # we don't actually need Class::C3. MRO::Compat loads it on 5.8. On 5.10 it
17 # isn't needed. However, some existing code relies on us loading Class::C3. We
18 # don't want to break it just yet. Therefore we depend directly on Class::C3 as
19 # well.
20 requires  'Class::C3' => '0.20';
21
22 resources repository => 'git://git.shadowcat.co.uk/p5sagit/Class-C3-Componentised.git';
23
24 if ($Module::Install::AUTHOR) {
25
26   print "Regenerating README\n";
27   system('pod2text lib/Class/C3/Componentised.pm > README');
28
29   if (-f 'MANIFEST') {
30     print "Removing MANIFEST\n";
31     unlink 'MANIFEST';
32   }
33 }
34
35
36 WriteAll;