1 |
commit: 3778d0097773c74392746c4e8b048f9387699051 |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 31 16:49:08 2020 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 31 16:49:08 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3778d009 |
7 |
|
8 |
dev-python/sympy: in 1.5.1-r1, USE flag gtk is dropped |
9 |
|
10 |
Bug: https://bugs.gentoo.org/706336 |
11 |
Package-Manager: Portage-2.3.86, Repoman-2.3.20 |
12 |
Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org> |
13 |
|
14 |
dev-python/sympy/sympy-1.5.1-r1.ebuild | 67 ++++++++++++++++++++++++++++++++++ |
15 |
1 file changed, 67 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/sympy/sympy-1.5.1-r1.ebuild b/dev-python/sympy/sympy-1.5.1-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..8952e3ac040 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/sympy/sympy-1.5.1-r1.ebuild |
22 |
@@ -0,0 +1,67 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python{3_6,3_7} ) |
29 |
+ |
30 |
+inherit distutils-r1 eutils virtualx |
31 |
+ |
32 |
+DESCRIPTION="Computer Algebra System in pure Python" |
33 |
+HOMEPAGE="https://sympy.org" |
34 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="BSD" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
39 |
+IUSE="examples imaging ipython latex mathml opengl pdf png pyglet symengine test texmacs theano" |
40 |
+ |
41 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
42 |
+ ipython? ( || ( $(python_gen_useflags -3) ) )" |
43 |
+ |
44 |
+RESTRICT="test" |
45 |
+# All tests actually pass, except a bunch of tests related to the deprecated pygletplot |
46 |
+# It is a non-trivial work to wipe out all such tests :-( |
47 |
+ |
48 |
+RDEPEND="dev-python/mpmath[${PYTHON_USEDEP}] |
49 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
50 |
+ imaging? ( dev-python/pillow[${PYTHON_USEDEP}] ) |
51 |
+ ipython? ( $(python_gen_cond_dep 'dev-python/ipython[${PYTHON_USEDEP}]' -3) ) |
52 |
+ latex? ( |
53 |
+ virtual/latex-base |
54 |
+ dev-texlive/texlive-fontsextra |
55 |
+ png? ( app-text/dvipng ) |
56 |
+ pdf? ( app-text/ghostscript-gpl ) |
57 |
+ ) |
58 |
+ mathml? ( dev-libs/libxml2:2[${PYTHON_USEDEP}] ) |
59 |
+ opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] ) |
60 |
+ pyglet? ( dev-python/pyglet[${PYTHON_USEDEP}] ) |
61 |
+ symengine? ( dev-python/symengine[${PYTHON_USEDEP}] ) |
62 |
+ texmacs? ( app-office/texmacs ) |
63 |
+ theano? ( dev-python/theano[${PYTHON_USEDEP}] ) |
64 |
+" |
65 |
+ |
66 |
+DEPEND="${RDEPEND} |
67 |
+ test? ( ${RDEPEND} dev-python/pytest[${PYTHON_USEDEP}] )" |
68 |
+ |
69 |
+S="${WORKDIR}/${PN}-${P}" |
70 |
+ |
71 |
+python_test() { |
72 |
+ virtx "${PYTHON}" setup.py test |
73 |
+} |
74 |
+ |
75 |
+python_install_all() { |
76 |
+ local DOCS=( AUTHORS README.rst ) |
77 |
+ if use examples; then |
78 |
+ dodoc -r examples |
79 |
+ docompress -x /usr/share/doc/${PF}/examples |
80 |
+ fi |
81 |
+ distutils-r1_python_install_all |
82 |
+ |
83 |
+ if use texmacs; then |
84 |
+ exeinto /usr/libexec/TeXmacs/bin/ |
85 |
+ doexe data/TeXmacs/bin/tm_sympy |
86 |
+ insinto /usr/share/TeXmacs/plugins/sympy/ |
87 |
+ doins -r data/TeXmacs/progs |
88 |
+ fi |
89 |
+} |