1 |
commit: ad97be60ca65a58f35f9ea599fdc2856c706a7fd |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 12 11:16:21 2018 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 12 11:17:01 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad97be60 |
7 |
|
8 |
dev-python/mpmath: bump to 1.1.0 |
9 |
|
10 |
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.41, Repoman-2.3.9 |
12 |
|
13 |
dev-python/mpmath/Manifest | 1 + |
14 |
dev-python/mpmath/files/mpmath-1.1.0.patch | 9 +++++++ |
15 |
dev-python/mpmath/files/mpmath.patch | 9 ------- |
16 |
dev-python/mpmath/mpmath-1.1.0.ebuild | 41 ++++++++++++++++++++++++++++++ |
17 |
4 files changed, 51 insertions(+), 9 deletions(-) |
18 |
|
19 |
diff --git a/dev-python/mpmath/Manifest b/dev-python/mpmath/Manifest |
20 |
index ff89cb05b2c..c0576d534df 100644 |
21 |
--- a/dev-python/mpmath/Manifest |
22 |
+++ b/dev-python/mpmath/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST mpmath-1.0.0.tar.gz 511349 BLAKE2B 62c6275f76c412043cdafef51815e4b5d055a63ca36f3f63b33957351b19e03419ca27f7d59641c580cf8e47c1ca45240b68b3040e2749b3de679eb45b15a28e SHA512 b225f237008e1cfee52b2f0dca0dce1445b932b6eaef92879d7feca30d728e3f88810bfa80882ad8776ba846a636807e59bebe0b9f690cd878c089e9418bd8b7 |
25 |
+DIST mpmath-1.1.0.tar.gz 2136921 BLAKE2B 8c3a5f39b48015aab1147aaf77ee7523dbffd7f34911ff2158d7b8bf1612e64f91d157494c5199b22090e986aba02044d610171bb92a2b230cdfbe025652e340 SHA512 628b6c61015825516d983bfcc54fc3a2793f3d9d2b93ba9c5a487a340ddf13eb4e83f17fa35692b22dd8a200a8da3a65ed88091d75abb4c48c9c4e4f2c686bcc |
26 |
|
27 |
diff --git a/dev-python/mpmath/files/mpmath-1.1.0.patch b/dev-python/mpmath/files/mpmath-1.1.0.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..3a88f38c992 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/mpmath/files/mpmath-1.1.0.patch |
32 |
@@ -0,0 +1,9 @@ |
33 |
+diff -r -U1 mpmath-1.0.0.orig/setup.py mpmath-1.0.0/setup.py |
34 |
+--- mpmath-1.0.0.orig/setup.py 2017-09-27 21:42:12.000000000 +0700 |
35 |
++++ mpmath-1.0.0/setup.py 2017-10-02 20:36:02.919554100 +0700 |
36 |
+@@ -15,4 +15,3 @@ |
37 |
+ 'mpmath.functions', |
38 |
+- 'mpmath.matrices', |
39 |
+- 'mpmath.tests'], |
40 |
++ 'mpmath.matrices'], |
41 |
+ classifiers=['Topic :: Scientific/Engineering :: Mathematics'] |
42 |
|
43 |
diff --git a/dev-python/mpmath/files/mpmath.patch b/dev-python/mpmath/files/mpmath.patch |
44 |
deleted file mode 100644 |
45 |
index 3040216e56c..00000000000 |
46 |
--- a/dev-python/mpmath/files/mpmath.patch |
47 |
+++ /dev/null |
48 |
@@ -1,9 +0,0 @@ |
49 |
-diff -r -U1 mpmath-all-0.17.orig/setup.py mpmath-all-0.17/setup.py |
50 |
---- mpmath-all-0.17.orig/setup.py 2011-02-02 03:17:50.000000000 +0600 |
51 |
-+++ mpmath-all-0.17/setup.py 2011-02-13 01:18:00.000000000 +0600 |
52 |
-@@ -15,4 +15,3 @@ |
53 |
- 'mpmath/functions', |
54 |
-- 'mpmath/matrices', |
55 |
-- 'mpmath/tests'], |
56 |
-+ 'mpmath/matrices'], |
57 |
- classifiers=['Topic :: Scientific/Engineering :: Mathematics'] |
58 |
|
59 |
diff --git a/dev-python/mpmath/mpmath-1.1.0.ebuild b/dev-python/mpmath/mpmath-1.1.0.ebuild |
60 |
new file mode 100644 |
61 |
index 00000000000..08a77279f3e |
62 |
--- /dev/null |
63 |
+++ b/dev-python/mpmath/mpmath-1.1.0.ebuild |
64 |
@@ -0,0 +1,41 @@ |
65 |
+# Copyright 1999-2018 Gentoo Foundation |
66 |
+# Distributed under the terms of the GNU General Public License v2 |
67 |
+ |
68 |
+EAPI=6 |
69 |
+ |
70 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
71 |
+ |
72 |
+inherit distutils-r1 eutils |
73 |
+ |
74 |
+DESCRIPTION="Python library for arbitrary-precision floating-point arithmetic" |
75 |
+HOMEPAGE="http://mpmath.org/" |
76 |
+SRC_URI="https://github.com/fredrik-johansson/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
77 |
+ |
78 |
+LICENSE="BSD" |
79 |
+SLOT="0" |
80 |
+KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
81 |
+ |
82 |
+IUSE="gmp matplotlib test" |
83 |
+ |
84 |
+RDEPEND=" |
85 |
+ gmp? ( dev-python/gmpy ) |
86 |
+ matplotlib? ( dev-python/matplotlib[${PYTHON_USEDEP}] )" |
87 |
+DEPEND="${RDEPEND} |
88 |
+ test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
89 |
+ |
90 |
+python_prepare_all() { |
91 |
+ local PATCHES=( |
92 |
+ "${FILESDIR}/${P}.patch" |
93 |
+ ) |
94 |
+ |
95 |
+ # this test requires X |
96 |
+ rm ${PN}/tests/test_visualization.py || die |
97 |
+ |
98 |
+ distutils-r1_python_prepare_all |
99 |
+} |
100 |
+ |
101 |
+python_test() { |
102 |
+ pushd ${PN}/tests >/dev/null |
103 |
+ ${EPYTHON} runtests.py -local |
104 |
+ popd >/dev/null |
105 |
+} |