This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don't install pods via MakeMaker for C::Zlib,
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Thu, 6 Oct 2005 09:09:06 +0000 (09:09 +0000)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Thu, 6 Oct 2005 09:09:06 +0000 (09:09 +0000)
as suggested by Robin Barker

p4raw-id: //depot/perl@25704

ext/Compress/Zlib/Makefile.PL

index 9206db6..d377f17 100755 (executable)
@@ -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',