X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;h=cf7f30e41c8ab2c69e3b39ced29c39809f6d2d0a;hb=717b8bce61b131ff53f4fdfa81a25fa2c6d2286a;hp=d2c495efe56fa41307bb0d5d0c3b38f3292b379c;hpb=18f7122ed1b59f335b2fa69af8211da1c97d4488;p=p5sagit%2Fstrictures.git diff --git a/Makefile.PL b/Makefile.PL index d2c495e..cf7f30e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,11 +1,11 @@ use strict; use warnings FATAL => 'all'; use 5.006; +require "inc/ExtUtils/HasCompiler.pm"; my $have_compiler = ! parse_args()->{PUREPERL_ONLY} - && eval { require ExtUtils::CBuilder; 1 } - && ExtUtils::CBuilder->new->have_compiler; + && ExtUtils::HasCompiler::can_compile_loadable_object(quiet => 1); my %extra_prereqs = ( indirect => 0, @@ -31,6 +31,9 @@ my %META = ( }, }, develop => { requires => { + 'Test::Pod' => 0, + 'Test::Pod::Coverage' => 0, + 'Pod::Coverage::CountParents' => 0, %extra_prereqs, } }, }, @@ -56,7 +59,6 @@ my %MM_ARGS = ( PREREQ_PM => { ($] >= 5.008004 && $have_compiler ? %extra_prereqs : () ) }, - realclean => { FILES => [ 'Distar/', 'MANIFEST*' ] }, ); sub parse_args {