This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Be nice with subversion hidden directories
[perl5.git] / ext / Compress / Zlib / Makefile.PL
index 1088436..aeb58e8 100755 (executable)
@@ -73,7 +73,8 @@ my @files = ('Zlib.pm', 't/ZlibTestUtils.pm',
              glob("lib/File/*.pm"),
              grep(!/\.bak$/,  glob("examples/*"))) ;
 
-UpDowngrade(@files) unless $ENV{PERL_CORE};
+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', 
@@ -171,7 +175,6 @@ if (eval {require ExtUtils::Constant; 1}) {
                                      NAMES => \@names,
                                      C_FILE  => 'constants.h',
                                      XS_FILE  => 'constants.xs',
-                                                                       
                                     );
 } 
 else {
@@ -190,7 +193,8 @@ sub MY::libscan
 
     return undef
         if $path =~ /(~|\.bak|_bak)$/ ||
-           $path =~ /\..*\.swp$/ ;
+           $path =~ /\..*\.swp$/ ||
+           $path =~ /\B\.svn\b/;
 
     return $path;
 }