From 972b605a4ab98db21610bd9dfc2c8da2d51ceaba Mon Sep 17 00:00:00 2001 From: Ekaterina Vaartis Date: Mon, 31 May 2021 19:11:37 +0300 Subject: [PATCH] dev-python/gmpy: remove broken mpir useflag Upstream doesn't seem to even support it anymore. Plus, also reformat metadata.xml with tabs Closes: https://bugs.gentoo.org/791124 Signed-off-by: Ekaterina Vaartis Closes: https://github.com/gentoo/gentoo/pull/21063 Signed-off-by: Sam James --- dev-python/gmpy/gmpy-2.1.0_beta5.ebuild | 12 ++------- dev-python/gmpy/metadata.xml | 34 ++++++++++++------------- 2 files changed, 19 insertions(+), 27 deletions(-) diff --git a/dev-python/gmpy/gmpy-2.1.0_beta5.ebuild b/dev-python/gmpy/gmpy-2.1.0_beta5.ebuild index 739475e74e0ab..420ebc5367e49 100644 --- a/dev-python/gmpy/gmpy-2.1.0_beta5.ebuild +++ b/dev-python/gmpy/gmpy-2.1.0_beta5.ebuild @@ -17,13 +17,12 @@ S="${WORKDIR}"/${MY_P} LICENSE="LGPL-3+" SLOT="2" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" -IUSE="mpir" RDEPEND=" >=dev-libs/mpc-1.0.2:= >=dev-libs/mpfr-3.1.2:= - !mpir? ( dev-libs/gmp:0= ) - mpir? ( sci-libs/mpir:= )" + dev-libs/gmp:0= +" DEPEND="${RDEPEND}" PATCHES=( @@ -40,13 +39,6 @@ PATCHES=( distutils_enable_sphinx docs -python_configure_all() { - mydistutilsargs=( - # GMP is the default, add mpir if the USE flag is set - $(usex mpir --mpir "") - ) -} - python_test() { cd test || die "${EPYTHON}" runtests.py || die "tests failed under ${EPYTHON}" diff --git a/dev-python/gmpy/metadata.xml b/dev-python/gmpy/metadata.xml index 1c3638694bff9..fd738a835d7c9 100644 --- a/dev-python/gmpy/metadata.xml +++ b/dev-python/gmpy/metadata.xml @@ -1,21 +1,21 @@ - - python@gentoo.org - Python - - - gmpy2 is a C-coded Python extension module that supports - multiple-precision arithmetic. gmpy2 supports the GMP multi-precision - library, the MPFR (correctly rounded real floating-point arithmetic) and MPC - (correctly rounded complex floating-point arithmetic) libraries. - - - gmpy2 - aleaxit/gmpy - - - Use sci-libs/mpir as gmp implementation - + + python@gentoo.org + Python + + + gmpy2 is a C-coded Python extension module that supports + multiple-precision arithmetic. gmpy2 supports the GMP multi-precision + library, the MPFR (correctly rounded real floating-point arithmetic) and MPC + (correctly rounded complex floating-point arithmetic) libraries. + + + Use sci-libs/mpir as gmp implementation + + + gmpy2 + aleaxit/gmpy +