Ticket #38887: py-cvxopt_Portfile.2.diff

File py-cvxopt_Portfile.2.diff, 4.1 KB (added by jjstickel (Jonathan Stickel), 11 years ago)

now for cvxopt-1.1.6

  • python/py-cvxopt/Portfile

    old new  
    66
    77categories-append  math
    88name               py-cvxopt
    9 version            1.1.3
    10 revision           1
     9version            1.1.6
    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  7b4ccf3ed896dde6624623431c0b1f5e32d874384329ed716f51babcbf416227 \
     29                    rmd160  52069a2a4597b6d6ce6263ebe91e4aab21a4a2cf
    3130
    32 python.versions     25 26 27
     31python.versions     27 31 32 33
    3332python.default_version 27
    3433
    3534if {$subport != $name} {
     
    5352  depends_lib-append port:DSDP
    5453}
    5554
    56 default_variants +gsl +glpk +fftw +dsdp
     55# dsdp port is broken, JJS 7/1/13
     56#default_variants +gsl +glpk +fftw +dsdp
     57default_variants +gsl +glpk +fftw
    5758
    5859configure {
    5960    if {[variant_isset atlas]} {
    60         reinplace "s|ATLAS_LIB_DIR = .*|ATLAS_LIB_DIR = '${prefix}/lib'|" \
    61               ${worksrcpath}/src/setup.py
     61        reinplace "s|BLAS_LIB_DIR = .*|BLAS_LIB_DIR = '${prefix}/lib'|" \
     62              ${worksrcpath}/setup.py
    6263       
    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         }
     64        # correct targets for blas and lapack libs (libtatlas.dylib)
     65        reinplace "s|BLAS_LIB = \\(.*\\)'blas'\\(.*\\)|BLAS_LIB = \\1'tatlas'\\2|g" \
     66              ${worksrcpath}/setup.py
     67        reinplace "s|LAPACK_LIB = \\(.*\\)'lapack'\\(.*\\)|LAPACK_LIB = \\1'tatlas'\\2|g" \
     68              ${worksrcpath}/setup.py
    6869    }
    6970
    7071    if {[variant_isset gsl]} {
    7172        reinplace "s|BUILD_GSL = .*|BUILD_GSL = 1|" \
    72               ${worksrcpath}/src/setup.py
     73              ${worksrcpath}/setup.py
    7374        reinplace "s|GSL_LIB_DIR = .*|GSL_LIB_DIR = '${prefix}/lib'|" \
    74               ${worksrcpath}/src/setup.py
     75              ${worksrcpath}/setup.py
    7576        reinplace "s|GSL_INC_DIR = .*|GSL_INC_DIR = '${prefix}/include'|" \
    76               ${worksrcpath}/src/setup.py
     77              ${worksrcpath}/setup.py
    7778    }
    7879    if {[variant_isset glpk]} {
    7980        reinplace "s|BUILD_GLPK = .*|BUILD_GLPK = 1|" \
    80               ${worksrcpath}/src/setup.py
     81              ${worksrcpath}/setup.py
    8182        reinplace "s|GLPK_LIB_DIR = .*|GLPK_LIB_DIR = '${prefix}/lib'|" \
    82               ${worksrcpath}/src/setup.py
     83              ${worksrcpath}/setup.py
    8384        reinplace "s|GLPK_INC_DIR = .*|GLPK_INC_DIR = '${prefix}/include'|" \
    84               ${worksrcpath}/src/setup.py
     85              ${worksrcpath}/setup.py
    8586    }
    8687    if {[variant_isset fftw]} {
    8788        reinplace "s|BUILD_FFTW = .*|BUILD_FFTW = 1|" \
    88               ${worksrcpath}/src/setup.py
     89              ${worksrcpath}/setup.py
    8990        reinplace "s|FFTW_LIB_DIR = .*|FFTW_LIB_DIR = '${prefix}/lib'|" \
    90               ${worksrcpath}/src/setup.py
     91              ${worksrcpath}/setup.py
    9192        reinplace "s|FFTW_INC_DIR = .*|FFTW_INC_DIR = '${prefix}/include'|" \
    92               ${worksrcpath}/src/setup.py
     93              ${worksrcpath}/setup.py
    9394    }
    9495    if {[variant_isset dsdp]} {
    9596        reinplace "s|BUILD_DSDP = .*|BUILD_DSDP = 1|" \
    96               ${worksrcpath}/src/setup.py
     97              ${worksrcpath}/setup.py
    9798        reinplace "s|DSDP_LIB_DIR = .*|DSDP_LIB_DIR = '${prefix}/lib'|" \
    98               ${worksrcpath}/src/setup.py
     99              ${worksrcpath}/setup.py
    99100        reinplace "s|DSDP_INC_DIR = .*|DSDP_INC_DIR = '${prefix}/include'|" \
    100               ${worksrcpath}/src/setup.py
     101              ${worksrcpath}/setup.py
    101102    }
    102103}
    103104
    104 build.dir ${worksrcpath}/src
    105 
    106105destroot.dir ${build.dir}
    107106
    108107livecheck.type          none