aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-python/cvxopt/ChangeLog8
-rw-r--r--dev-python/cvxopt/Manifest3
-rw-r--r--dev-python/cvxopt/cvxopt-1.1.3.ebuild42
3 files changed, 44 insertions, 9 deletions
diff --git a/dev-python/cvxopt/ChangeLog b/dev-python/cvxopt/ChangeLog
new file mode 100644
index 000000000..496244db0
--- /dev/null
+++ b/dev-python/cvxopt/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for dev-python/cvxopt
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 29 Dec 2010; Fran├žois Bissey <f.r.bissey@massey.ac.nz> cvxopt-1.1.3.ebuild:
+ Add a changelog :), synchronize with the version in sage-on-gentoo overlay
+ and discussions on bug #230457
+
diff --git a/dev-python/cvxopt/Manifest b/dev-python/cvxopt/Manifest
index 5752bfd90..166d1429e 100644
--- a/dev-python/cvxopt/Manifest
+++ b/dev-python/cvxopt/Manifest
@@ -1,3 +1,4 @@
DIST cvxopt-1.1.3.tar.gz 2927536 RMD160 cd0fdf51db957b388803b305f43ff323415b2252 SHA1 fe048bd21bb33eb99adb2759eda6f06d7520aa31 SHA256 c9563f04a31516e7b042d9e25344ae24bf6bc3e905c53ed077f9974c0efd9a7a
-EBUILD cvxopt-1.1.3.ebuild 467 RMD160 ef182c91e598aab7cb1dd095cf55fc709e36811c SHA1 f256793da9e8bf91572cef32ea3eb6df1c1c41c3 SHA256 0f8ed1f32e03a5d30b906bb68e77829bd6749b6b7724296ea4070a3f5bf46a16
+EBUILD cvxopt-1.1.3.ebuild 983 RMD160 d7fd79659275a0b6c71bce0fdf7081f653fca59c SHA1 35719ebc394870dd50010f3ab5cead83c954fdd8 SHA256 f324cd798a9485859b55f4d14b4acdd99410ba19edbe231dc293df2c5a0e786f
+MISC ChangeLog 308 RMD160 1951c1f349e9d42c024b189869af44faf770507c SHA1 19b9ed53f49675884cb8061b829edb2e14772aec SHA256 fd408d817e5f61e756618e5e277f88db8f1152126f07573bb4b983cc0a37c600
MISC metadata.xml 700 RMD160 0f7133c6997bcc9f6628892cd14df58396b2e964 SHA1 eaff2b19a0158437ebfa252de4b0dddc9cbe38ca SHA256 964ca6fb3e432ca9769b37fd063ce2268749334db92bde64fb4ea373790a6a50
diff --git a/dev-python/cvxopt/cvxopt-1.1.3.ebuild b/dev-python/cvxopt/cvxopt-1.1.3.ebuild
index d615c93e3..6315f73ef 100644
--- a/dev-python/cvxopt/cvxopt-1.1.3.ebuild
+++ b/dev-python/cvxopt/cvxopt-1.1.3.ebuild
@@ -3,21 +3,47 @@
# $Header: $
EAPI=3
-SUPPORT_PYTHON_ABIS="1"
-RESTRICT_PYTHON_ABIS="3.*"
+PYTHON_DEPEND=2:2.5
+SUPPORT_PYTHON_ABIS=1
+RESTRICT_PYTHON_ABIS="2.4 3.*"
+DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES=1
inherit distutils
-DESCRIPTION="Software package for convex optimization"
-HOMEPAGE="http://abel.ee.ucla.edu/cvxopt/index.html"
+DESCRIPTION="A Python Package for Convex Optimization"
+HOMEPAGE="http://abel.ee.ucla.edu/cvxopt"
SRC_URI="http://abel.ee.ucla.edu/${PN}/${P}.tar.gz"
+RESTRICT="mirror"
+
LICENSE="GPL-3"
SLOT="0"
-KEYWORDS="~amd64"
-IUSE=""
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="fftw glpk gsl"
-DEPEND=""
+DEPEND="virtual/blas
+ virtual/lapack
+ virtual/cblas
+ fftw? ( sci-libs/fftw )
+ glpk? ( sci-mathematics/glpk )
+ gsl? ( sci-libs/gsl )"
RDEPEND="${DEPEND}"
-S="${WORKDIR}/${P}/src"
+S=${WORKDIR}/${P}/src
+
+src_prepare(){
+ distutils_src_prepare
+
+ prepare_builddir() {
+ set_flag() {
+ if use ${1}; then
+ sed -i -e "s/\(BUILD_${2} =\) 0/\1 1/" setup.py || die
+ fi
+ }
+
+ set_flag gsl GSL
+ set_flag fftw FFTW
+ set_flag glpk GLPK
+ }
+ python_execute_function -s prepare_builddir
+}