source: trunk/dports/python/py-cvxopt/Portfile

Last change on this file was 147594, checked in by khindenburg@…, 18 months ago

glpk: update to 4.60 maintainer #50674; rev-bump deps

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# -*- 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
2# $Id: Portfile 147594 2016-04-09 13:44:38Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6PortGroup           github 1.0
7
8github.setup        cvxopt cvxopt 1.1.8
9revision            1
10name                py-cvxopt
11categories-append   math
12platforms           darwin
13license             GPL-3+
14maintainers         gmail.com:jjstickel openmaintainer
15
16description         Python module for convex optimization
17long_description    CVXOPT is a free software package for convex \
18                    optimization based on the Python programming \
19                    language. It can be used with the interactive \
20                    Python interpreter, on the command line by \
21                    executing Python scripts, or integrated in other \
22                    software via Python extension modules. Its main \
23                    purpose is to make the development of software for \
24                    convex optimization applications straightforward \
25                    by building on Python's extensive standard library \
26                    and on the strengths of Python as a high-level \
27                    programming language.
28homepage            http://cvxopt.org/
29
30checksums           rmd160  0f527df6da0d9d940b337306a7ed7bb55cd63b30 \
31                    sha256  bdc67b65471486e09e51fc1811d102b89fb95041e5deec71f3a74b132d4941fe
32
33python.versions     27 33 34 35
34
35if {${subport} ne ${name}} {
36    patchfiles      patch-setup.py.diff
37    patch.pre_args  -p1
38    post-patch {
39        reinplace "s|__PREFIX__|${prefix}|g" setup.py
40    }
41
42    variant atlas description {Use ATLAS for BLAS and LAPACK} {
43        depends_lib-append  port:atlas
44        patchfiles-append   atlas.patch
45    }
46
47    variant gsl description {Build GSL module} {
48        depends_lib-append  port:gsl
49        post-patch {
50            reinplace {s/BUILD_GSL = 0/BUILD_GSL = 1/} setup.py
51        }
52    }
53
54    variant fftw description {Build FFTW module} {
55        depends_lib-append  port:fftw-3
56        post-patch {
57            reinplace {s/BUILD_FFTW = 0/BUILD_FFTW = 1/} setup.py
58        }
59    }
60
61    variant glpk description {Build GLPK module} {
62        depends_lib-append  port:glpk
63        post-patch {
64            reinplace {s/BUILD_GLPK = 0/BUILD_GLPK = 1/} setup.py
65        }
66    }
67
68    variant dsdp description {Build DSDP module} {
69        depends_lib-append  port:DSDP
70        post-patch {
71            reinplace {s/BUILD_DSDP = 0/BUILD_DSDP = 1/} setup.py
72        }
73    }
74
75    default_variants +gsl +glpk +fftw +dsdp
76
77    livecheck.type      none
78}
Note: See TracBrowser for help on using the repository browser.