1 |
commit: a8c9a107955a914b2a98971c22bf9eb727ef4842 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 4 00:05:11 2017 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 4 00:10:02 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8c9a107 |
7 |
|
8 |
dev-python/cvxopt: version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.4, Repoman-2.3.2 |
11 |
|
12 |
dev-python/cvxopt/Manifest | 1 + |
13 |
dev-python/cvxopt/cvxopt-1.1.9.ebuild | 104 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 105 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/cvxopt/Manifest b/dev-python/cvxopt/Manifest |
17 |
index b57d8cf9584..31aea1f97c8 100644 |
18 |
--- a/dev-python/cvxopt/Manifest |
19 |
+++ b/dev-python/cvxopt/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST cvxopt-1.1.6.tar.gz 3352996 SHA256 7b4ccf3ed896dde6624623431c0b1f5e32d874384329ed716f51babcbf416227 SHA512 b9f5fd7870412423b60068d205efb99d3630012509cb659fb67a10d6175906768846d7c906cf2fcac4be29afd558619b71e2dca730041329195a2365dd1d722c WHIRLPOOL d43cf090ee0396a77851fb71e6e34c980152bccdd5fdb3ecc53d0a464a505ac87a1e7198d313ec669443970bcf8a2d616f03c2f861b7df2f620bd583a97ea140 |
22 |
DIST cvxopt-1.1.8.tar.gz 5354013 SHA256 c96f8d01ae31a5bdec36a65b0587f50cfbf8139335adb70442350a8042da2025 SHA512 fdf047f203275e687c51b88575639ab0383207f8748969939ecf2939f9a2acc9f5d0e97c68377466fce81eb979b5eb058834f75134cc56df5dbb01805cb98c93 WHIRLPOOL 65c8a246e03a7136c2bce3c7ef831f9f82c4cc84b7a1e5db6a2643127ea9164c35782fb1013c0eaf7ac190d036887a131c705fa56b78bda179792eca9d016d8b |
23 |
+DIST cvxopt-1.1.9.tar.gz 1872932 SHA256 09997fec809179c9bb9fe8cdd202ad6ecb675f890658219022f492e0797122ee SHA512 bb0982cd1489157df4c7cd0dd92bf83b1692dc3a27d6b9a7a465dda9f9daea4ea5ef69e48642a879d036679bd0b0fe0dfd782433ce4cc570e90e11823733e58b WHIRLPOOL c9ba8b674dbcf1799a99559f3794db2cf8f57f5584865294fea5ee6932d59a9d9980e10197e8e4cd291d591bad9d92b24737a909b5bac6f6617597afa057c171 |
24 |
|
25 |
diff --git a/dev-python/cvxopt/cvxopt-1.1.9.ebuild b/dev-python/cvxopt/cvxopt-1.1.9.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..e1551c7375f |
28 |
--- /dev/null |
29 |
+++ b/dev-python/cvxopt/cvxopt-1.1.9.ebuild |
30 |
@@ -0,0 +1,104 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python2_7 python3_{4,5} ) |
37 |
+ |
38 |
+inherit distutils-r1 toolchain-funcs |
39 |
+ |
40 |
+DESCRIPTION="Python package for convex optimization" |
41 |
+HOMEPAGE="http://cvxopt.org/" |
42 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="GPL-3" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
47 |
+IUSE="doc +dsdp examples fftw +glpk gsl" |
48 |
+ |
49 |
+RDEPEND=" |
50 |
+ virtual/blas |
51 |
+ virtual/lapack |
52 |
+ sci-libs/amd:0= |
53 |
+ sci-libs/cholmod:0= |
54 |
+ sci-libs/colamd:0= |
55 |
+ sci-libs/suitesparseconfig:0= |
56 |
+ sci-libs/umfpack:0= |
57 |
+ dsdp? ( sci-libs/dsdp:0= ) |
58 |
+ fftw? ( sci-libs/fftw:3.0= ) |
59 |
+ glpk? ( >=sci-mathematics/glpk-4.49:0= ) |
60 |
+ gsl? ( sci-libs/gsl:0= )" |
61 |
+DEPEND="${RDEPEND} |
62 |
+ virtual/pkgconfig |
63 |
+ doc? ( dev-python/sphinx )" |
64 |
+ |
65 |
+python_prepare_all(){ |
66 |
+ pkg_libs() { |
67 |
+ $(tc-getPKG_CONFIG) --libs-only-l $* | \ |
68 |
+ sed -e 's:[ ]-l*\(pthread\|m\)\([ ]\|$\)::g' -e 's:[ ]*$::' | \ |
69 |
+ tr ' ' '\n' | sort -u | sed -e "s:^-l\(.*\):\1:g" | \ |
70 |
+ tr '\n' ';' | sed -e 's:;$::' |
71 |
+ } |
72 |
+ pkg_libdir() { |
73 |
+ $(tc-getPKG_CONFIG) --libs-only-L $* | \ |
74 |
+ sed -e 's:[ ]*$::' | \ |
75 |
+ tr ' ' '\n' | sort -u | sed -e "s:^-L\(.*\):\1:g" | \ |
76 |
+ tr '\n' ';' | sed -e 's:;$::' |
77 |
+ } |
78 |
+ pkg_incdir() { |
79 |
+ $(tc-getPKG_CONFIG) --cflags-only-I $* | \ |
80 |
+ sed -e 's:[ ]*$::' | \ |
81 |
+ tr ' ' '\n' | sort -u | sed -e "s:^-I\(.*\):\1:g" | \ |
82 |
+ tr '\n' ';' | sed -e 's:,$::' |
83 |
+ } |
84 |
+ |
85 |
+ # mandatory dependencies |
86 |
+ export CVXOPT_BLAS_LIB="$(pkg_libs blas)" |
87 |
+ export CVXOPT_BLAS_LIB_DIR="$(pkg_libdir blas)" |
88 |
+ export CVXOPT_LAPACK_LIB="$(pkg_libs lapack)" |
89 |
+ export CVXOPT_SUITESPARSE_LIB_DIR="$(pkg_libdir umfpack cholmod amd colamd suitesparseconfig)" |
90 |
+ export CVXOPT_SUITESPARSE_INC_DIR="$(pkg_incdir umfpack cholmod amd colamd suitesparseconfig)" |
91 |
+ |
92 |
+ # optional dependencies |
93 |
+ use dsdp && \ |
94 |
+ export CVXOPT_BUILD_DSDP=1 && \ |
95 |
+ export CVXOPT_DSDP_LIB_DIR="${EPREFIX}/usr/$(get_libdir)" && \ |
96 |
+ export CVXOPT_DSDP_INC_DIR="${EPREFIX}/usr/include" |
97 |
+ |
98 |
+ use fftw && \ |
99 |
+ export CVXOPT_BUILD_FFTW=1 && \ |
100 |
+ export CVXOPT_FFTW_LIB_DIR="$(pkg_libdir fftw3)" && \ |
101 |
+ export CVXOPT_FFTW_INC_DIR="$(pkg_incdir fftw3)" |
102 |
+ |
103 |
+ use glpk && \ |
104 |
+ export CVXOPT_BUILD_GLPK=1 && \ |
105 |
+ export CVXOPT_GLPK_LIB_DIR="${EPREFIX}/usr/$(get_libdir)" && \ |
106 |
+ export CVXOPT_GLPK_INC_DIR="${EPREFIX}/usr/include" |
107 |
+ |
108 |
+ use gsl && \ |
109 |
+ export CVXOPT_BUILD_GSL=1 && \ |
110 |
+ export CVXOPT_GSL_LIB_DIR="$(pkg_libdir gsl)" && \ |
111 |
+ export CVXOPT_GSL_INC_DIR="$(pkg_incdir gsl)" |
112 |
+ |
113 |
+ distutils-r1_python_prepare_all |
114 |
+} |
115 |
+ |
116 |
+ |
117 |
+python_compile_all() { |
118 |
+ use doc && VARTEXFONTS="${T}/fonts" emake -C doc -B html |
119 |
+} |
120 |
+ |
121 |
+python_test() { |
122 |
+ PYTHONPATH="${BUILD_DIR}"/lib nosetests -v || die |
123 |
+} |
124 |
+ |
125 |
+python_install_all() { |
126 |
+ use doc && HTML_DOCS=( doc/build/html/. ) |
127 |
+ insinto /usr/share/doc/${PF} |
128 |
+ distutils-r1_python_install_all |
129 |
+ if use examples; then |
130 |
+ insinto /usr/share/doc/${PF} |
131 |
+ doins -r examples |
132 |
+ docompress -x /usr/share/doc/${PF}/examples |
133 |
+ fi |
134 |
+} |