mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
dev-python/grpcio-tools: add 1.71.0
Signed-off-by: Kai-Chun Ning (Github Signing key) <kaichun.ning@gmail.com>
This commit is contained in:
parent
bba8845cc0
commit
4f6cef8c92
2 changed files with 59 additions and 0 deletions
|
|
@ -1 +1,2 @@
|
|||
DIST grpcio_tools-1.67.0.tar.gz 5159163 BLAKE2B 54a7db77514033c4747d20a13fded114828fed23f649587c649f5ad2716d4bb31b80eeda560d55ae087a564cb9d34563a612cc91df581ae6b9a761f307828397 SHA512 f9644b4424aa68f1ae4d679c7b635db9bbfc0b493c76caf7d2e9fe0a49e5e81b6f146666c8dba3fc1d1c0db141f8fb362dd0ede0842c34cb178009412a672ec5
|
||||
DIST grpcio_tools-1.71.0.tar.gz 5326008 BLAKE2B 70dae192880c861e659f1901e00d7189637843c25c309791857fdc1ef58692fcd3a42d34587896b67d19b2a067561d0cc51e5c9f530352d5345fd06f00fea045 SHA512 33ec4c4a5f09e41af3c20cf030a16f69b8b9d0b8f107f84be6666afce026367d710c0fe4b383f3b45a56e3403fd4f23309ca16ea7d1a122245572868bf7a1507
|
||||
|
|
|
|||
58
dev-python/grpcio-tools/grpcio-tools-1.71.0.ebuild
Normal file
58
dev-python/grpcio-tools/grpcio-tools-1.71.0.ebuild
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DISTUTILS_EXT=1
|
||||
PYTHON_COMPAT=( python3_{11..13} )
|
||||
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 ~arm ~arm64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
~dev-python/grpcio-${PV}[${PYTHON_USEDEP}]
|
||||
>=dev-python/protobuf-5.26.1[${PYTHON_USEDEP}]
|
||||
<dev-python/protobuf-6[${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)"
|
||||
}
|
||||
Loading…
Reference in a new issue