Changeset 54089


Ignore:
Timestamp:
Jul 20, 2009, 8:03:29 PM (10 years ago)
Author:
macsforever2000@…
Message:

Update to version 1.1.1. Add support for solving SDPs with DSDP. (#20155)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py25-cvxopt/Portfile

    r41154 r54089  
    66categories-append  math
    77name               py25-cvxopt
    8 version            1.1
     8version            1.1.1
    99distname           cvxopt-${version}
    1010maintainers        cornell.edu:ajb78
     
    2222homepage           http://abel.ee.ucla.edu/cvxopt
    2323
    24 distfiles          cvxopt-${version}.tar.gz.gtar
    25 master_sites       http://abel.ee.ucla.edu/download.php
     24distfiles          cvxopt-${version}.tar.gz
     25master_sites       http://abel.ee.ucla.edu/cvxopt/download.php
    2626
    27 checksums          md5 c56def864966a4e168474bb1c00f5808 \
    28                    sha1 693bc10293ebe1ff59d7115e45d7e72f6262e548 \
    29                    rmd160 33e2e047429df21662d3875d385b15ff9c334d52
     27checksums           md5     577e0f2f2288df34310844c67ccd2d77 \
     28                    sha1    391953aea9ce19a3b5c8055237bb26e79798696e \
     29                    rmd160  86f729c4f7cd7eac8253efc9fe6f3ac06c940413
    3030
    3131depends_lib-append port:atlas
     
    4343}
    4444
    45 default_variants +gsl +glpk +fftw
     45variant dsdp description {Link to DSDP library} {
     46  depends_lib-append port:DSDP
     47}
     48
     49default_variants +gsl +glpk +fftw +dsdp
    4650
    4751configure {
     
    7377              ${worksrcpath}/src/setup.py
    7478    }
     79    if {[variant_isset dsdp]} {
     80        reinplace "s|BUILD_DSDP = .*|BUILD_DSDP = 1|" \
     81              ${worksrcpath}/src/setup.py
     82        reinplace "s|DSDP_LIB_DIR = .*|DSDP_LIB_DIR = '${prefix}/lib'|" \
     83              ${worksrcpath}/src/setup.py
     84        reinplace "s|DSDP_INC_DIR = .*|DSDP_INC_DIR = '${prefix}/include'|" \
     85              ${worksrcpath}/src/setup.py
     86    }
    7587}
    7688
Note: See TracChangeset for help on using the changeset viewer.