From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-python/gmpy/Manifest | 5 +++ dev-python/gmpy/gmpy-2.0.8.ebuild | 68 +++++++++++++++++++++++++++++++++++++++ dev-python/gmpy/metadata.xml | 21 ++++++++++++ 3 files changed, 94 insertions(+) create mode 100644 dev-python/gmpy/Manifest create mode 100644 dev-python/gmpy/gmpy-2.0.8.ebuild create mode 100644 dev-python/gmpy/metadata.xml (limited to 'dev-python/gmpy') diff --git a/dev-python/gmpy/Manifest b/dev-python/gmpy/Manifest new file mode 100644 index 000000000000..41469732f975 --- /dev/null +++ b/dev-python/gmpy/Manifest @@ -0,0 +1,5 @@ +DIST gmpy2-2.0.8.zip 280551 SHA256 dd233e3288b90f21b0bb384bcc7a7e73557bb112ccf0032ad52aa614eb373d3f SHA512 090f449641f378c73eb166831b1d956c6cee3da83e42fde8741f18aa0fa687e37927fc3b045d4b35e3a3b75570e6b1074150d8bc29d16119ab5c717bcfcf9fb4 WHIRLPOOL e78b7fda27a3df8f72750b7ae6a6ff734013a68e8a39b52a3e0cc64076084ae8c5e7024684714a9a83fe22a28d7a1be4bfff7b289bfd4b797900e20790c279b0 +EBUILD gmpy-2.0.8.ebuild 1471 SHA256 6e0cfc5378d843b8d06325259a8fab587617b5756e2a936dfeeb60b90c360654 SHA512 f274878f9571140a52378ed66459fdae60dfb42dbef07c24fc4bb4553e24616b64a9dce531d736989eed1b9d763b4127b44d28c68ade8581062c96a347ec7afd WHIRLPOOL cfb0c2dfb43602e2d20b61db5dc9ef31d62220620dc6bd137df66d1011a83cb909fd28d2b2eb782e35cd6b6feebc37c6de1a51ad4f1d6c0d11ae2d1c3693d2e9 +MISC ChangeLog 3512 SHA256 b81631b6b822074cc1f2425d10d11e073326965296ca8455881f0089b3e2a8ca SHA512 77a87c38254e811350274416cfee7d30105fadee5a98a3c4518de44cefa5797f76867df9d0d720b05c56e377830b9673b1587902d587b30535810e7b050b25f7 WHIRLPOOL 68fca7f720b9623463e2bf53136f8da3a71e7b348244bc0bc15c049caf7a35b527a42b1b4df818efcaab87ade7ff148234d7028728353716fe869a1e0412732c +MISC ChangeLog-2015 7675 SHA256 8ec199278fb170ce5b920816271232bbc4149994d7d19b039cf6cc13d819a58b SHA512 fba48077405e9582dbaed7964dc36cef65bfb052201277a5499c04b6fcf1ddf88cc50c493086f1156c5adcb20afa2b2fccb9ee127f8a547792bba528d4d27857 WHIRLPOOL d68a4be5904f30260b889b438da1f0ebb54d04bd83e1c6693a480ceca470e8a871dffbde203bdf9091d939f4058372d6185eb725ded6abd21fb1dbde68b85765 +MISC metadata.xml 795 SHA256 90f63c5cb25229d1f1df8b078efc887da0d211ba17fda4e348cfaefbb4547cf6 SHA512 e7f8324cdacceed22f28e27a224668f59955fb5a639d26376da037b0d21437ef57708c7c325e00c771df9e11050be8dc423a3d4b631599da2cc1ef3f97cf3795 WHIRLPOOL 314b5979bdf98423b2f0fdac1e0f19ee34114d6d2629609e62549798288b2c3f86f68e233c4899ad5a3010ad00e559ec4a2f5ca328dcfdfa9c316b71a4115043 diff --git a/dev-python/gmpy/gmpy-2.0.8.ebuild b/dev-python/gmpy/gmpy-2.0.8.ebuild new file mode 100644 index 000000000000..0aa9fd3a119b --- /dev/null +++ b/dev-python/gmpy/gmpy-2.0.8.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +inherit distutils-r1 + +MY_PN="${PN}2" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="Python bindings for GMP, MPC, MPFR and MPIR libraries" +HOMEPAGE="https://github.com/aleaxit/gmpy" +SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.zip" + +LICENSE="LGPL-2.1" +SLOT="2" +KEYWORDS="alpha amd64 arm ~arm64 ~hppa ia64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="doc mpir" + +RDEPEND=" + >=dev-libs/mpc-1.0.2 + >=dev-libs/mpfr-3.1.2 + !mpir? ( dev-libs/gmp:0= ) + mpir? ( sci-libs/mpir )" +DEPEND="${RDEPEND} + app-arch/unzip + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )" + +S="${WORKDIR}"/${MY_P} + +python_prepare_all() { + # rm non std test file + rm test*/gmpy_test_thr.py || die + distutils-r1_python_prepare_all +} + +python_configure_all() { + mydistutilsargs=( + $(usex mpir --mpir --gmp) + ) +} + +python_compile() { + python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + distutils-r1_python_compile +} + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + cd test || die + "${PYTHON}" runtests.py || die "tests failed under ${EPYTHON}" + if python_is_python3; then + cd ../test3 || die + else + cd ../test2 || die + fi + "${PYTHON}" gmpy_test.py || die "tests failed under ${EPYTHON}" +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} diff --git a/dev-python/gmpy/metadata.xml b/dev-python/gmpy/metadata.xml new file mode 100644 index 000000000000..1c3638694bff --- /dev/null +++ b/dev-python/gmpy/metadata.xml @@ -0,0 +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 + + -- cgit v1.2.3