Ticket #38887: py-cvxopt_Portfile.3.diff
File py-cvxopt_Portfile.3.diff, 4.8 KB (added by jjstickel (Jonathan Stickel), 11 years ago) |
---|
-
python/py-cvxopt/Portfile
old new 1 # -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=41 # -*- 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 2 # $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $ 3 3 4 4 PortSystem 1.0 5 5 PortGroup python 1.0 6 PortGroup github 1.0 7 8 github.setup cvxopt cvxopt 1.1.6 6 9 7 categories-append math8 10 name py-cvxopt 9 version 1.1.3 10 revision 1 11 distname cvxopt-${version} 12 maintainers nomaintainer 11 categories-append math 12 maintainers gmail.com:jjstickel openmaintainer 13 13 platforms darwin 14 14 license GPL-3+ 15 15 … … 22 22 straightforward by building on Python's extensive standard library and on the \ 23 23 strengths of Python as a high-level programming language. 24 24 25 homepage http:// abel.ee.ucla.edu/cvxopt/25 homepage http://cvxopt.org/ 26 26 27 master_sites http://abel.ee.ucla.edu/src/ 27 checksums sha256 7b4ccf3ed896dde6624623431c0b1f5e32d874384329ed716f51babcbf416227 \ 28 rmd160 52069a2a4597b6d6ce6263ebe91e4aab21a4a2cf 28 29 29 checksums sha1 fe048bd21bb33eb99adb2759eda6f06d7520aa31 \ 30 rmd160 cd0fdf51db957b388803b305f43ff323415b2252 31 32 python.versions 25 26 27 30 python.versions 27 31 32 33 33 31 python.default_version 27 34 32 35 if {$ {name} ne ${subport}} {33 if {$subport != $name} { 36 34 variant atlas description {Use ATLAS as BLAS, LAPACK library} { 37 35 depends_lib-append port:atlas 38 36 } … … 57 55 58 56 configure { 59 57 if {[variant_isset atlas]} { 60 reinplace "s| ATLAS_LIB_DIR = .*|ATLAS_LIB_DIR = '${prefix}/lib'|" \61 ${worksrcpath}/s rc/setup.py58 reinplace "s|BLAS_LIB_DIR = .*|BLAS_LIB_DIR = '${prefix}/lib'|" \ 59 ${worksrcpath}/setup.py 62 60 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 }61 # correct targets for blas and lapack libs (libtatlas.dylib) 62 reinplace "s|BLAS_LIB = \\(.*\\)'blas'\\(.*\\)|BLAS_LIB = \\1'tatlas'\\2|g" \ 63 ${worksrcpath}/setup.py 64 reinplace "s|LAPACK_LIB = \\(.*\\)'lapack'\\(.*\\)|LAPACK_LIB = \\1'tatlas'\\2|g" \ 65 ${worksrcpath}/setup.py 68 66 } 69 67 70 68 if {[variant_isset gsl]} { 71 69 reinplace "s|BUILD_GSL = .*|BUILD_GSL = 1|" \ 72 ${worksrcpath}/s rc/setup.py70 ${worksrcpath}/setup.py 73 71 reinplace "s|GSL_LIB_DIR = .*|GSL_LIB_DIR = '${prefix}/lib'|" \ 74 ${worksrcpath}/s rc/setup.py72 ${worksrcpath}/setup.py 75 73 reinplace "s|GSL_INC_DIR = .*|GSL_INC_DIR = '${prefix}/include'|" \ 76 ${worksrcpath}/s rc/setup.py74 ${worksrcpath}/setup.py 77 75 } 78 76 if {[variant_isset glpk]} { 79 77 reinplace "s|BUILD_GLPK = .*|BUILD_GLPK = 1|" \ 80 ${worksrcpath}/s rc/setup.py78 ${worksrcpath}/setup.py 81 79 reinplace "s|GLPK_LIB_DIR = .*|GLPK_LIB_DIR = '${prefix}/lib'|" \ 82 ${worksrcpath}/s rc/setup.py80 ${worksrcpath}/setup.py 83 81 reinplace "s|GLPK_INC_DIR = .*|GLPK_INC_DIR = '${prefix}/include'|" \ 84 ${worksrcpath}/s rc/setup.py82 ${worksrcpath}/setup.py 85 83 } 86 84 if {[variant_isset fftw]} { 87 85 reinplace "s|BUILD_FFTW = .*|BUILD_FFTW = 1|" \ 88 ${worksrcpath}/s rc/setup.py86 ${worksrcpath}/setup.py 89 87 reinplace "s|FFTW_LIB_DIR = .*|FFTW_LIB_DIR = '${prefix}/lib'|" \ 90 ${worksrcpath}/s rc/setup.py88 ${worksrcpath}/setup.py 91 89 reinplace "s|FFTW_INC_DIR = .*|FFTW_INC_DIR = '${prefix}/include'|" \ 92 ${worksrcpath}/s rc/setup.py90 ${worksrcpath}/setup.py 93 91 } 94 92 if {[variant_isset dsdp]} { 95 93 reinplace "s|BUILD_DSDP = .*|BUILD_DSDP = 1|" \ 96 ${worksrcpath}/s rc/setup.py94 ${worksrcpath}/setup.py 97 95 reinplace "s|DSDP_LIB_DIR = .*|DSDP_LIB_DIR = '${prefix}/lib'|" \ 98 ${worksrcpath}/s rc/setup.py96 ${worksrcpath}/setup.py 99 97 reinplace "s|DSDP_INC_DIR = .*|DSDP_INC_DIR = '${prefix}/include'|" \ 100 ${worksrcpath}/s rc/setup.py98 ${worksrcpath}/setup.py 101 99 } 102 100 } 103 101 104 build.dir ${worksrcpath}/src105 106 102 destroot.dir ${build.dir} 107 103 108 104 livecheck.type none