1 |
commit: 8934c857e9ad0ecec0102748d81c4ba4407400a8 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 12 16:20:56 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 12 16:20:56 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8934c857 |
7 |
|
8 |
dev-python/gmpy: Use PEP517 build |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/gmpy/gmpy-2.1.2-r1.ebuild | 45 ++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 45 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/gmpy/gmpy-2.1.2-r1.ebuild b/dev-python/gmpy/gmpy-2.1.2-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..157ed436b4a0 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/gmpy/gmpy-2.1.2-r1.ebuild |
20 |
@@ -0,0 +1,45 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+MY_PN="${PN}2" |
32 |
+MY_P="${MY_PN}-${PV/_beta/b}" |
33 |
+ |
34 |
+DESCRIPTION="Python bindings for GMP, MPC, MPFR and MPIR libraries" |
35 |
+HOMEPAGE=" |
36 |
+ https://github.com/aleaxit/gmpy/ |
37 |
+ https://pypi.org/project/gmpy2/ |
38 |
+" |
39 |
+SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_P}.tar.gz" |
40 |
+S=${WORKDIR}/${MY_P} |
41 |
+ |
42 |
+LICENSE="LGPL-3+" |
43 |
+SLOT="2" |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" |
45 |
+ |
46 |
+DEPEND=" |
47 |
+ >=dev-libs/mpc-1.0.2:= |
48 |
+ >=dev-libs/mpfr-3.1.2:= |
49 |
+ dev-libs/gmp:0= |
50 |
+" |
51 |
+RDEPEND=" |
52 |
+ ${DEPEND} |
53 |
+" |
54 |
+ |
55 |
+PATCHES=( |
56 |
+ # The tests program asks for input when running, disable that |
57 |
+ "${FILESDIR}"/gmpy-2.1.0_beta5-test-input.patch |
58 |
+) |
59 |
+ |
60 |
+distutils_enable_sphinx docs |
61 |
+ |
62 |
+python_test() { |
63 |
+ cd test || die |
64 |
+ "${EPYTHON}" runtests.py || die "tests failed under ${EPYTHON}" |
65 |
+} |