[131020] trunk/dports/python/py-scipy

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


Revision: 131020
          https://trac.macports.org/changeset/131020
Author:   sean at macports.org
Date:     2015-01-04 21:22:20 -0800 (Sun, 04 Jan 2015)
Log Message:
-----------
py-scipy: add __ACCELERATE__ to cpp; fixes #46395

This change adds a CPP flag for building against the default blas/lapack
libraries provided by Apple. We also use the revbump to remove the dependency
on SuiteSparse which was removed upstream for this latest release.

In addition, there was a problem with not all files having read access which
was fixed as well.

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

Removed Paths:
-------------
    trunk/dports/python/py-scipy/files/

Modified: trunk/dports/python/py-scipy/Portfile
===================================================================
--- trunk/dports/python/py-scipy/Portfile	2015-01-05 05:22:18 UTC (rev 131019)
+++ trunk/dports/python/py-scipy/Portfile	2015-01-05 05:22:20 UTC (rev 131020)
@@ -8,7 +8,7 @@
 
 name                    py-scipy
 version                 0.14.1
-revision                1
+revision                2
 platforms               darwin
 license                 BSD
 maintainers             sean michaelld openmaintainer
@@ -33,7 +33,6 @@
 
     depends_lib-append      port:py${python.version}-numpy \
                             port:py${python.version}-nose \
-                            port:SuiteSparse \
                             port:swig-python
 
     worksrcdir              ${distname}
@@ -52,21 +51,26 @@
         build.cmd-append    ${fc_options} ${config_options}
         destroot.cmd-append ${fc_options} ${config_options}
 
+        if {![variant_isset atlas]} {
+            # https://trac.macports.org/ticket/46395
+            configure.cppflags-append -D__ACCELERATE__
+        }
+
         build.env-append    CC="${configure.cc}" \
                             CXX="${configure.cxx}" \
                             CFLAGS="${configure.cc_archflags}" \
-                            CXXFLAGS="${configure.cxx_archflags}"
+                            CXXFLAGS="${configure.cxx_archflags}" \
+                            CPPFLAGS="${configure.cppflags}"
         destroot.env-append CC="${configure.cc}" \
                             CXX="${configure.cxx}" \
                             CFLAGS="${configure.cc_archflags}" \
-                            CXXFLAGS="${configure.cxx_archflags}"
-
+                            CXXFLAGS="${configure.cxx_archflags}" \
+                            CPPFLAGS="${configure.cppflags}"
     }
 
-    patchfiles              umfpack_extra_libs.patch
-
-    post-patch {
-        reinplace "s|@@MP_PREFIX@@|${prefix}|g" ${worksrcpath}/site.cfg
+    post-destroot {
+        # for some reason read-world is not set
+        system "chmod -R a+r ${destroot}${prefix}"
     }
 
     variant atlas description "Use MacPorts ATLAS libraries" {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150104/2abd2ea1/attachment.html>


More information about the macports-changes mailing list