<pre style='margin:0'>
MarcusCalhoun-Lopez pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/f2a94f1d0e9d69c72df57ea96f46a7bbfbfa0bd8">https://github.com/macports/macports-ports/commit/f2a94f1d0e9d69c72df57ea96f46a7bbfbfa0bd8</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit f2a94f1d0e9d69c72df57ea96f46a7bbfbfa0bd8
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sun Jul 16 12:32:56 2017 -0700
<span style='display:block; white-space:pre;color:#404040;'> py-cvxopt: use linear_algebra PortGroup
</span>---
python/py-cvxopt/Portfile | 31 +++++++++++++++++++-----------
python/py-cvxopt/files/patch-setup.py.diff | 13 +++++++++++++
2 files changed, 33 insertions(+), 11 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-cvxopt/Portfile b/python/py-cvxopt/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 69d693a..59c5e6f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-cvxopt/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-cvxopt/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,9 +3,11 @@
</span> PortSystem 1.0
PortGroup python 1.0
PortGroup github 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup linear_algebra 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+linalg.setup noveclibfort
</span>
github.setup cvxopt cvxopt 1.1.8
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 5
</span> name py-cvxopt
categories-append math
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -32,21 +34,28 @@ checksums rmd160 0f527df6da0d9d940b337306a7ed7bb55cd63b30 \
</span> python.versions 27 33 34 35 36
if {${subport} ne ${name}} {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ # ignore empty BLAS and LAPACK inputs
</span> # fix typo
patchfiles patch-setup.py.diff
<span style='display:block; white-space:pre;background:#ffe0e0;'>- variant atlas description {Use ATLAS for BLAS and LAPACK} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:atlas
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.env-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CVXOPT_BLAS_LIB_DIR="${prefix}/lib" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CVXOPT_LAPACK_LIB=""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set blas_lib {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set blas_extra_link_args {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach lib [split ${linalglib} " "] {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { [lrange ${lib} 0 1] eq "-l" } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend blas_lib [lrange ${lib} end]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend blas_extra_link_args ${lib}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span>
build.env-append \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- CVXOPT_BLAS_LIB_DIR="${prefix}/lib" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CVXOPT_LAPACK_LIB="tatlas" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CVXOPT_BLAS_LIB="tatlas"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if { ![variant_isset atlas] } {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # atlas' version ${prefix}/lib/liblapack.a is used
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- conflicts-append atlas
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CVXOPT_BLAS_LIB=[join ${blas_lib} ","] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CVXOPT_BLAS_EXTRA_LINK_ARGS=[join ${blas_extra_link_args} ","]
</span> }
variant gsl description {Build GSL module} {
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-cvxopt/files/patch-setup.py.diff b/python/py-cvxopt/files/patch-setup.py.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index b83536c..5fa97d2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-cvxopt/files/patch-setup.py.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-cvxopt/files/patch-setup.py.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,5 +1,18 @@
</span> --- setup.py.orig 2015-09-21 22:26:00.000000000 -0700
+++ setup.py 2017-07-16 10:48:30.000000000 -0700
<span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -70,9 +70,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LAPACK_LIB = os.environ.get("CVXOPT_LAPACK_LIB",LAPACK_LIB)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BLAS_LIB_DIR = os.environ.get("CVXOPT_BLAS_LIB_DIR",BLAS_LIB_DIR)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BLAS_EXTRA_LINK_ARGS = os.environ.get("CVXOPT_BLAS_EXTRA_LINK_ARGS",BLAS_EXTRA_LINK_ARGS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if type(BLAS_LIB) is str: BLAS_LIB = BLAS_LIB.strip().split(',')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if type(LAPACK_LIB) is str: LAPACK_LIB = LAPACK_LIB.strip().split(',')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if type(BLAS_EXTRA_LINK_ARGS) is str: BLAS_EXTRA_LINK_ARGS = BLAS_EXTRA_LINK_ARGS.strip().split(',')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if type(BLAS_LIB) is str: BLAS_LIB = list(filter(None,BLAS_LIB.strip().split(',')))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if type(LAPACK_LIB) is str: LAPACK_LIB = list(filter(None,LAPACK_LIB.strip().split(',')))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if type(BLAS_EXTRA_LINK_ARGS) is str: BLAS_EXTRA_LINK_ARGS = list(filter(None,BLAS_EXTRA_LINK_ARGS.strip().split(',')))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ BUILD_GSL = int(os.environ.get("CVXOPT_BUILD_GSL",BUILD_GSL))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GSL_LIB_DIR = os.environ.get("CVXOPT_GSL_LIB_DIR",GSL_LIB_DIR)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ GSL_INC_DIR = os.environ.get("CVXOPT_GSL_INC_DIR",GSL_INC_DIR)
</span> @@ -87,7 +87,7 @@
DSDP_INC_DIR = os.environ.get("CVXOPT_DSDP_INC_DIR",DSDP_INC_DIR)
SUITESPARSE_EXT_LIB = os.environ.get("CVXOPT_SUITESPARSE_EXT_LIB",SUITESPARSE_EXT_LIB)
</pre><pre style='margin:0'>
</pre>