[56586] trunk/dports/python/py25-cvxopt/Portfile
mnick at macports.org
mnick at macports.org
Sun Aug 30 09:33:16 PDT 2009
Revision: 56586
http://trac.macports.org/changeset/56586
Author: mnick at macports.org
Date: 2009-08-30 09:33:15 -0700 (Sun, 30 Aug 2009)
Log Message:
-----------
* move atlas into a variant, by default use vecLib
* add license, modeline and livecheck
Modified Paths:
--------------
trunk/dports/python/py25-cvxopt/Portfile
Modified: trunk/dports/python/py25-cvxopt/Portfile
===================================================================
--- trunk/dports/python/py25-cvxopt/Portfile 2009-08-30 16:27:48 UTC (rev 56585)
+++ trunk/dports/python/py25-cvxopt/Portfile 2009-08-30 16:33:15 UTC (rev 56586)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id$
PortSystem 1.0
@@ -9,6 +10,7 @@
distname cvxopt-${version}
maintainers mnick
platforms darwin
+license GPL
description Python module for convex optimization
long_description CVXOPT is a free software package for convex optimization \
@@ -28,8 +30,11 @@
sha1 391953aea9ce19a3b5c8055237bb26e79798696e \
rmd160 86f729c4f7cd7eac8253efc9fe6f3ac06c940413
-depends_lib-append port:atlas
+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
}
@@ -49,13 +54,15 @@
default_variants +gsl +glpk +fftw +dsdp
configure {
- reinplace "s|ATLAS_LIB_DIR = .*|ATLAS_LIB_DIR = '${prefix}/lib'|" \
+ 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
+
+ # 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]} {
@@ -95,3 +102,6 @@
build.dir ${worksrcpath}/src
destroot.dir ${build.dir}
+
+livecheck.type regex
+livecheck.regex <h2> Current release </h2><p>Version (.*) includes:</p>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090830/8c3f4d54/attachment.html>
More information about the macports-changes
mailing list