From 09e851e16da9c9641ea324595667b5c16461af24 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sun, 19 Apr 2020 18:13:32 -0400 Subject: sci-mathematics/dunshire: new revision supporting python-3.{7,8}. Updated to EAPI=7 and added a missing dependency while I was at it. Closes: https://bugs.gentoo.org/718502 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Michael Orlitzky --- sci-mathematics/dunshire/dunshire-0.1.1-r1.ebuild | 39 +++++++++++++++++++++++ sci-mathematics/dunshire/dunshire-0.1.1.ebuild | 32 ------------------- 2 files changed, 39 insertions(+), 32 deletions(-) create mode 100644 sci-mathematics/dunshire/dunshire-0.1.1-r1.ebuild delete mode 100644 sci-mathematics/dunshire/dunshire-0.1.1.ebuild (limited to 'sci-mathematics') diff --git a/sci-mathematics/dunshire/dunshire-0.1.1-r1.ebuild b/sci-mathematics/dunshire/dunshire-0.1.1-r1.ebuild new file mode 100644 index 000000000000..2824f031c377 --- /dev/null +++ b/sci-mathematics/dunshire/dunshire-0.1.1-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_6 python3_7 python3_8 ) + +inherit distutils-r1 + +DESCRIPTION="Python library to solve linear games over symmetric cones" +HOMEPAGE="http://michael.orlitzky.com/code/dunshire/" +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" + +LICENSE="AGPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc test" +RESTRICT="!test? ( test )" + +RDEPEND="dev-python/cvxopt[${PYTHON_USEDEP}]" + +# Tests run on the build host? Bug #693916. There's one doctest that +# uses a numpy matrix, sorry. That will be fixed in the next release. +# Otherwise numpy is not needed; the required interfaces are provided +# through cvxopt. +BDEPEND="test? ( + ${RDEPEND} + dev-python/numpy[${PYTHON_USEDEP}] +)" + +python_install_all() { + use doc && local HTML_DOCS=( doc/build/html/. ) + local DOCS=( doc/README.rst ) + distutils-r1_python_install_all +} + +python_test() { + esetup.py test +} diff --git a/sci-mathematics/dunshire/dunshire-0.1.1.ebuild b/sci-mathematics/dunshire/dunshire-0.1.1.ebuild deleted file mode 100644 index 82de99fb080f..000000000000 --- a/sci-mathematics/dunshire/dunshire-0.1.1.ebuild +++ /dev/null @@ -1,32 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -PYTHON_COMPAT=( python3_6 ) - -inherit distutils-r1 - -DESCRIPTION="Python library to solve linear games over symmetric cones" -HOMEPAGE="http://michael.orlitzky.com/code/dunshire" -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" - -LICENSE="AGPL-3+" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc test" -RESTRICT="!test? ( test )" - -RDEPEND="dev-python/cvxopt[${PYTHON_USEDEP}]" -DEPEND="${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}]" - -python_install_all() { - use doc && local HTML_DOCS=( doc/build/html/. ) - local DOCS=( doc/README.rst ) - distutils-r1_python_install_all -} - -python_test() { - esetup.py test -} -- cgit v1.2.3-65-gdbad