You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-cvs@httpd.apache.org by st...@apache.org on 2004/12/15 17:31:27 UTC

svn commit: r111992 - /httpd/test/trunk/perl-framework/Apache-Test/Makefile.PL

Author: stas
Date: Wed Dec 15 08:31:24 2004
New Revision: 111992

URL: http://svn.apache.org/viewcvs?view=rev&rev=111992
Log:
- override sub MY::libscan only if building A-T outside modperl2
- make this override compile-time

Modified:
   httpd/test/trunk/perl-framework/Apache-Test/Makefile.PL

Modified: httpd/test/trunk/perl-framework/Apache-Test/Makefile.PL
Url: http://svn.apache.org/viewcvs/httpd/test/trunk/perl-framework/Apache-Test/Makefile.PL?view=diff&rev=111992&p1=httpd/test/trunk/perl-framework/Apache-Test/Makefile.PL&r1=111991&p2=httpd/test/trunk/perl-framework/Apache-Test/Makefile.PL&r2=111992
==============================================================================
--- httpd/test/trunk/perl-framework/Apache-Test/Makefile.PL	(original)
+++ httpd/test/trunk/perl-framework/Apache-Test/Makefile.PL	Wed Dec 15 08:31:24 2004
@@ -63,6 +63,7 @@
     NAME      => 'Apache::Test',
     VERSION   => $VERSION,
     PREREQ_PM => \%prereq,
+    NO_META   => 1,
     dist      => {
         COMPRESS => 'gzip -9f', SUFFIX => 'gz',
     },
@@ -140,12 +141,12 @@
     }
 }
 
-if ($ExtUtils::MakeMaker::VERSION < 6.06) {
+if (TOP_LEVEL && $ExtUtils::MakeMaker::VERSION < 6.06) {
     # now that we're using subversion, make sure that
     # .svn directories are skipped during the build process
     # for old versions of MakeMaker
 
-    sub MY::libscan {
+    *MY::libscan = sub {
         my $self = shift;
 
         my $path = shift;
@@ -153,7 +154,7 @@
         return '' if $path =~ /\B\.svn\b/;
 
         return $path;
-    }
+    };
 }
 
 sub MY::postamble {