1 |
commit: 38ed6a20490a5123d818359b0f8652fbe2d1d052 |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Sep 19 06:16:16 2018 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 19 06:16:16 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38ed6a20 |
7 |
|
8 |
dev-python/sympy: bump to 1.3 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/666392 |
11 |
Package-Manager: Portage-2.3.41, Repoman-2.3.9 |
12 |
|
13 |
dev-python/sympy/Manifest | 1 + |
14 |
dev-python/sympy/files/sympy-1.3-eta.patch | 12 ++++ |
15 |
dev-python/sympy/sympy-1.3.ebuild | 91 ++++++++++++++++++++++++++++++ |
16 |
3 files changed, 104 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/sympy/Manifest b/dev-python/sympy/Manifest |
19 |
index d29867c4cc9..32de1e038dd 100644 |
20 |
--- a/dev-python/sympy/Manifest |
21 |
+++ b/dev-python/sympy/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST sympy-1.0.tar.gz 4281528 BLAKE2B b222be6ec486a01ac73e9778a7423aab45e368386003de965308cfa4e08fef07b64046f62ef707b6fa124ee6367fb051b9722e138bfe2eae4661f9e2a66c2365 SHA512 977db6e9bc6a5918cceb255981a57e85e7060c0922aefd2968b004d25d704e25a5cb5bbe09eb387e8695581e23e2825d9c40310068fe25ece7e9c23037a21f39 |
24 |
DIST sympy-1.1.1.tar.gz 4580952 BLAKE2B 81e5c7d0f80916ced5532f8e5ed3bd04f919b8acb17037237faf9d59cdf73a3a8f741086213fd2aa5a610caf88ae0781c83a0345b71945d69149075b23f09a85 SHA512 ff8857fd5810795554ca4f636b2d8e633057d7ea7df76461003d823ecbaddc98cde0561eb79a1058741c5ece233c13bfcb5e30d5bfb8ac6dbab3d05d8226f92b |
25 |
+DIST sympy-1.3.tar.gz 5885611 BLAKE2B 14b0639960432cd6aac087a57f81a80497a0bc40ed61eae92166cf5549deaefc611ce63c2e7a89922374e9bb902fb0a7402f5a4e425278f34c028cdc3582eb35 SHA512 3b47dcf80e9a0ca7d65860907264bbcd6f6022275c717784cd165a7a824dca3471bc5a3be9d1af6ab31e04b29f7d5305713fc47ccb67f798f45281e0ab7e03bf |
26 |
|
27 |
diff --git a/dev-python/sympy/files/sympy-1.3-eta.patch b/dev-python/sympy/files/sympy-1.3-eta.patch |
28 |
new file mode 100644 |
29 |
index 00000000000..16318458fc9 |
30 |
--- /dev/null |
31 |
+++ b/dev-python/sympy/files/sympy-1.3-eta.patch |
32 |
@@ -0,0 +1,12 @@ |
33 |
+diff -r -U3 sympy-1.3.orig/sympy/functions/special/zeta_functions.py sympy-1.3/sympy/functions/special/zeta_functions.py |
34 |
+--- sympy-1.3.orig/sympy/functions/special/zeta_functions.py 2018-09-07 02:27:20.000000000 +0700 |
35 |
++++ sympy-1.3/sympy/functions/special/zeta_functions.py 2018-09-17 22:05:34.374733619 +0700 |
36 |
+@@ -509,7 +509,7 @@ |
37 |
+ |
38 |
+ For `\operatorname{Re}(s) > 0`, this function is defined as |
39 |
+ |
40 |
+- .. math:: \eta(s) = \sum_{n=1}^\infty \frac{(-1)^n}{n^s}. |
41 |
++ .. math:: \eta(s) = \sum_{n=1}^\infty \frac{(-1)^{n-1}}{n^s}. |
42 |
+ |
43 |
+ It admits a unique analytic continuation to all of :math:`\mathbb{C}`. |
44 |
+ It is an entire, unbranched function. |
45 |
|
46 |
diff --git a/dev-python/sympy/sympy-1.3.ebuild b/dev-python/sympy/sympy-1.3.ebuild |
47 |
new file mode 100644 |
48 |
index 00000000000..ae474151446 |
49 |
--- /dev/null |
50 |
+++ b/dev-python/sympy/sympy-1.3.ebuild |
51 |
@@ -0,0 +1,91 @@ |
52 |
+# Copyright 1999-2018 Gentoo Foundation |
53 |
+# Distributed under the terms of the GNU General Public License v2 |
54 |
+ |
55 |
+EAPI=6 |
56 |
+ |
57 |
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} ) |
58 |
+ |
59 |
+inherit distutils-r1 eutils virtualx |
60 |
+ |
61 |
+DESCRIPTION="Computer Algebra System in pure Python" |
62 |
+HOMEPAGE="https://sympy.org" |
63 |
+SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz" |
64 |
+ |
65 |
+LICENSE="BSD" |
66 |
+SLOT="0" |
67 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" |
68 |
+IUSE="doc examples gtk imaging ipython latex mathml opengl pdf png pyglet symengine test texmacs theano" |
69 |
+ |
70 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
71 |
+ doc? ( || ( $(python_gen_useflags 'python2*') ) )" |
72 |
+ |
73 |
+RESTRICT="test" |
74 |
+# All tests actually pass, except a bunch of tests related to the deprecated pygletplot |
75 |
+# It is a non-trivial work to wipe out all such tests :-( |
76 |
+ |
77 |
+RDEPEND="dev-python/mpmath[${PYTHON_USEDEP}] |
78 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
79 |
+ imaging? ( dev-python/pillow[${PYTHON_USEDEP}] ) |
80 |
+ ipython? ( dev-python/ipython[${PYTHON_USEDEP}] ) |
81 |
+ latex? ( |
82 |
+ virtual/latex-base |
83 |
+ dev-texlive/texlive-fontsextra |
84 |
+ png? ( app-text/dvipng ) |
85 |
+ pdf? ( app-text/ghostscript-gpl ) |
86 |
+ ) |
87 |
+ mathml? ( |
88 |
+ dev-libs/libxml2:2[${PYTHON_USEDEP}] |
89 |
+ $(python_gen_cond_dep 'dev-libs/libxslt[${PYTHON_USEDEP}]' python2_7) |
90 |
+ gtk? ( x11-libs/gtkmathview[gtk] ) |
91 |
+ ) |
92 |
+ opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] ) |
93 |
+ pyglet? ( dev-python/pyglet[${PYTHON_USEDEP}] ) |
94 |
+ symengine? ( dev-python/symengine[${PYTHON_USEDEP}] ) |
95 |
+ texmacs? ( app-office/texmacs ) |
96 |
+ theano? ( dev-python/theano[${PYTHON_USEDEP}] ) |
97 |
+" |
98 |
+ |
99 |
+DEPEND="${RDEPEND} |
100 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] app-text/docbook2X ) |
101 |
+ test? ( ${RDEPEND} dev-python/pytest[${PYTHON_USEDEP}] )" |
102 |
+ |
103 |
+PATCHES=( "${FILESDIR}"/${P}-eta.patch ) |
104 |
+ |
105 |
+pkg_setup() { |
106 |
+ use doc && DISTUTILS_ALL_SUBPHASE_IMPLS=( 'python2*' ) |
107 |
+} |
108 |
+ |
109 |
+python_compile_all() { |
110 |
+ if use doc; then |
111 |
+ export XDG_CONFIG_HOME="${T}/config-dir" |
112 |
+ mkdir "${XDG_CONFIG_HOME}" || die |
113 |
+ chmod 0700 "${XDG_CONFIG_HOME}" || die |
114 |
+ emake -j1 -C doc html info man cheatsheet |
115 |
+ fi |
116 |
+} |
117 |
+ |
118 |
+python_test() { |
119 |
+ virtx "${PYTHON}" setup.py test |
120 |
+} |
121 |
+ |
122 |
+python_install_all() { |
123 |
+ local DOCS=( AUTHORS README.rst ) |
124 |
+ if use doc; then |
125 |
+ DOCS+=( doc/_build/cheatsheet/cheatsheet.pdf \ |
126 |
+ doc/_build/cheatsheet/combinatoric_cheatsheet.pdf ) |
127 |
+ local HTML_DOCS=( doc/_build/html/. ) |
128 |
+ doinfo doc/_build/texinfo/${PN}.info |
129 |
+ fi |
130 |
+ if use examples; then |
131 |
+ dodoc -r examples |
132 |
+ docompress -x /usr/share/doc/${PF}/examples |
133 |
+ fi |
134 |
+ distutils-r1_python_install_all |
135 |
+ |
136 |
+ if use texmacs; then |
137 |
+ exeinto /usr/libexec/TeXmacs/bin/ |
138 |
+ doexe data/TeXmacs/bin/tm_sympy |
139 |
+ insinto /usr/share/TeXmacs/plugins/sympy/ |
140 |
+ doins -r data/TeXmacs/progs |
141 |
+ fi |
142 |
+} |