develooper Front page | perl.perl5.porters | Postings from March 2009

Patch for Time::HiRes Makefile.PL

Thread Next
From:
Nicholas Clark
Date:
March 26, 2009 06:45
Subject:
Patch for Time::HiRes Makefile.PL
Message ID:
20090326134523.GQ18164@plum.flirble.org
The Makefile.PL for Time::HiRes in blead has diverged a bit from that on CPAN.

The appended patch brings it back into sync, and removes MAN3PODS, which isn't
needed any more. Would it be possible to apply this?

Nicholas Clark

--- ext/Time-HiRes/Makefile.PL	2009-03-26 11:48:54.000000000 +0000
+++ ../Time-HiRes-1.9719/Makefile.PL	2008-12-25 22:29:15.000000000 +0000
@@ -100,7 +100,7 @@
 
 	if ($ENV{PERL_CORE}) {
 	    my $updir = File::Spec->updir;
-	    $COREincdir = File::Spec->catdir(($updir) x 2);
+	    $COREincdir = File::Spec->catdir(($updir) x 3);
 	} else {
 	    $COREincdir = File::Spec->catdir($Config{'archlibexp'}, 'CORE');
 	}
@@ -776,6 +776,10 @@
         realclean => { FILES=> 'const-c.inc const-xs.inc' },
     );
 
+    if ($ENV{PERL_CORE}) {
+	push @makefileopts, MAN3PODS => {};
+    }
+
     WriteMakefile(@makefileopts);
 }
 
@@ -828,7 +832,7 @@
 }
 
 sub main {
-    if (-f "Makefile" and -f "xdefine" && !(@ARGV  && $ARGV[0] eq '--configure')) {
+    if (-f "xdefine" && !(@ARGV  && $ARGV[0] eq '--configure')) {
 	print qq[$0: The "xdefine" exists, skipping the configure step.\n];
 	print qq[("$^X $0 --configure" to force the configure step)\n];
     } else {

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About