Ticket #38887: py-cvxopt_Portfile.2.diff
File py-cvxopt_Portfile.2.diff, 4.1 KB (added by jjstickel (Jonathan Stickel), 11 years ago) |
---|
-
python/py-cvxopt/Portfile
old new 6 6 7 7 categories-append math 8 8 name py-cvxopt 9 version 1.1.3 10 revision 1 9 version 1.1.6 11 10 distname cvxopt-${version} 12 11 maintainers mnick 13 12 platforms darwin … … 26 25 27 26 master_sites http://abel.ee.ucla.edu/src/ 28 27 29 checksums sha 1 fe048bd21bb33eb99adb2759eda6f06d7520aa31\30 rmd160 cd0fdf51db957b388803b305f43ff323415b225228 checksums sha256 7b4ccf3ed896dde6624623431c0b1f5e32d874384329ed716f51babcbf416227 \ 29 rmd160 52069a2a4597b6d6ce6263ebe91e4aab21a4a2cf 31 30 32 python.versions 2 5 26 2731 python.versions 27 31 32 33 33 32 python.default_version 27 34 33 35 34 if {$subport != $name} { … … 53 52 depends_lib-append port:DSDP 54 53 } 55 54 56 default_variants +gsl +glpk +fftw +dsdp 55 # dsdp port is broken, JJS 7/1/13 56 #default_variants +gsl +glpk +fftw +dsdp 57 default_variants +gsl +glpk +fftw 57 58 58 59 configure { 59 60 if {[variant_isset atlas]} { 60 reinplace "s| ATLAS_LIB_DIR = .*|ATLAS_LIB_DIR = '${prefix}/lib'|" \61 ${worksrcpath}/s rc/setup.py61 reinplace "s|BLAS_LIB_DIR = .*|BLAS_LIB_DIR = '${prefix}/lib'|" \ 62 ${worksrcpath}/setup.py 62 63 63 # default to cblas if ${prefix}/lib/libblas.dylib doesnt exist64 if {![file exists ${prefix}/lib/libblas.dylib]} {65 reinplace "s|libraries = \\(.*\\)'blas'\\(.*\\)|libraries = \\1'cblas'\\2|g" \66 ${worksrcpath}/src/setup.py67 }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 68 69 } 69 70 70 71 if {[variant_isset gsl]} { 71 72 reinplace "s|BUILD_GSL = .*|BUILD_GSL = 1|" \ 72 ${worksrcpath}/s rc/setup.py73 ${worksrcpath}/setup.py 73 74 reinplace "s|GSL_LIB_DIR = .*|GSL_LIB_DIR = '${prefix}/lib'|" \ 74 ${worksrcpath}/s rc/setup.py75 ${worksrcpath}/setup.py 75 76 reinplace "s|GSL_INC_DIR = .*|GSL_INC_DIR = '${prefix}/include'|" \ 76 ${worksrcpath}/s rc/setup.py77 ${worksrcpath}/setup.py 77 78 } 78 79 if {[variant_isset glpk]} { 79 80 reinplace "s|BUILD_GLPK = .*|BUILD_GLPK = 1|" \ 80 ${worksrcpath}/s rc/setup.py81 ${worksrcpath}/setup.py 81 82 reinplace "s|GLPK_LIB_DIR = .*|GLPK_LIB_DIR = '${prefix}/lib'|" \ 82 ${worksrcpath}/s rc/setup.py83 ${worksrcpath}/setup.py 83 84 reinplace "s|GLPK_INC_DIR = .*|GLPK_INC_DIR = '${prefix}/include'|" \ 84 ${worksrcpath}/s rc/setup.py85 ${worksrcpath}/setup.py 85 86 } 86 87 if {[variant_isset fftw]} { 87 88 reinplace "s|BUILD_FFTW = .*|BUILD_FFTW = 1|" \ 88 ${worksrcpath}/s rc/setup.py89 ${worksrcpath}/setup.py 89 90 reinplace "s|FFTW_LIB_DIR = .*|FFTW_LIB_DIR = '${prefix}/lib'|" \ 90 ${worksrcpath}/s rc/setup.py91 ${worksrcpath}/setup.py 91 92 reinplace "s|FFTW_INC_DIR = .*|FFTW_INC_DIR = '${prefix}/include'|" \ 92 ${worksrcpath}/s rc/setup.py93 ${worksrcpath}/setup.py 93 94 } 94 95 if {[variant_isset dsdp]} { 95 96 reinplace "s|BUILD_DSDP = .*|BUILD_DSDP = 1|" \ 96 ${worksrcpath}/s rc/setup.py97 ${worksrcpath}/setup.py 97 98 reinplace "s|DSDP_LIB_DIR = .*|DSDP_LIB_DIR = '${prefix}/lib'|" \ 98 ${worksrcpath}/s rc/setup.py99 ${worksrcpath}/setup.py 99 100 reinplace "s|DSDP_INC_DIR = .*|DSDP_INC_DIR = '${prefix}/include'|" \ 100 ${worksrcpath}/s rc/setup.py101 ${worksrcpath}/setup.py 101 102 } 102 103 } 103 104 104 build.dir ${worksrcpath}/src105 106 105 destroot.dir ${build.dir} 107 106 108 107 livecheck.type none