1 |
commit: ef0f4376bbaeee4c40d6cf7df44b96ab3960237a |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 28 21:56:54 2022 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 28 22:21:28 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef0f4376 |
7 |
|
8 |
dev-python/grpcio: add 1.51.0 |
9 |
|
10 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
11 |
|
12 |
dev-python/grpcio/Manifest | 1 + |
13 |
dev-python/grpcio/grpcio-1.51.0.ebuild | 48 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 49 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/grpcio/Manifest b/dev-python/grpcio/Manifest |
17 |
index a9bd416c914f..cc25dda8f5e2 100644 |
18 |
--- a/dev-python/grpcio/Manifest |
19 |
+++ b/dev-python/grpcio/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST grpcio-1.43.0.tar.gz 21461955 BLAKE2B 406a341d24bf418a006b3f86c25254f3bb3981fd20123fd2d99d53d73e04b8da5500b7d871d8e3d96d1167a1306fd66a05cff418d1af8ff3eba9bb3faa34a199 SHA512 c4e9c7d20e53653c014d3c301f572df26ae84beb8d04fc3d763afcb695d232416ed8e7822f93bed1f9d8aab44f08aaaf36bf2f05aaa6bc3607428efbc0775cb1 |
22 |
+DIST grpcio-1.51.0.tar.gz 22142437 BLAKE2B 20acb52c89e41cd6e87ddb5554bcf79acc6fa18f4516c7be7a3fa1408ecb1e5800d6123bd7ac561093ca341344618de9701c3df75251e96cd9da5a3443568303 SHA512 3560e07df79143cb7a8a0a1f0dbaba2d164962ba712adf030a60654102bbd5ce6a08f88c133b81a3e471f1ec3d63de14f1b0567aa45bd641d958d3349ccef542 |
23 |
|
24 |
diff --git a/dev-python/grpcio/grpcio-1.51.0.ebuild b/dev-python/grpcio/grpcio-1.51.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..e0957a3fca22 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/grpcio/grpcio-1.51.0.ebuild |
29 |
@@ -0,0 +1,48 @@ |
30 |
+# Copyright 1999-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{8..11} ) |
36 |
+DISTUTILS_USE_PEP517=setuptools |
37 |
+ |
38 |
+inherit distutils-r1 multiprocessing prefix |
39 |
+ |
40 |
+DESCRIPTION="High-performance RPC framework (python libraries)" |
41 |
+HOMEPAGE="https://grpc.io" |
42 |
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="Apache-2.0" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ >=dev-libs/openssl-1.1.1:0=[-bindist(-)] |
50 |
+ >=dev-libs/re2-0.2021.11.01:= |
51 |
+ >=dev-python/cython-0.28.3[${PYTHON_USEDEP}] |
52 |
+ <dev-python/protobuf-python-5[${PYTHON_USEDEP}] |
53 |
+ >=dev-python/protobuf-python-4.21.3[${PYTHON_USEDEP}] |
54 |
+ net-dns/c-ares:= |
55 |
+ sys-libs/zlib:= |
56 |
+" |
57 |
+ |
58 |
+DEPEND="${RDEPEND}" |
59 |
+ |
60 |
+PATCHES=( "${FILESDIR}/1.37.1-cc-flag-test-fix.patch" ) |
61 |
+ |
62 |
+python_prepare_all() { |
63 |
+ distutils-r1_python_prepare_all |
64 |
+ hprefixify setup.py |
65 |
+} |
66 |
+ |
67 |
+python_configure_all() { |
68 |
+ # os.environ.get('GRPC_BUILD_WITH_BORING_SSL_ASM', True) |
69 |
+ export GRPC_BUILD_WITH_BORING_SSL_ASM= |
70 |
+ export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY=1 |
71 |
+ export GRPC_PYTHON_BUILD_SYSTEM_CARES=1 |
72 |
+ export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 |
73 |
+ export GRPC_PYTHON_BUILD_WITH_SYSTEM_RE2=1 |
74 |
+ export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 |
75 |
+ export GRPC_PYTHON_BUILD_WITH_CYTHON=1 |
76 |
+ export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$(makeopts_jobs)" |
77 |
+} |