From 623ee73d661e5ed8475cb264511f683407d87365 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 12 Apr 2020 03:41:30 +0100 Subject: gentoo Easter resync : 12.04.2020 --- dev-python/sympy/Manifest | 12 +--- .../sympy/files/sympy-1.0-doc-makefile.patch | 10 --- dev-python/sympy/files/sympy-1.0-zeta.patch | 47 -------------- dev-python/sympy/files/sympy-1.3-eta.patch | 12 ---- dev-python/sympy/sympy-1.0-r1.ebuild | 72 ---------------------- dev-python/sympy/sympy-1.3.ebuild | 70 --------------------- dev-python/sympy/sympy-1.5.1-r1.ebuild | 7 +-- dev-python/sympy/sympy-1.5.1.ebuild | 70 --------------------- dev-python/sympy/sympy-1.5.ebuild | 68 -------------------- 9 files changed, 4 insertions(+), 364 deletions(-) delete mode 100644 dev-python/sympy/files/sympy-1.0-doc-makefile.patch delete mode 100644 dev-python/sympy/files/sympy-1.0-zeta.patch delete mode 100644 dev-python/sympy/files/sympy-1.3-eta.patch delete mode 100644 dev-python/sympy/sympy-1.0-r1.ebuild delete mode 100644 dev-python/sympy/sympy-1.3.ebuild delete mode 100644 dev-python/sympy/sympy-1.5.1.ebuild delete mode 100644 dev-python/sympy/sympy-1.5.ebuild (limited to 'dev-python/sympy') diff --git a/dev-python/sympy/Manifest b/dev-python/sympy/Manifest index b127d096e0f2..dfe365ef05df 100644 --- a/dev-python/sympy/Manifest +++ b/dev-python/sympy/Manifest @@ -1,13 +1,3 @@ -AUX sympy-1.0-doc-makefile.patch 565 BLAKE2B 10a74dc5b4a60d92b8819433d8fece864ed00b367a64f36bd50852fb9231f4b6f8dfdc4278fa006d3955529465875f66880e4f8435a54702552523149e343086 SHA512 45012ba3c3af162510eff7c6800c2a88739aff203a46ae95b854685850658bf68feacb7d100a164ac58cd7968058bb555909c1f0d6d06e54532a14c0b5e64069 -AUX sympy-1.0-zeta.patch 1908 BLAKE2B 1e2ff1b8cc04505a956ccaaf310680ceb4d749bb15e8dfd76349120b421a7a129e1ea440f559e4cec84dafb9566f9e1a14ff4d9894efc0b578e5ec5864757a72 SHA512 b3cc3ae37c8faf7077c8b3018859c21a14b38f92d85de4386686a20f0318b9e73ab33fde276f00b859e0de19022cbd095844d4310398ec5cb4a4441cddc0b21b -AUX sympy-1.3-eta.patch 650 BLAKE2B ad61ef317f4f2c13cc6473be2a6a5a6d922a287c8152b5f7201b85f3b2b8df0dde92f4826afb646b06c42cd208eea9fd83610b9a509f2caf388457aedca808b6 SHA512 1ebb9bea63695875c6a35bdc328bad3142617c63b2e8c59ece58e90e5d0cae280413e4b26b411bd4a917b3f6d9eb90ed6ed997ee9e2331aa8ccaeb1b2ecbf8f3 -DIST sympy-1.0.tar.gz 4281528 BLAKE2B b222be6ec486a01ac73e9778a7423aab45e368386003de965308cfa4e08fef07b64046f62ef707b6fa124ee6367fb051b9722e138bfe2eae4661f9e2a66c2365 SHA512 977db6e9bc6a5918cceb255981a57e85e7060c0922aefd2968b004d25d704e25a5cb5bbe09eb387e8695581e23e2825d9c40310068fe25ece7e9c23037a21f39 -DIST sympy-1.3.tar.gz 5885611 BLAKE2B 14b0639960432cd6aac087a57f81a80497a0bc40ed61eae92166cf5549deaefc611ce63c2e7a89922374e9bb902fb0a7402f5a4e425278f34c028cdc3582eb35 SHA512 3b47dcf80e9a0ca7d65860907264bbcd6f6022275c717784cd165a7a824dca3471bc5a3be9d1af6ab31e04b29f7d5305713fc47ccb67f798f45281e0ab7e03bf DIST sympy-1.5.1.tar.gz 6815997 BLAKE2B bc74d01fdf2ccea6b83a06c11f810e3d105e9d35b397c8b87a1bcc4e316d00c456f576baf57d1b4a6175e056dec58f05fbb05893519775ffa252ac018452d2ff SHA512 3c4220243d2cbcff9eedb2a7986431b5b4d7d0007c78208a60b21830c9a3528d2171086874c42205c1227f779e44c19b9562943e2935d329bc352e7ea85396c7 -DIST sympy-1.5.tar.gz 6294079 BLAKE2B ee6764264d87454c9713a6e99b70b123e1cc2d36a691287a53e8b69a548df5503168989afa2ca85a08cd5f6792c952e5556352fde07332b1fe47b3746d02b47a SHA512 882ed99cbc7333cbed85d247d04a764a92855e3d26cee96163d18ece566115b9d38999bbe022225521834037dbdfc4c567548112dfddd5ece65af8f672a06091 -EBUILD sympy-1.0-r1.ebuild 1835 BLAKE2B 1368333592aea1b621105ee4a1dcfad793308494e16b928b3aa617aa2c4fd4981bad8e9d496ad5014d5bd75d3a37ea00d3a4614ad9b3c4b4ba005ec67762a6b2 SHA512 7af2c4c82a66f114a6ef1f27825ac15dc81ffa612c3a78a65b4964d8d54cb7e0eaa1633d6082917c4460fab26ba9b0a5d26e6098a83b933db029dec2bb313958 -EBUILD sympy-1.3.ebuild 2001 BLAKE2B 5b093b8dd2b9f3444d5989f9040f5671aff393e19fd18d56d7586b1e99d2846214b62d38060b89f17ba722fe2a3c0d8d03046e647d531a6632741466c84b100f SHA512 0972b1b9437c7b6190b30af365861b19542b03e5284a1d3e895c2b3ede892da1c7d1080bf958a92b1d862e9f43c5a6b231514e809351129a0e3a597349dc31ba -EBUILD sympy-1.5.1-r1.ebuild 1927 BLAKE2B 6b7570d8482286a45a321224d68d0a3ed12d229de218d8e58240853d8fac03129dff542f01b38aaf67d16d6955d206de2106b0410897c7c214c17edfaa34a464 SHA512 56f208b24635b6c1f09b91ddcde012acf3fc1221cb7576d6129c42364d85c5a6f4765a8c04515d31681eeeee7f0199a01ac1924f86752c877811763b130a7384 -EBUILD sympy-1.5.1.ebuild 1971 BLAKE2B 4cba72321b539e4e91638814d2ec2d9b18f3efa48848766798e762833ba6c45a1b2e4b637136b2538de08bb5943176c540971dfc4827c9a8f67854e41e0b935f SHA512 de4ec2eea57e752adc60ac279c42589e76eca783b52d973812519c219a0f258fb25e0107f6dd647a49e0bcb86b5a194156e2cfeae911ac1e623ff5b15c6f8df4 -EBUILD sympy-1.5.ebuild 1959 BLAKE2B 23ee8b172fda1e860bceb596e71a4c1d190f18a3ace80a3a04964cb00e66ecefcb204e5f24333dd3704fe3bd46d4ae912eb6ea7dd3a10ab7ae1172a6c77cbd8f SHA512 8c548b1868a3e5bae7b63c279b53eb7082f7c065a34b229362e85ef7e28de393164b653d58e491efd008a767f81da76ce2ba0b00b7855b23c5226a55ace4a22f +EBUILD sympy-1.5.1-r1.ebuild 1850 BLAKE2B e2f08e54dca354747252fbe8746a163b93731a54c3bd2da1b8bced7ed8a3a94185eef5d3c5d7c71a7cf00dc8eed8b041253a451acb682eb3ace923a20df442b7 SHA512 fdc6a748fe63dac5f904b36ea51beaddecbd074ff1ae9497e0cf30481d505d0d48eea9732342f9033aed6d24a740aaf3f9f53586514f4fc2c3e89db111813a98 MISC metadata.xml 1476 BLAKE2B d6a0d7816ae7c0c2d61d6f584b9c872d0169053d43bb604f66ff242721df6f74788ade3de06b23db53239dc0da1182beda16c86eb7e7b383fb0964b13eca1883 SHA512 99d6eb86839fd09abd4db55783e028c6f97c9d0dfa8d68ceda881e6ca981f86877e55a0a83d34b432833f0824a896eea8af35eb9ea499bffe0c62e1e0a27c3c2 diff --git a/dev-python/sympy/files/sympy-1.0-doc-makefile.patch b/dev-python/sympy/files/sympy-1.0-doc-makefile.patch deleted file mode 100644 index 6fe64b853c23..000000000000 --- a/dev-python/sympy/files/sympy-1.0-doc-makefile.patch +++ /dev/null @@ -1,10 +0,0 @@ -diff -r -U2 sympy-1.0.orig/doc/Makefile sympy-1.0/doc/Makefile ---- sympy-1.0.orig/doc/Makefile 2016-03-08 19:38:39.000000000 +0100 -+++ sympy-1.0/doc/Makefile 2016-03-18 20:04:36.393615499 +0100 -@@ -118,5 +118,5 @@ - pdflatex -output-directory=_build/cheatsheet cheatsheet/cheatsheet.tex - --_build/cheatsheet/cheatsheet.pdf: cheatsheet/combinatoric_cheatsheet.tex -+_build/cheatsheet/combinatoric_cheatsheet.pdf: cheatsheet/combinatoric_cheatsheet.tex - mkdir -p _build/cheatsheet - pdflatex -output-directory=_build/cheatsheet cheatsheet/combinatoric_cheatsheet.tex diff --git a/dev-python/sympy/files/sympy-1.0-zeta.patch b/dev-python/sympy/files/sympy-1.0-zeta.patch deleted file mode 100644 index 43f54832c948..000000000000 --- a/dev-python/sympy/files/sympy-1.0-zeta.patch +++ /dev/null @@ -1,47 +0,0 @@ -diff -r -U2 sympy-1.0.orig/sympy/functions/special/tests/test_zeta_functions.py sympy-1.0/sympy/functions/special/tests/test_zeta_functions.py ---- sympy-1.0.orig/sympy/functions/special/tests/test_zeta_functions.py 2016-03-09 00:38:39.000000000 +0600 -+++ sympy-1.0/sympy/functions/special/tests/test_zeta_functions.py 2016-12-28 23:25:19.370041561 +0700 -@@ -125,5 +125,5 @@ - assert polylog(s, 0) == 0 - assert polylog(s, 1) == zeta(s) -- assert polylog(s, -1) == dirichlet_eta(s) -+ assert polylog(s, -1) == -dirichlet_eta(s) - - assert myexpand(polylog(1, z), -log(1 + exp_polar(-I*pi)*z)) -diff -r -U2 sympy-1.0.orig/sympy/functions/special/zeta_functions.py sympy-1.0/sympy/functions/special/zeta_functions.py ---- sympy-1.0.orig/sympy/functions/special/zeta_functions.py 2016-03-09 00:38:39.000000000 +0600 -+++ sympy-1.0/sympy/functions/special/zeta_functions.py 2016-12-28 23:23:56.109047180 +0700 -@@ -245,5 +245,5 @@ - zeta(s) - >>> polylog(s, -1) -- dirichlet_eta(s) -+ -dirichlet_eta(s) - - If :math:`s` is a negative integer, :math:`0` or :math:`1`, the -@@ -272,10 +272,17 @@ - @classmethod - def eval(cls, s, z): -+ from sympy import unpolarify - if z == 1: - return zeta(s) - elif z == -1: -- return dirichlet_eta(s) -+ return -dirichlet_eta(s) - elif z == 0: -- return 0 -+ return S.Zero -+ -+ # branch handling -+ if (1 - abs(z)).is_nonnegative: -+ newz = unpolarify(z) -+ if newz != z: -+ return cls(s, newz) - - def fdiff(self, argindex=1): -@@ -486,5 +493,5 @@ - For `\operatorname{Re}(s) > 0`, this function is defined as - -- .. math:: \eta(s) = \sum_{n=1}^\infty \frac{(-1)^n}{n^s}. -+ .. math:: \eta(s) = \sum_{n=1}^\infty \frac{(-1)^{n-1}}{n^s}. - - It admits a unique analytic continuation to all of :math:`\mathbb{C}`. diff --git a/dev-python/sympy/files/sympy-1.3-eta.patch b/dev-python/sympy/files/sympy-1.3-eta.patch deleted file mode 100644 index 16318458fc9f..000000000000 --- a/dev-python/sympy/files/sympy-1.3-eta.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -r -U3 sympy-1.3.orig/sympy/functions/special/zeta_functions.py sympy-1.3/sympy/functions/special/zeta_functions.py ---- sympy-1.3.orig/sympy/functions/special/zeta_functions.py 2018-09-07 02:27:20.000000000 +0700 -+++ sympy-1.3/sympy/functions/special/zeta_functions.py 2018-09-17 22:05:34.374733619 +0700 -@@ -509,7 +509,7 @@ - - For `\operatorname{Re}(s) > 0`, this function is defined as - -- .. math:: \eta(s) = \sum_{n=1}^\infty \frac{(-1)^n}{n^s}. -+ .. math:: \eta(s) = \sum_{n=1}^\infty \frac{(-1)^{n-1}}{n^s}. - - It admits a unique analytic continuation to all of :math:`\mathbb{C}`. - It is an entire, unbranched function. diff --git a/dev-python/sympy/sympy-1.0-r1.ebuild b/dev-python/sympy/sympy-1.0-r1.ebuild deleted file mode 100644 index a1b4f8b591ef..000000000000 --- a/dev-python/sympy/sympy-1.0-r1.ebuild +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -PYTHON_COMPAT=( python{3_6,3_7} ) - -inherit distutils-r1 eutils virtualx - -DESCRIPTION="Computer Algebra System in pure Python" -HOMEPAGE="https://sympy.org" -SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" -IUSE="examples gtk imaging ipython latex mathml opengl pdf png test texmacs" -RESTRICT="!test? ( test )" - -REQUIRED_USE="${PYTHON_REQUIRED_USE} - ipython? ( || ( $(python_gen_useflags -3) ) )" - -RDEPEND="dev-python/mpmath[${PYTHON_USEDEP}] - imaging? ( dev-python/pillow[${PYTHON_USEDEP}] ) - ipython? ( $(python_gen_cond_dep 'dev-python/ipython[${PYTHON_USEDEP}]' -3) ) - latex? ( - virtual/latex-base - dev-texlive/texlive-fontsextra - png? ( app-text/dvipng ) - pdf? ( app-text/ghostscript-gpl ) - ) - mathml? ( - dev-libs/libxml2:2[${PYTHON_USEDEP}] - gtk? ( x11-libs/gtkmathview[gtk] ) - ) - opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] ) - texmacs? ( app-office/texmacs ) -" - -DEPEND="${RDEPEND} - test? ( ${RDEPEND} dev-python/pytest[${PYTHON_USEDEP}] )" - -python_prepare_all() { - epatch "${FILESDIR}"/${P}-doc-makefile.patch - epatch "${FILESDIR}"/${P}-zeta.patch - distutils-r1_python_prepare_all -} - -python_compile() { - PYTHONPATH="." distutils-r1_python_compile -} - -python_test() { - virtx "${PYTHON}" setup.py test -} - -python_install() { - PYTHONPATH="." distutils-r1_python_install -} - -python_install_all() { - local DOCS=( AUTHORS README.rst ) - use examples && local EXAMPLES=( examples/. ) - distutils-r1_python_install_all - - if use texmacs; then - exeinto /usr/libexec/TeXmacs/bin/ - doexe data/TeXmacs/bin/tm_sympy - insinto /usr/share/TeXmacs/plugins/sympy/ - doins -r data/TeXmacs/progs - fi -} diff --git a/dev-python/sympy/sympy-1.3.ebuild b/dev-python/sympy/sympy-1.3.ebuild deleted file mode 100644 index 078dc48e8f85..000000000000 --- a/dev-python/sympy/sympy-1.3.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python{3_6,3_7} ) - -inherit distutils-r1 eutils virtualx - -DESCRIPTION="Computer Algebra System in pure Python" -HOMEPAGE="https://sympy.org" -SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" -IUSE="examples gtk imaging ipython latex mathml opengl pdf png pyglet symengine test texmacs theano" - -REQUIRED_USE="${PYTHON_REQUIRED_USE} - ipython? ( || ( $(python_gen_useflags -3) ) )" - -RESTRICT="test" -# All tests actually pass, except a bunch of tests related to the deprecated pygletplot -# It is a non-trivial work to wipe out all such tests :-( - -RDEPEND="dev-python/mpmath[${PYTHON_USEDEP}] - dev-python/pexpect[${PYTHON_USEDEP}] - imaging? ( dev-python/pillow[${PYTHON_USEDEP}] ) - ipython? ( $(python_gen_cond_dep 'dev-python/ipython[${PYTHON_USEDEP}]' -3) ) - latex? ( - virtual/latex-base - dev-texlive/texlive-fontsextra - png? ( app-text/dvipng ) - pdf? ( app-text/ghostscript-gpl ) - ) - mathml? ( - dev-libs/libxml2:2[${PYTHON_USEDEP}] - gtk? ( x11-libs/gtkmathview[gtk] ) - ) - opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] ) - pyglet? ( dev-python/pyglet[${PYTHON_USEDEP}] ) - symengine? ( dev-python/symengine[${PYTHON_USEDEP}] ) - texmacs? ( app-office/texmacs ) - theano? ( dev-python/theano[${PYTHON_USEDEP}] ) -" - -DEPEND="${RDEPEND} - test? ( ${RDEPEND} dev-python/pytest[${PYTHON_USEDEP}] )" - -PATCHES=( "${FILESDIR}"/${P}-eta.patch ) - -python_test() { - virtx "${PYTHON}" setup.py test -} - -python_install_all() { - local DOCS=( AUTHORS README.rst ) - if use examples; then - dodoc -r examples - docompress -x /usr/share/doc/${PF}/examples - fi - distutils-r1_python_install_all - - if use texmacs; then - exeinto /usr/libexec/TeXmacs/bin/ - doexe data/TeXmacs/bin/tm_sympy - insinto /usr/share/TeXmacs/plugins/sympy/ - doins -r data/TeXmacs/progs - fi -} diff --git a/dev-python/sympy/sympy-1.5.1-r1.ebuild b/dev-python/sympy/sympy-1.5.1-r1.ebuild index 8952e3ac040b..f5455d9408f1 100644 --- a/dev-python/sympy/sympy-1.5.1-r1.ebuild +++ b/dev-python/sympy/sympy-1.5.1-r1.ebuild @@ -13,11 +13,10 @@ SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" IUSE="examples imaging ipython latex mathml opengl pdf png pyglet symengine test texmacs theano" -REQUIRED_USE="${PYTHON_REQUIRED_USE} - ipython? ( || ( $(python_gen_useflags -3) ) )" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" RESTRICT="test" # All tests actually pass, except a bunch of tests related to the deprecated pygletplot @@ -26,7 +25,7 @@ RESTRICT="test" RDEPEND="dev-python/mpmath[${PYTHON_USEDEP}] dev-python/pexpect[${PYTHON_USEDEP}] imaging? ( dev-python/pillow[${PYTHON_USEDEP}] ) - ipython? ( $(python_gen_cond_dep 'dev-python/ipython[${PYTHON_USEDEP}]' -3) ) + ipython? ( dev-python/ipython[${PYTHON_USEDEP}] ) latex? ( virtual/latex-base dev-texlive/texlive-fontsextra diff --git a/dev-python/sympy/sympy-1.5.1.ebuild b/dev-python/sympy/sympy-1.5.1.ebuild deleted file mode 100644 index 5ecc82a06a54..000000000000 --- a/dev-python/sympy/sympy-1.5.1.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python{3_6,3_7} ) - -inherit distutils-r1 eutils virtualx - -DESCRIPTION="Computer Algebra System in pure Python" -HOMEPAGE="https://sympy.org" -SRC_URI="https://github.com/${PN}/${PN}/archive/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" -IUSE="examples gtk imaging ipython latex mathml opengl pdf png pyglet symengine test texmacs theano" - -REQUIRED_USE="${PYTHON_REQUIRED_USE} - ipython? ( || ( $(python_gen_useflags -3) ) )" - -RESTRICT="test" -# All tests actually pass, except a bunch of tests related to the deprecated pygletplot -# It is a non-trivial work to wipe out all such tests :-( - -RDEPEND="dev-python/mpmath[${PYTHON_USEDEP}] - dev-python/pexpect[${PYTHON_USEDEP}] - imaging? ( dev-python/pillow[${PYTHON_USEDEP}] ) - ipython? ( $(python_gen_cond_dep 'dev-python/ipython[${PYTHON_USEDEP}]' -3) ) - latex? ( - virtual/latex-base - dev-texlive/texlive-fontsextra - png? ( app-text/dvipng ) - pdf? ( app-text/ghostscript-gpl ) - ) - mathml? ( - dev-libs/libxml2:2[${PYTHON_USEDEP}] - gtk? ( x11-libs/gtkmathview[gtk] ) - ) - opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] ) - pyglet? ( dev-python/pyglet[${PYTHON_USEDEP}] ) - symengine? ( dev-python/symengine[${PYTHON_USEDEP}] ) - texmacs? ( app-office/texmacs ) - theano? ( dev-python/theano[${PYTHON_USEDEP}] ) -" - -DEPEND="${RDEPEND} - test? ( ${RDEPEND} dev-python/pytest[${PYTHON_USEDEP}] )" - -S="${WORKDIR}/${PN}-${P}" - -python_test() { - virtx "${PYTHON}" setup.py test -} - -python_install_all() { - local DOCS=( AUTHORS README.rst ) - if use examples; then - dodoc -r examples - docompress -x /usr/share/doc/${PF}/examples - fi - distutils-r1_python_install_all - - if use texmacs; then - exeinto /usr/libexec/TeXmacs/bin/ - doexe data/TeXmacs/bin/tm_sympy - insinto /usr/share/TeXmacs/plugins/sympy/ - doins -r data/TeXmacs/progs - fi -} diff --git a/dev-python/sympy/sympy-1.5.ebuild b/dev-python/sympy/sympy-1.5.ebuild deleted file mode 100644 index c8dda8967474..000000000000 --- a/dev-python/sympy/sympy-1.5.ebuild +++ /dev/null @@ -1,68 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python{3_6,3_7} ) - -inherit distutils-r1 eutils virtualx - -DESCRIPTION="Computer Algebra System in pure Python" -HOMEPAGE="https://sympy.org" -SRC_URI="https://github.com/${PN}/${PN}/releases/download/${P}/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" -IUSE="examples gtk imaging ipython latex mathml opengl pdf png pyglet symengine test texmacs theano" - -REQUIRED_USE="${PYTHON_REQUIRED_USE} - ipython? ( || ( $(python_gen_useflags -3) ) )" - -RESTRICT="test" -# All tests actually pass, except a bunch of tests related to the deprecated pygletplot -# It is a non-trivial work to wipe out all such tests :-( - -RDEPEND="dev-python/mpmath[${PYTHON_USEDEP}] - dev-python/pexpect[${PYTHON_USEDEP}] - imaging? ( dev-python/pillow[${PYTHON_USEDEP}] ) - ipython? ( $(python_gen_cond_dep 'dev-python/ipython[${PYTHON_USEDEP}]' -3) ) - latex? ( - virtual/latex-base - dev-texlive/texlive-fontsextra - png? ( app-text/dvipng ) - pdf? ( app-text/ghostscript-gpl ) - ) - mathml? ( - dev-libs/libxml2:2[${PYTHON_USEDEP}] - gtk? ( x11-libs/gtkmathview[gtk] ) - ) - opengl? ( dev-python/pyopengl[${PYTHON_USEDEP}] ) - pyglet? ( dev-python/pyglet[${PYTHON_USEDEP}] ) - symengine? ( dev-python/symengine[${PYTHON_USEDEP}] ) - texmacs? ( app-office/texmacs ) - theano? ( dev-python/theano[${PYTHON_USEDEP}] ) -" - -DEPEND="${RDEPEND} - test? ( ${RDEPEND} dev-python/pytest[${PYTHON_USEDEP}] )" - -python_test() { - virtx "${PYTHON}" setup.py test -} - -python_install_all() { - local DOCS=( AUTHORS README.rst ) - if use examples; then - dodoc -r examples - docompress -x /usr/share/doc/${PF}/examples - fi - distutils-r1_python_install_all - - if use texmacs; then - exeinto /usr/libexec/TeXmacs/bin/ - doexe data/TeXmacs/bin/tm_sympy - insinto /usr/share/TeXmacs/plugins/sympy/ - doins -r data/TeXmacs/progs - fi -} -- cgit v1.2.3