[118777] trunk/dports/python/py-scipy/Portfile

sean at macports.org sean at macports.org
Thu Apr 10 17:13:39 PDT 2014


Revision: 118777
          https://trac.macports.org/changeset/118777
Author:   sean at macports.org
Date:     2014-04-10 17:13:39 -0700 (Thu, 10 Apr 2014)
Log Message:
-----------
py-scipy: prevent opportunistic linking with atlas and ensure numpy has atlas

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

Modified: trunk/dports/python/py-scipy/Portfile
===================================================================
--- trunk/dports/python/py-scipy/Portfile	2014-04-11 00:13:34 UTC (rev 118776)
+++ trunk/dports/python/py-scipy/Portfile	2014-04-11 00:13:39 UTC (rev 118777)
@@ -3,6 +3,7 @@
 
 PortSystem              1.0
 PortGroup               python 1.0
+PortGroup               active_variants 1.1
 
 name                    py-scipy
 version                 0.13.3
@@ -51,13 +52,23 @@
     variant atlas description "Use MacPorts ATLAS libraries" {
         depends_lib-append  port:atlas
 
+        require_active_variants port:py${python.version}-numpy atlas
+    }
+
+    if {[variant_isset atlas]} {
         build.env-append    ATLAS=${prefix}/lib \
                             LAPACK=${prefix}/lib \
                             BLAS=${prefix}/lib
-
         destroot.env-append ATLAS=${prefix}/lib \
                             LAPACK=${prefix}/lib \
                             BLAS=${prefix}/lib
+    } else {
+        build.env-append    ATLAS=None \
+                            LAPACK=/usr/lib \
+                            BLAS=/usr/lib
+        destroot.env-append ATLAS=None \
+                            LAPACK=/usr/lib \
+                            BLAS=/usr/lib
     }
 
     set gcc_versions {4.3 4.4 4.5 4.6 4.7 4.8 4.9}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140410/f85d81dc/attachment.html>


More information about the macports-changes mailing list