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 <vaartis@kotobank.ch>
Closes: https://github.com/gentoo/gentoo/pull/21063
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Ekaterina Vaartis
2021-05-31 19:11:37 +03:00
committed by Sam James
parent 3fc37c10a1
commit 972b605a4a
2 changed files with 19 additions and 27 deletions

View File

@@ -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}"

View File

@@ -1,21 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<longdescription lang="en">
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.
</longdescription>
<upstream>
<remote-id type="pypi">gmpy2</remote-id>
<remote-id type="github">aleaxit/gmpy</remote-id>
</upstream>
<use>
<flag name="mpir">Use <pkg>sci-libs/mpir</pkg> as gmp implementation</flag>
</use>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<longdescription lang="en">
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.
</longdescription>
<use>
<flag name="mpir">Use <pkg>sci-libs/mpir</pkg> as gmp implementation</flag>
</use>
<upstream>
<remote-id type="pypi">gmpy2</remote-id>
<remote-id type="github">aleaxit/gmpy</remote-id>
</upstream>
</pkgmetadata>