Ticket #38887: py-cvxopt_Portfile.diff

File py-cvxopt_Portfile.diff, 1.8 KB (added by jjstickel (Jonathan Stickel), 11 years ago)
  • python/py-cvxopt/Portfile

    old new  
    66
    77categories-append  math
    88name               py-cvxopt
    9 version            1.1.3
    10 revision           1
     9version            1.1.5
    1110distname           cvxopt-${version}
    1211maintainers        mnick
    1312platforms          darwin
     
    2625
    2726master_sites        http://abel.ee.ucla.edu/src/
    2827
    29 checksums           sha1    fe048bd21bb33eb99adb2759eda6f06d7520aa31 \
    30                     rmd160  cd0fdf51db957b388803b305f43ff323415b2252
     28checksums           sha256  f1c0bd46321db941a46bb3544f4a23c6b15a90cbe5a485d735659abf110993d8 \
     29                    rmd160  3d00f8bed86daeeebf243ab39fe12b2c0126e0e5
    3130
    3231python.versions     25 26 27
    3332python.default_version 27
     
    5756
    5857configure {
    5958    if {[variant_isset atlas]} {
    60         reinplace "s|ATLAS_LIB_DIR = .*|ATLAS_LIB_DIR = '${prefix}/lib'|" \
     59        reinplace "s|BLAS_LIB_DIR = .*|BLAS_LIB_DIR = '${prefix}/lib'|" \
    6160              ${worksrcpath}/src/setup.py
    6261       
    63         # default to cblas if ${prefix}/lib/libblas.dylib doesnt exist
    64         if {![file exists ${prefix}/lib/libblas.dylib]} {
    65             reinplace "s|libraries = \\(.*\\)'blas'\\(.*\\)|libraries = \\1'cblas'\\2|g" \
    66                 ${worksrcpath}/src/setup.py
    67         }
     62        # correct targets for blas and lapack libs (libtatlas.dylib)
     63        reinplace "s|BLAS_LIB = \\(.*\\)'blas'\\(.*\\)|BLAS_LIB = \\1'tatlas'\\2|g" \
     64              ${worksrcpath}/src/setup.py
     65        reinplace "s|LAPACK_LIB = \\(.*\\)'lapack'\\(.*\\)|LAPACK_LIB = \\1'tatlas'\\2|g" \
     66              ${worksrcpath}/src/setup.py
    6867    }
    6968
    7069    if {[variant_isset gsl]} {