dev-python/protobuf-python: add 4.25.1

Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
2023-12-10 15:54:00 +01:00
committed by Andreas Billmeier
parent 5757513e34
commit 0dd045494b
2 changed files with 81 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
DIST protobuf-24.3.gh.tar.gz 5179711 BLAKE2B 9473a1a9489d4cb92fb7ee56ac51a891cd6de005607be3f5a385957318045d2d8e6bdaa9ffa3c3f88d376b1d9a499ba9560054ae87fe031afffb62b3292ef365 SHA512 2c1a381f81bb2c0afa3a2ff6681f9f37bc7aef3a3882c371eea7284f4e9524c2a0c834de6c7f681706890eee2220a42442367b8f8dc8370f182fab9e2c37cfd2
DIST protobuf-25.1.gh.tar.gz 5878124 BLAKE2B a0b917e4518b07b221afd01e801e45b5b6fa35c7ccf8c21120d6a63f7174e53cc37d0516b1802d9243f8bb37b72b7f460a36dcbf0fffb09e011b05315c53efc3 SHA512 d2fad2188118ced2cd951bdb472d72cc9e9b2158c88eeca652c76332a884b5b5b4b58628f7777272fa693140753823584ea9c7924f1655b1d5a363f59bdf7a4c
EBUILD protobuf-python-4.24.3-r1.ebuild 1577 BLAKE2B b081db4c20afee946479f9324ce8c8de622f615ed2d255a6223bcc4a7bfcab0c6a90110c73d8906e15cbcffab033274d49f8bd4a1cf2eaf65ade78fd5539f46f SHA512 2bec2f82ec8c620e942ea51f07698ccaab449d2e45a90b36bcb9142046cfe88bdde854f00b0fb963d148bbfc71c5cbcae8f526c4255afe54118d3a115f26694b
EBUILD protobuf-python-4.25.1.ebuild 1577 BLAKE2B b081db4c20afee946479f9324ce8c8de622f615ed2d255a6223bcc4a7bfcab0c6a90110c73d8906e15cbcffab033274d49f8bd4a1cf2eaf65ade78fd5539f46f SHA512 2bec2f82ec8c620e942ea51f07698ccaab449d2e45a90b36bcb9142046cfe88bdde854f00b0fb963d148bbfc71c5cbcae8f526c4255afe54118d3a115f26694b
MISC metadata.xml 594 BLAKE2B 433b449286cd4cc56adf2f920215ce22f9678052a5797e683adf7c7d58920ec95f6db81587c7f839458037dd8e61b1f655068e057feede8d4e5e394ff2adae3a SHA512 b1275564f5ee25ee71f49d8e8d04e0c90be2d2b5d590f49e775f6d8f5f842aa7745140e155cf85749efe820777db9a7630c8193c707ac360e49f9b05b8eba97a

View File

@@ -0,0 +1,79 @@
# Copyright 1999-2023 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_{10..12} )
inherit distutils-r1
PARENT_PN="${PN/-python/}"
PARENT_PV="$(ver_cut 2-)"
PARENT_P="${PARENT_PN}-${PARENT_PV}"
if [[ "${PV}" == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/protocolbuffers/protobuf.git"
EGIT_SUBMODULES=()
EGIT_CHECKOUT_DIR="${WORKDIR}/${PARENT_P}"
else
SRC_URI="
https://github.com/protocolbuffers/protobuf/archive/v${PARENT_PV}.tar.gz
-> ${PARENT_P}.gh.tar.gz
"
KEYWORDS="amd64 arm arm64 x86"
fi
DESCRIPTION="Google's Protocol Buffers - Python bindings"
HOMEPAGE="
https://protobuf.dev
https://pypi.org/project/protobuf/
"
LICENSE="BSD"
SLOT="0/24.3.0"
S="${WORKDIR}/${PARENT_P}/python"
BDEPEND="
"
DEPEND="
${PYTHON_DEPS}
"
RDEPEND="
${BDEPEND}
dev-libs/protobuf:${SLOT}=
"
distutils_enable_tests setup.py
# Same than PATCHES but from repository's root directory,
# please see function `python_prepare_all` below.
# Simplier for users IMHO.
PARENT_PATCHES=(
)
# Here for patches within "python/" subdirectory.
PATCHES=(
)
python_prepare_all() {
pushd "${WORKDIR}/${PARENT_P}" > /dev/null || die
[[ -n "${PARENT_PATCHES[@]}" ]] && eapply "${PARENT_PATCHES[@]}"
eapply_user
popd > /dev/null || die
distutils-r1_python_prepare_all
}
src_configure() {
DISTUTILS_ARGS=( --cpp_implementation )
}
python_compile() {
distutils-r1_python_compile
find "${BUILD_DIR}/install" -name "*.pth" -type f -delete || die
}