Gentoo Archives: gentoo-commits

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