[131019] trunk/dports/python/py-numpy/Portfile

sean at macports.org sean at macports.org
Sun Jan 4 21:22:18 PST 2015


Revision: 131019
          https://trac.macports.org/changeset/131019
Author:   sean at macports.org
Date:     2015-01-04 21:22:18 -0800 (Sun, 04 Jan 2015)
Log Message:
-----------
py-numpy: replace -O3 with -O2 on ppc; fixes #46392

Modified Paths:
--------------
    trunk/dports/python/py-numpy/Portfile

Modified: trunk/dports/python/py-numpy/Portfile
===================================================================
--- trunk/dports/python/py-numpy/Portfile	2015-01-05 03:16:35 UTC (rev 131018)
+++ trunk/dports/python/py-numpy/Portfile	2015-01-05 05:22:18 UTC (rev 131019)
@@ -8,7 +8,7 @@
 
 github.setup            numpy numpy 1.9.1 v
 name                    py-numpy
-revision                1
+revision                2
 categories-append       math
 license                 BSD
 platforms               darwin
@@ -118,6 +118,12 @@
         reinplace "s|@@MPORTS_PYTHON@@|${python.bin}|" \
             ${worksrcpath}/numpy/f2py/setup.py
 
+        # https://trac.macports.org/ticket/46392
+        if {${os.arch} eq "powerpc"} {
+            reinplace "s,'-O3','-O2'," \
+                ${worksrcpath}/numpy/distutils/fcompiler/gnu.py
+        }
+
         if {[variant_isset universal] && [variant_isset atlas]} {
             # Prepare wrappers
             file copy -force ${filespath}/wrapper-template \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150104/ab2423f3/attachment-0001.html>


More information about the macports-changes mailing list