1 |
commit: 405a8c81c021418a7e691a67c02f3af472caadac |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 29 14:25:37 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 29 19:37:55 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=405a8c81 |
7 |
|
8 |
dev-python/sympy: Bump to 1.7 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/sympy/Manifest | 1 + |
13 |
dev-python/sympy/sympy-1.7.ebuild | 66 +++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 67 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/sympy/Manifest b/dev-python/sympy/Manifest |
17 |
index 6b9a378ad3e..aeec1a4ad9a 100644 |
18 |
--- a/dev-python/sympy/Manifest |
19 |
+++ b/dev-python/sympy/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST sympy-1.6.2.tar.gz 6811705 BLAKE2B 4cd894d28bedc986acc8ef67aa60f82e0899c2ed028658a8f340d7538b890e0ed380b3614a464eb58d71873b29b0795508b4556bb8115bf0c108336ef1e4cca3 SHA512 e16a1d85aba438e4248bac48a163ea1827e2cee57c28f7670ed19cc69d4c08d6796d62f79d245e269d75765b8f7ff4f4ca2841f98534e136ceeb5d3f7a5d252a |
22 |
+DIST sympy-1.7.tar.gz 6969594 BLAKE2B c4ebd395e50f589dba2d01bf50a1a9cd7fb34e95e2b8632a64df5fe1a6625889c4e161b8a22aa815857cc3eb0d502f03ec8d9de694f369aaca7e573a2fab03ee SHA512 f7bdaff7432436dc888e56d4b56d023c8da5cfb54dfa6955cf7999acceedfd5175f910fb9b3c5776145f3dc3036f78e66813cdba4201be854dfa2c5c9f4e9f4d |
23 |
DIST sympy-1.7rc1.tar.gz 6969788 BLAKE2B d7429aa6fde9943926cc14d77fe71e94b50e2329e56854d6e59ab6d2a09f659458d6baf18f36ed0b33e5add5fb0e38064730e4603e86f8edb8106683ff8063ab SHA512 7ffa8254ceeb0cd68c03503aa7ac662f2f8fe07aec0d3e6dc0afdca4e14b674e6b9db2feea79f272b9fae398d7c9edf49ac235526b5949262ca6ea8e412b9029 |
24 |
|
25 |
diff --git a/dev-python/sympy/sympy-1.7.ebuild b/dev-python/sympy/sympy-1.7.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..fd39817141d |
28 |
--- /dev/null |
29 |
+++ b/dev-python/sympy/sympy-1.7.ebuild |
30 |
@@ -0,0 +1,66 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
37 |
+PYTHON_COMPAT=( python3_{7..9} ) |
38 |
+ |
39 |
+inherit distutils-r1 virtualx |
40 |
+ |
41 |
+DESCRIPTION="Computer Algebra System in pure Python" |
42 |
+HOMEPAGE="https://sympy.org" |
43 |
+SRC_URI="https://github.com/sympy/sympy/archive/${P}.tar.gz" |
44 |
+S="${WORKDIR}/${PN}-${P}" |
45 |
+ |
46 |
+LICENSE="BSD" |
47 |
+SLOT="0" |
48 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
49 |
+IUSE="examples imaging ipython latex mathml opengl pdf png pyglet symengine test texmacs theano" |
50 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
51 |
+RESTRICT="!test? ( test )" |
52 |
+ |
53 |
+BDEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )" |
54 |
+RDEPEND="dev-python/mpmath[${PYTHON_USEDEP}] |
55 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
56 |
+ imaging? ( dev-python/pillow[${PYTHON_USEDEP}] ) |
57 |
+ ipython? ( dev-python/ipython[${PYTHON_USEDEP}] ) |
58 |
+ latex? ( |
59 |
+ virtual/latex-base |
60 |
+ dev-texlive/texlive-fontsextra |
61 |
+ png? ( app-text/dvipng ) |
62 |
+ pdf? ( app-text/ghostscript-gpl ) |
63 |
+ ) |
64 |
+ mathml? ( dev-libs/libxml2:2[${PYTHON_USEDEP}] ) |
65 |
+ opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] ) |
66 |
+ pyglet? ( dev-python/pyglet[${PYTHON_USEDEP}] ) |
67 |
+ symengine? ( dev-python/symengine[${PYTHON_USEDEP}] ) |
68 |
+ texmacs? ( app-office/texmacs ) |
69 |
+ theano? ( dev-python/theano[${PYTHON_USEDEP}] ) |
70 |
+" |
71 |
+ |
72 |
+src_test() { |
73 |
+ virtx distutils-r1_src_test |
74 |
+} |
75 |
+ |
76 |
+python_test() { |
77 |
+ "${EPYTHON}" setup.py test || die "Tests failed with ${EPYTHON}" |
78 |
+} |
79 |
+ |
80 |
+python_install_all() { |
81 |
+ local DOCS=( AUTHORS README.md ) |
82 |
+ |
83 |
+ if use examples; then |
84 |
+ dodoc -r examples |
85 |
+ docompress -x /usr/share/doc/${PF}/examples |
86 |
+ fi |
87 |
+ |
88 |
+ distutils-r1_python_install_all |
89 |
+ |
90 |
+ if use texmacs; then |
91 |
+ exeinto /usr/libexec/TeXmacs/bin/ |
92 |
+ doexe data/TeXmacs/bin/tm_sympy |
93 |
+ insinto /usr/share/TeXmacs/plugins/sympy/ |
94 |
+ doins -r data/TeXmacs/progs |
95 |
+ fi |
96 |
+} |