From: Rafael Garcia-Suarez Date: Thu, 6 Oct 2005 09:09:06 +0000 (+0000) Subject: Don't install pods via MakeMaker for C::Zlib, X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=66bb7d1586457f9f9a4b4cb4ac883549aebe829a;p=p5sagit%2Fp5-mst-13.2.git Don't install pods via MakeMaker for C::Zlib, as suggested by Robin Barker p4raw-id: //depot/perl@25704 --- diff --git a/ext/Compress/Zlib/Makefile.PL b/ext/Compress/Zlib/Makefile.PL index 9206db6..d377f17 100755 --- a/ext/Compress/Zlib/Makefile.PL +++ b/ext/Compress/Zlib/Makefile.PL @@ -73,7 +73,8 @@ my @files = ('Zlib.pm', 't/ZlibTestUtils.pm', glob("lib/File/*.pm"), grep(!/\.bak$/, glob("examples/*"))) ; -UpDowngrade(@files) unless grep { $_ eq 'PERL_CORE=1' } @ARGV; +my $PERL_CORE = grep { $_ eq 'PERL_CORE=1' } @ARGV; +UpDowngrade(@files) unless $PERL_CORE; WriteMakefile( NAME => 'Compress::Zlib', @@ -81,8 +82,11 @@ WriteMakefile( INC => "-I$ZLIB_INCLUDE" , DEFINE => "$OLD_ZLIB $WALL -DGZIP_OS_CODE=$GZIP_OS_CODE" , XS => { 'Zlib.xs' => 'Zlib.c' }, - PREREQ_PM => { 'Scalar::Util' => 0, - $] >= 5.005 && $] < 5.006 ? ('File::BSDGlob' => 0) : () }, + $PERL_CORE + ? (MAN3PODS => {}) + : (PREREQ_PM => { 'Scalar::Util' => 0, + $] >= 5.005 && $] < 5.006 ? ('File::BSDGlob' => 0) : () } + ), 'depend' => { 'Makefile' => 'config.in' }, 'clean' => { FILES => '*.c constants.h constants.xs' }, 'dist' => { COMPRESS => 'gzip',