grpcio-tools-1.76.0.ebuild

This commit is contained in:
Anton Bolshakov 2025-11-27 09:04:28 +08:00
parent 2b1aaf3543
commit b9200da8d1
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
2 changed files with 59 additions and 0 deletions

View file

@ -1,2 +1,3 @@
DIST grpcio_tools-1.74.0.tar.gz 5390007 BLAKE2B 605c6d3021166fd903eb860b3119e5ca6af4c9aff8c9d1368a31756f316826f7acd24daa544228ea49aa73bdb8ef31938ac7f016ebaae0b426628c9b91eee5eb SHA512 9a54c84dc3a7ecb82c7062b5054b6d137783752758ae28d8bebea430104d903bbe35aaaad139ecd39dc4d06315b28f84291f0434ac9cc81dac2a1e949bf68c1d
DIST grpcio_tools-1.75.1.tar.gz 5390470 BLAKE2B 9df52c5c3b8f5b87e0cd5992df1d9c3f40d5ce145a8fa960128434c89eebaa81ec39c7d63b088e778dd9fe85d444b3566419b3110c793543194ecefdb7b8c282 SHA512 99ef13b090099d572e92319b19b2bb1b069ca6529a6998ea8428dbfc5ebb9d7f2294f0d06e8b1dbf7b7b152b1c03bffb98566f6eed752acb7b93621a6b457307
DIST grpcio_tools-1.76.0.tar.gz 5390807 BLAKE2B fdbd33aa1be371714d23aa0de0095e2c42d5bccd989cb562b8b2a4babe4288b6443e08bdf00927f437cda8378e3c7ec66f4d03b61b3a67bc244a3b2183d2ce95 SHA512 b1ff224387caf577beb9fdb6805e3e1b7ab7a02bb5dee3b3fce9acb83781a452e2460b6ad81b9c3a14fbe750f0b8c5e7abc4630059a2c22d4cec970a459333a0

View file

@ -0,0 +1,58 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
PYTHON_COMPAT=( python3_{12..14} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 multiprocessing prefix pypi
DESCRIPTION="Protobuf code generator for gRPC"
HOMEPAGE="https://grpc.io"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RDEPEND="
~dev-python/grpcio-${PV}[${PYTHON_USEDEP}]
>=dev-python/protobuf-6.30.0[${PYTHON_USEDEP}]
<dev-python/protobuf-7[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
dev-python/cython[${PYTHON_USEDEP}]
"
python_prepare_all() {
distutils-r1_python_prepare_all
hprefixify setup.py
#absl/base/config.h ABSL_LTS_RELEASE_VERSION
# system: 20240722
#google/protobuf/wrappers.pb.h
# Protobuf C++ Version: 5.28.0
# PROTOBUF_VERSION
# protobuf/compiler/versions.h
# #define PROTOBUF_CPP_VERSION_STRING
# use system protobuf
# sed -r -i \
# -e '/^CC_FILES=\[/,/\]/{/^CC_FILES=\[/n;/\]/!d;}' \
# -e '/^CC_INCLUDES=\[/,/\]/{/^CC_INCLUDES=\[/n;/\]/!d;}' \
# -e "s@^(PROTO_INCLUDE=')[^']+'@\1/usr/include'@" \
# -e '/^PROTOBUF_SUBMODULE_VERSION=/d' \
# protoc_lib_deps.py
# fix the include path
# ln -s ../../../.. grpc_root
}
python_configure_all() {
export GRPC_PYTHON_BUILD_WITH_CYTHON=1
export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="$(makeopts_jobs)"
}