[30574] trunk/dports/python/py25-numeric

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 31 05:11:27 PDT 2007


Revision: 30574
          http://trac.macosforge.org/projects/macports/changeset/30574
Author:   afb at macports.org
Date:     2007-10-31 05:11:26 -0700 (Wed, 31 Oct 2007)

Log Message:
-----------
fix build for leopard, gettimeofday constness (#13067)

Modified Paths:
--------------
    trunk/dports/python/py25-numeric/Portfile

Added Paths:
-----------
    trunk/dports/python/py25-numeric/files/patch-ranf.c

Modified: trunk/dports/python/py25-numeric/Portfile
===================================================================
--- trunk/dports/python/py25-numeric/Portfile	2007-10-31 10:43:39 UTC (rev 30573)
+++ trunk/dports/python/py25-numeric/Portfile	2007-10-31 12:11:26 UTC (rev 30574)
@@ -25,14 +25,16 @@
                 sha1 72869ef80c12630a9a125ba10c96093b6ae16aff \
                 rmd160 c9502db28663558c535e236392c9beddec9743bb
 
+patchfiles      patch-ranf.c
+
 platform macosx {
-    patch {
+    post-patch {
         copy -force ${filespath}/customize.py-macosx ${worksrcpath}/customize.py
     }
 }
 
 platform puredarwin {
-    patch {
+    post-patch {
         copy -force ${filespath}/customize.py-puredarwin ${worksrcpath}/customize.py
     }
 }

Added: trunk/dports/python/py25-numeric/files/patch-ranf.c
===================================================================
--- trunk/dports/python/py25-numeric/files/patch-ranf.c	                        (rev 0)
+++ trunk/dports/python/py25-numeric/files/patch-ranf.c	2007-10-31 12:11:26 UTC (rev 30574)
@@ -0,0 +1,11 @@
+--- ./Packages/RNG/Src/ranf.c.orig	2005-04-03 14:23:06.000000000 +0200
++++ ./Packages/RNG/Src/ranf.c	2007-10-31 12:59:50.000000000 +0100
+@@ -149,7 +149,7 @@ void Mixranf(int *s,u32 s48[2])
+ #else
+ 	struct timeval tv;
+ 	struct timezone tz;
+-#if !defined(__sgi)
++#if !defined(__sgi) && !defined(__APPLE__)
+ 	int gettimeofday(struct timeval *, struct timezone *);
+ #endif
+ 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071031/9c97967e/attachment-0001.html


More information about the macports-changes mailing list