# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortGroup linear_algebra 1.0
linalg.setup noveclibfort
github.setup cvxopt cvxopt 1.1.9
maintainers {gmail.com:jjstickel @jjstickel} openmaintainer
description Python module for convex optimization
long_description CVXOPT is a free software package for convex \
optimization based on the Python programming \
language. It can be used with the interactive \
Python interpreter, on the command line by \
executing Python scripts, or integrated in other \
software via Python extension modules. Its main \
purpose is to make the development of software for \
convex optimization applications straightforward \
by building on Python's extensive standard library \
and on the strengths of Python as a high-level \
homepage http://cvxopt.org/
checksums rmd160 bff5c419f73203fe35dc23a1be74f7d4c3aa7322 \
sha256 5cbc2f3ab1573bace9fca6d39cddab86370828f0a50c84fdbd056269c6ec10ac
python.versions 27 34 35 36 37
if {${subport} ne ${name}} {
# ignore empty BLAS and LAPACK inputs
patchfiles patch-setup.py.diff
CVXOPT_BLAS_LIB_DIR=${prefix}/lib \
set blas_extra_link_args {}
foreach lib [split ${linalglib} " "] {
if { [lrange ${lib} 0 1] eq "-l" } {
lappend blas_lib [lrange ${lib} end]
lappend blas_extra_link_args ${lib}
CVXOPT_BLAS_LIB=[join ${blas_lib} ";"] \
CVXOPT_BLAS_EXTRA_LINK_ARGS=[join ${blas_extra_link_args} ";"]
variant gsl description {Build GSL module} {
depends_lib-append port:gsl