diff options
-rw-r--r-- | dev-python/grpcio/Manifest | 1 | ||||
-rw-r--r-- | dev-python/grpcio/grpcio-1.64.1.ebuild | 50 | ||||
-rw-r--r-- | dev-python/grpcio/metadata.xml | 12 |
3 files changed, 63 insertions, 0 deletions
diff --git a/dev-python/grpcio/Manifest b/dev-python/grpcio/Manifest new file mode 100644 index 00000000..4b0f9c14 --- /dev/null +++ b/dev-python/grpcio/Manifest @@ -0,0 +1 @@ +DIST grpcio-1.64.1.tar.gz 12218528 BLAKE2B 21657f8e53b9faf92997a68a663684592427f6631dc0e0bf5f84c8c250f2c953812907e7b5052ba4807fa32579a36c6ee6d2d23ff2d6c0943efbb5e7209c84f2 SHA512 5673a0776f34d327c553a283c0b210c4df444b259022d5ff0c5056d97de46da62bc4493de34e8887d909ef8225b86b1af77407b9122b7dbcdd94bd28eb788e9d diff --git a/dev-python/grpcio/grpcio-1.64.1.ebuild b/dev-python/grpcio/grpcio-1.64.1.ebuild new file mode 100644 index 00000000..ef02d11f --- /dev/null +++ b/dev-python/grpcio/grpcio-1.64.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..12} ) + +inherit distutils-r1 flag-o-matic multiprocessing prefix pypi + +DESCRIPTION="High-performance RPC framework (python libraries)" +HOMEPAGE="https://grpc.io" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86" + +RDEPEND=" + >=dev-libs/openssl-1.1.1:0=[-bindist(-)] + >=dev-libs/re2-0.2021.11.01:= + <dev-python/protobuf-python-5[${PYTHON_USEDEP}] + >=dev-python/protobuf-python-4.21.3[${PYTHON_USEDEP}] + net-dns/c-ares:= + sys-libs/zlib:= +" +DEPEND="${RDEPEND}" +BDEPEND="dev-python/cython[${PYTHON_USEDEP}]" + +python_prepare_all() { + distutils-r1_python_prepare_all + hprefixify setup.py +} + +python_configure_all() { + # -Werror=odr -Werror=lto-type-mismatch + # https://bugs.gentoo.org/856775 + # https://github.com/grpc/grpc/issues/36158 + filter-lto + + # os.environ.get('GRPC_BUILD_WITH_BORING_SSL_ASM', True) + export GRPC_BUILD_WITH_BORING_SSL_ASM= + export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY=1 + export GRPC_PYTHON_BUILD_SYSTEM_CARES=1 + export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1 + export GRPC_PYTHON_BUILD_WITH_SYSTEM_RE2=1 + export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1 + export GRPC_PYTHON_BUILD_WITH_CYTHON=1 + export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$(makeopts_jobs)" +} diff --git a/dev-python/grpcio/metadata.xml b/dev-python/grpcio/metadata.xml new file mode 100644 index 00000000..fe495c91 --- /dev/null +++ b/dev-python/grpcio/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <name>Bertrand Jacquin</name> + <email>bertrand@jacquin.bzh</email> + </maintainer> + <upstream> + <remote-id type="github">grpc/grpc</remote-id> + <remote-id type="pypi">grpcio</remote-id> + </upstream> +</pkgmetadata> |