[38479] trunk/dports/python
jmr at macports.org
jmr at macports.org
Mon Jul 21 19:25:47 PDT 2008
Revision: 38479
http://trac.macosforge.org/projects/macports/changeset/38479
Author: jmr at macports.org
Date: 2008-07-21 19:25:46 -0700 (Mon, 21 Jul 2008)
Log Message:
-----------
New port: py25-cvxopt (#15615)
Added Paths:
-----------
trunk/dports/python/py25-cvxopt/
trunk/dports/python/py25-cvxopt/Portfile
Added: trunk/dports/python/py25-cvxopt/Portfile
===================================================================
--- trunk/dports/python/py25-cvxopt/Portfile (rev 0)
+++ trunk/dports/python/py25-cvxopt/Portfile 2008-07-22 02:25:46 UTC (rev 38479)
@@ -0,0 +1,79 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup python25 1.0
+
+categories-append math
+name py25-cvxopt
+version 1.0
+distname cvxopt-${version}
+maintainers cornell.edu:ajb78
+platforms darwin
+
+description Python module for convex optimization
+long_description CVXOPT is a free software package for convex optimization \
+based on the Python programming language. It can be used with the interactive \
+Python interpreter, on the command line by executing Python scripts, or \
+integrated in other software via Python extension modules. Its main purpose is \
+to make the development of software for convex optimization applications \
+straightforward by building on Python's extensive standard library and on the \
+strengths of Python as a high-level programming language.
+
+homepage http://abel.ee.ucla.edu/cvxopt
+
+distfiles cvxopt-${version}.tar.gz.gtar
+master_sites http://abel.ee.ucla.edu/download.php
+
+checksums md5 4fccd976f8e39d9b7f38c663f7652a8a \
+ sha1 d05700009b1df26c97d20c5afb22386fe587fc0e \
+ rmd160 9034093062ba66f72dd2af65f4d982bd7b5e1ce0
+
+depends_lib-append port:atlas
+
+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 glpk description {Link to glpk library} {
+ depends_lib-append port:glpk
+}
+
+default_variants +gsl +glpk +fftw
+
+configure {
+ reinplace "s|ATLAS_LIB_DIR = .*|ATLAS_LIB_DIR = '${prefix}/lib'|" \
+ ${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
+ }
+}
+
+build.dir ${worksrcpath}/src
+
+destroot.dir ${build.dir}
Property changes on: trunk/dports/python/py25-cvxopt/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080721/e028cadd/attachment-0001.html
More information about the macports-changes
mailing list