1 |
commit: d04437ad3bfb348986aed9f4d683dbc60099ba79 |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 30 18:21:45 2017 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 30 18:21:45 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d04437ad |
7 |
|
8 |
dev-python/mpmath: python3_6 added |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
dev-python/mpmath/mpmath-0.19-r2.ebuild | 62 +++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 62 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/mpmath/mpmath-0.19-r2.ebuild b/dev-python/mpmath/mpmath-0.19-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..3bd7c37eb1c |
18 |
--- /dev/null |
19 |
+++ b/dev-python/mpmath/mpmath-0.19-r2.ebuild |
20 |
@@ -0,0 +1,62 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=5 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
27 |
+ |
28 |
+inherit distutils-r1 eutils |
29 |
+ |
30 |
+MY_PN=${PN}-all |
31 |
+MY_P=${MY_PN}-${PV} |
32 |
+ |
33 |
+DESCRIPTION="Python library for arbitrary-precision floating-point arithmetic" |
34 |
+HOMEPAGE="http://mpmath.org/" |
35 |
+SRC_URI="http://mpmath.org/files/${MY_P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="BSD" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
40 |
+ |
41 |
+IUSE="doc examples gmp matplotlib test" |
42 |
+ |
43 |
+RDEPEND=" |
44 |
+ gmp? ( dev-python/gmpy ) |
45 |
+ matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] )" |
46 |
+DEPEND="${RDEPEND} |
47 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
48 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
49 |
+ |
50 |
+S="${WORKDIR}/${MY_P}" |
51 |
+ |
52 |
+python_prepare_all() { |
53 |
+ local PATCHES=( |
54 |
+ "${FILESDIR}/${PN}.patch" |
55 |
+ ) |
56 |
+ |
57 |
+ # this fails with the current version of dev-python/py |
58 |
+ rm ${PN}/conftest.py || die |
59 |
+ |
60 |
+ # this test requires X |
61 |
+ rm ${PN}/tests/test_visualization.py || die |
62 |
+ |
63 |
+ distutils-r1_python_prepare_all |
64 |
+} |
65 |
+ |
66 |
+python_compile_all() { |
67 |
+ if use doc; then |
68 |
+ einfo "Generation of documentation" |
69 |
+ cd doc || die |
70 |
+ "${PYTHON}" build.py || die "Generation of documentation failed" |
71 |
+ fi |
72 |
+} |
73 |
+ |
74 |
+python_test() { |
75 |
+ py.test -v || die |
76 |
+} |
77 |
+ |
78 |
+python_install_all() { |
79 |
+ use doc && local HTML_DOCS=( doc/build/. ) |
80 |
+ use examples && local EXAMPLES=( demo/. ) |
81 |
+ distutils-r1_python_install_all |
82 |
+} |