[115616] trunk/dports/python/py-cvxopt/Portfile
larryv at macports.org
larryv at macports.org
Mon Jan 6 16:47:31 PST 2014
Revision: 115616
https://trac.macports.org/changeset/115616
Author: larryv at macports.org
Date: 2014-01-06 16:47:31 -0800 (Mon, 06 Jan 2014)
Log Message:
-----------
py*-cvxopt: More reformatting. Remove default Python version selection.
Modified Paths:
--------------
trunk/dports/python/py-cvxopt/Portfile
Modified: trunk/dports/python/py-cvxopt/Portfile
===================================================================
--- trunk/dports/python/py-cvxopt/Portfile 2014-01-07 00:28:17 UTC (rev 115615)
+++ trunk/dports/python/py-cvxopt/Portfile 2014-01-07 00:47:31 UTC (rev 115616)
@@ -32,84 +32,83 @@
checksums sha1 fe048bd21bb33eb99adb2759eda6f06d7520aa31 \
rmd160 cd0fdf51db957b388803b305f43ff323415b2252
-python.versions 25 26 27
-python.default_version 27
+python.versions 25 26 27
-if {${name} ne ${subport}} {
-variant atlas description {Use ATLAS as BLAS, LAPACK library} {
- depends_lib-append port:atlas
-}
+if {${subport} ne ${name}} {
+ variant atlas description {Use ATLAS as BLAS, LAPACK library} {
+ depends_lib-append port:atlas
+ }
-variant gsl description {Allow linking to gsl} {
- depends_lib-append port:gsl
-}
+ variant gsl description {Allow linking to gsl} {
+ depends_lib-append port:gsl
+ }
-variant fftw description {Link to fftw library} {
- depends_lib-append port:fftw-3
-}
+ variant fftw description {Link to fftw library} {
+ depends_lib-append port:fftw-3
+ }
-variant glpk description {Link to glpk library} {
- depends_lib-append port:glpk
-}
+ variant glpk description {Link to glpk library} {
+ depends_lib-append port:glpk
+ }
-variant dsdp description {Link to DSDP library} {
- depends_lib-append port:DSDP
-}
+ variant dsdp description {Link to DSDP library} {
+ depends_lib-append port:DSDP
+ }
-default_variants +gsl +glpk +fftw +dsdp
+ default_variants +gsl +glpk +fftw +dsdp
-configure {
- if {[variant_isset atlas]} {
- reinplace "s|ATLAS_LIB_DIR = .*|ATLAS_LIB_DIR = '${prefix}/lib'|" \
- ${worksrcpath}/src/setup.py
-
- # default to cblas if ${prefix}/lib/libblas.dylib doesnt exist
- if {![file exists ${prefix}/lib/libblas.dylib]} {
- reinplace "s|libraries = \\(.*\\)'blas'\\(.*\\)|libraries = \\1'cblas'\\2|g" \
- ${worksrcpath}/src/setup.py
+ configure {
+ if {[variant_isset atlas]} {
+ reinplace "s|ATLAS_LIB_DIR = .*|ATLAS_LIB_DIR = '${prefix}/lib'|" \
+ ${worksrcpath}/src/setup.py
+
+ # default to cblas if ${prefix}/lib/libblas.dylib doesnt exist
+ if {![file exists ${prefix}/lib/libblas.dylib]} {
+ reinplace "s|libraries = \\(.*\\)'blas'\\(.*\\)|libraries = \\1'cblas'\\2|g" \
+ ${worksrcpath}/src/setup.py
+ }
}
- }
- if {[variant_isset gsl]} {
- reinplace "s|BUILD_GSL = .*|BUILD_GSL = 1|" \
- ${worksrcpath}/src/setup.py
- reinplace "s|GSL_LIB_DIR = .*|GSL_LIB_DIR = '${prefix}/lib'|" \
- ${worksrcpath}/src/setup.py
- reinplace "s|GSL_INC_DIR = .*|GSL_INC_DIR = '${prefix}/include'|" \
- ${worksrcpath}/src/setup.py
+ if {[variant_isset gsl]} {
+ reinplace "s|BUILD_GSL = .*|BUILD_GSL = 1|" \
+ ${worksrcpath}/src/setup.py
+ reinplace "s|GSL_LIB_DIR = .*|GSL_LIB_DIR = '${prefix}/lib'|" \
+ ${worksrcpath}/src/setup.py
+ reinplace "s|GSL_INC_DIR = .*|GSL_INC_DIR = '${prefix}/include'|" \
+ ${worksrcpath}/src/setup.py
+ }
+ if {[variant_isset glpk]} {
+ reinplace "s|BUILD_GLPK = .*|BUILD_GLPK = 1|" \
+ ${worksrcpath}/src/setup.py
+ reinplace "s|GLPK_LIB_DIR = .*|GLPK_LIB_DIR = '${prefix}/lib'|" \
+ ${worksrcpath}/src/setup.py
+ reinplace "s|GLPK_INC_DIR = .*|GLPK_INC_DIR = '${prefix}/include'|" \
+ ${worksrcpath}/src/setup.py
+ }
+ if {[variant_isset fftw]} {
+ reinplace "s|BUILD_FFTW = .*|BUILD_FFTW = 1|" \
+ ${worksrcpath}/src/setup.py
+ reinplace "s|FFTW_LIB_DIR = .*|FFTW_LIB_DIR = '${prefix}/lib'|" \
+ ${worksrcpath}/src/setup.py
+ reinplace "s|FFTW_INC_DIR = .*|FFTW_INC_DIR = '${prefix}/include'|" \
+ ${worksrcpath}/src/setup.py
+ }
+ if {[variant_isset dsdp]} {
+ reinplace "s|BUILD_DSDP = .*|BUILD_DSDP = 1|" \
+ ${worksrcpath}/src/setup.py
+ reinplace "s|DSDP_LIB_DIR = .*|DSDP_LIB_DIR = '${prefix}/lib'|" \
+ ${worksrcpath}/src/setup.py
+ reinplace "s|DSDP_INC_DIR = .*|DSDP_INC_DIR = '${prefix}/include'|" \
+ ${worksrcpath}/src/setup.py
+ }
}
- if {[variant_isset glpk]} {
- reinplace "s|BUILD_GLPK = .*|BUILD_GLPK = 1|" \
- ${worksrcpath}/src/setup.py
- reinplace "s|GLPK_LIB_DIR = .*|GLPK_LIB_DIR = '${prefix}/lib'|" \
- ${worksrcpath}/src/setup.py
- reinplace "s|GLPK_INC_DIR = .*|GLPK_INC_DIR = '${prefix}/include'|" \
- ${worksrcpath}/src/setup.py
- }
- if {[variant_isset fftw]} {
- reinplace "s|BUILD_FFTW = .*|BUILD_FFTW = 1|" \
- ${worksrcpath}/src/setup.py
- reinplace "s|FFTW_LIB_DIR = .*|FFTW_LIB_DIR = '${prefix}/lib'|" \
- ${worksrcpath}/src/setup.py
- reinplace "s|FFTW_INC_DIR = .*|FFTW_INC_DIR = '${prefix}/include'|" \
- ${worksrcpath}/src/setup.py
- }
- if {[variant_isset dsdp]} {
- reinplace "s|BUILD_DSDP = .*|BUILD_DSDP = 1|" \
- ${worksrcpath}/src/setup.py
- reinplace "s|DSDP_LIB_DIR = .*|DSDP_LIB_DIR = '${prefix}/lib'|" \
- ${worksrcpath}/src/setup.py
- reinplace "s|DSDP_INC_DIR = .*|DSDP_INC_DIR = '${prefix}/include'|" \
- ${worksrcpath}/src/setup.py
- }
-}
-build.dir ${worksrcpath}/src
+ build.dir ${worksrcpath}/src
-destroot.dir ${build.dir}
+ destroot.dir ${build.dir}
-livecheck.type none
+ livecheck.type none
} else {
-livecheck.type regex
-livecheck.regex <h2> Current release </h2><p>Version (.*) includes:</p>
+ livecheck.type regex
+ livecheck.regex <h2> Current release </h2><p>Version (.*) includes:</p>
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140106/4277e63f/attachment.html>
More information about the macports-changes
mailing list