5 use inc::Module::Install 1.06;
7 perl_version '5.006002';
9 all_from 'lib/Class/C3.pm';
11 test_requires 'Test::More' => '0.47';
13 # needed by the PP version only, have them installed
14 # regardless of XS availability or perl version
15 # (for fatpacking and whatnot)
16 requires 'Algorithm::C3' => '0.07';
17 requires 'Scalar::Util' => '0';
20 # XS not interesting after mro is cored
21 requires 'Class::C3::XS' => '0.13' if can_xs();
22 test_requires 'Devel::Hide' => 0 if is_smoker();
25 if($Module::Install::AUTHOR) {
26 # compiler detection, goes into META
27 configure_requires 'ExtUtils::MakeMaker' => '6.52';
28 configure_requires 'ExtUtils::CBuilder' => '0.27';
30 # Rebuild README for maintainers
31 system("pod2text lib/Class/C3.pm >README");
36 if ($Module::Install::AUTHOR) {
37 @{Meta->{values}{requires}} = grep
38 { $_->[0] !~ /^ (?: Class::C3::XS | Devel::Hide ) $/x }
39 @{Meta->{values}{requires}}
41 print "Regenerating META with XS/test requires excluded\n";
46 return ( $ENV{AUTOMATED_TESTING} && ! $ENV{PERL5_CPANM_IS_RUNNING} && ! $ENV{RELEASE_TESTING} )