Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sympy/
Date: Fri, 10 Jan 2020 15:08:43
Message-Id: 1578668897.58e2285cb9be6351a9308b52fa9f3768b39a65dd.grozin@gentoo
1 commit: 58e2285cb9be6351a9308b52fa9f3768b39a65dd
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jan 10 15:08:17 2020 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 10 15:08:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58e2285c
7
8 dev-python/sympy: bump to 1.5.1
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
12
13 dev-python/sympy/Manifest | 1 +
14 dev-python/sympy/sympy-1.5.1.ebuild | 92 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 93 insertions(+)
16
17 diff --git a/dev-python/sympy/Manifest b/dev-python/sympy/Manifest
18 index 5fab8c9b261..d0678e06ad9 100644
19 --- a/dev-python/sympy/Manifest
20 +++ b/dev-python/sympy/Manifest
21 @@ -1,3 +1,4 @@
22 DIST sympy-1.0.tar.gz 4281528 BLAKE2B b222be6ec486a01ac73e9778a7423aab45e368386003de965308cfa4e08fef07b64046f62ef707b6fa124ee6367fb051b9722e138bfe2eae4661f9e2a66c2365 SHA512 977db6e9bc6a5918cceb255981a57e85e7060c0922aefd2968b004d25d704e25a5cb5bbe09eb387e8695581e23e2825d9c40310068fe25ece7e9c23037a21f39
23 DIST sympy-1.3.tar.gz 5885611 BLAKE2B 14b0639960432cd6aac087a57f81a80497a0bc40ed61eae92166cf5549deaefc611ce63c2e7a89922374e9bb902fb0a7402f5a4e425278f34c028cdc3582eb35 SHA512 3b47dcf80e9a0ca7d65860907264bbcd6f6022275c717784cd165a7a824dca3471bc5a3be9d1af6ab31e04b29f7d5305713fc47ccb67f798f45281e0ab7e03bf
24 +DIST sympy-1.5.1.tar.gz 6815997 BLAKE2B bc74d01fdf2ccea6b83a06c11f810e3d105e9d35b397c8b87a1bcc4e316d00c456f576baf57d1b4a6175e056dec58f05fbb05893519775ffa252ac018452d2ff SHA512 3c4220243d2cbcff9eedb2a7986431b5b4d7d0007c78208a60b21830c9a3528d2171086874c42205c1227f779e44c19b9562943e2935d329bc352e7ea85396c7
25 DIST sympy-1.5.tar.gz 6294079 BLAKE2B ee6764264d87454c9713a6e99b70b123e1cc2d36a691287a53e8b69a548df5503168989afa2ca85a08cd5f6792c952e5556352fde07332b1fe47b3746d02b47a SHA512 882ed99cbc7333cbed85d247d04a764a92855e3d26cee96163d18ece566115b9d38999bbe022225521834037dbdfc4c567548112dfddd5ece65af8f672a06091
26
27 diff --git a/dev-python/sympy/sympy-1.5.1.ebuild b/dev-python/sympy/sympy-1.5.1.ebuild
28 new file mode 100644
29 index 00000000000..379c5702f68
30 --- /dev/null
31 +++ b/dev-python/sympy/sympy-1.5.1.ebuild
32 @@ -0,0 +1,92 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python{2_7,3_6,3_7} )
39 +
40 +inherit distutils-r1 eutils virtualx
41 +
42 +DESCRIPTION="Computer Algebra System in pure Python"
43 +HOMEPAGE="https://sympy.org"
44 +SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz"
45 +
46 +LICENSE="BSD"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
49 +IUSE="doc examples gtk imaging ipython latex mathml opengl pdf png pyglet symengine test texmacs theano"
50 +
51 +REQUIRED_USE="${PYTHON_REQUIRED_USE}
52 + doc? ( || ( $(python_gen_useflags 'python2*') ) )
53 + ipython? ( || ( $(python_gen_useflags -3) ) )"
54 +
55 +RESTRICT="test"
56 +# All tests actually pass, except a bunch of tests related to the deprecated pygletplot
57 +# It is a non-trivial work to wipe out all such tests :-(
58 +
59 +RDEPEND="dev-python/mpmath[${PYTHON_USEDEP}]
60 + dev-python/pexpect[${PYTHON_USEDEP}]
61 + imaging? ( dev-python/pillow[${PYTHON_USEDEP}] )
62 + ipython? ( $(python_gen_cond_dep 'dev-python/ipython[${PYTHON_USEDEP}]' -3) )
63 + latex? (
64 + virtual/latex-base
65 + dev-texlive/texlive-fontsextra
66 + png? ( app-text/dvipng )
67 + pdf? ( app-text/ghostscript-gpl )
68 + )
69 + mathml? (
70 + dev-libs/libxml2:2[${PYTHON_USEDEP}]
71 + $(python_gen_cond_dep 'dev-libs/libxslt[${PYTHON_USEDEP}]' python2_7)
72 + gtk? ( x11-libs/gtkmathview[gtk] )
73 + )
74 + opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] )
75 + pyglet? ( dev-python/pyglet[${PYTHON_USEDEP}] )
76 + symengine? ( dev-python/symengine[${PYTHON_USEDEP}] )
77 + texmacs? ( app-office/texmacs )
78 + theano? ( dev-python/theano[${PYTHON_USEDEP}] )
79 +"
80 +
81 +DEPEND="${RDEPEND}
82 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] app-text/docbook2X )
83 + test? ( ${RDEPEND} dev-python/pytest[${PYTHON_USEDEP}] )"
84 +
85 +S="${WORKDIR}/${PN}-${P}"
86 +
87 +pkg_setup() {
88 + use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' )
89 +}
90 +
91 +python_compile_all() {
92 + if use doc; then
93 + export XDG_CONFIG_HOME="${T}/config-dir"
94 + mkdir "${XDG_CONFIG_HOME}" || die
95 + chmod 0700 "${XDG_CONFIG_HOME}" || die
96 + emake -j1 -C doc html info man cheatsheet
97 + fi
98 +}
99 +
100 +python_test() {
101 + virtx "${PYTHON}" setup.py test
102 +}
103 +
104 +python_install_all() {
105 + local DOCS=( AUTHORS README.rst )
106 + if use doc; then
107 + DOCS+=( doc/_build/cheatsheet/cheatsheet.pdf \
108 + doc/_build/cheatsheet/combinatoric_cheatsheet.pdf )
109 + local HTML_DOCS=( doc/_build/html/. )
110 + doinfo doc/_build/texinfo/${PN}.info
111 + fi
112 + if use examples; then
113 + dodoc -r examples
114 + docompress -x /usr/share/doc/${PF}/examples
115 + fi
116 + distutils-r1_python_install_all
117 +
118 + if use texmacs; then
119 + exeinto /usr/libexec/TeXmacs/bin/
120 + doexe data/TeXmacs/bin/tm_sympy
121 + insinto /usr/share/TeXmacs/plugins/sympy/
122 + doins -r data/TeXmacs/progs
123 + fi
124 +}