dev-python/protobuf-python: treeclean

Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
2023-06-11 12:30:01 +02:00
committed by onkelbeh
parent 1ef880e755
commit 00c6294c18
4 changed files with 0 additions and 166 deletions
-5
View File
@@ -1,5 +0,0 @@
DIST protobuf-22.0.gh.tar.gz 4920528 BLAKE2B 4d1c17a7245e81803c9a4bf8742b69f97ebdc93d8aac60487ba347193708e96d4fba2bd0467fbadca79df6db80202cd32631b013c9165832b9cc12460e5e7504 SHA512 76c833d958341f690b2c4e2ae48d2e47642941e378bca0086f9e46c7745458cce4c31999fe72cc919c7f78aba6fbd708f35417c17fde3a0a85c5240bb4654a14
DIST protobuf-3.20.1.gh.tar.gz 5368262 BLAKE2B 1ce1aef2e4c4f3ea4863629cc75d89fe17d0c7ac0c342ac641c787456fd4a12756c2892a27ddadedc94a7201494ec84566638ce33a03cb0c867b04e9eee0edb3 SHA512 fde3eb9f13946887ddfd87df428c5615ad09aaf191e4478b24e98e5e13231feeff4e70b4ca6a2ff7d9b9b2e2c60bc1d5479526edeafa78f9a8ed3bef2e0bacb0
EBUILD protobuf-python-3.20.1.ebuild 1244 BLAKE2B 59e44fabab11f8678839b980ce461781aca3318f5bcf3669751850bb4015883a7f99f252cd2c6c4bddabb76c022d0b24fe434ec6dc59aac4000d4926b043a26a SHA512 a7e2299b0fe2aacabbd141af7690c6854c427ed5e4688fe9a76437cb1c86a7710fd650ac0e33d5520edd82303aee92af13d554e19da5fd64bb9449008f888336
EBUILD protobuf-python-4.22.0.ebuild 1643 BLAKE2B 1d7e66295597144038241c9418379f5f843ef607d5ab2f5fcf823274bf7b54f4c33b0531dc3db9f95b73e66b2be35c30c2835451837084c748903d3cddbcd17a SHA512 7d89e3e421cc822884a3f48fdd7671cf76f3b7280cf4f06ea5b9382f8d336e1a03adec9f31d97ad5426a305676043609e0d15d0f3824240b176709bfdd56ad8a
MISC metadata.xml 616 BLAKE2B 35e07d1a7c8aaa8acccc63a692866655a2b81a8329db0eac300d53320aa83953ef6045e0c45882bb4ae1f4873d8d4ee5db2597c7204a24f17884228610cce73a SHA512 e530cdedf530ba032983d8a2b55c163a838685aac4e55616c5a89e11569b60e9371cdd41a31ec863be8a55da29721d01e945aa38ec662d1646c7ffe4c2adc2ed
-19
View File
@@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>arfrever.fta@gmail.com</email>
<name>Arfrever Frehtes Taifersar Arahesis</name>
</maintainer>
<maintainer type="project">
<email>cjk@gentoo.org</email>
<name>Cjk</name>
</maintainer>
<slots>
<subslots>Soname version number of Protobuf</subslots>
</slots>
<upstream>
<remote-id type="github">protocolbuffers/protobuf</remote-id>
<remote-id type="pypi">protobuf</remote-id>
</upstream>
</pkgmetadata>
@@ -1,62 +0,0 @@
# Copyright 2008-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
if [[ "${PV}" == "9999" ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/protocolbuffers/protobuf"
EGIT_SUBMODULES=()
fi
DESCRIPTION="Google's Protocol Buffers - Python bindings"
HOMEPAGE="
https://developers.google.com/protocol-buffers/
https://github.com/protocolbuffers/protobuf/
https://pypi.org/project/protobuf/
"
if [[ "${PV}" != "9999" ]]; then
SRC_URI="
https://github.com/protocolbuffers/protobuf/archive/v${PV}.tar.gz
-> protobuf-${PV}.gh.tar.gz
"
fi
S="${WORKDIR}/protobuf-${PV}/python"
LICENSE="BSD"
SLOT="0/30"
KEYWORDS="amd64 arm arm64 x86"
BDEPEND="
${PYTHON_DEPS}
~dev-libs/protobuf-${PV}
dev-python/six[${PYTHON_USEDEP}]
"
DEPEND="
${PYTHON_DEPS}
~dev-libs/protobuf-${PV}
"
RDEPEND="
${BDEPEND}
"
if [[ "${PV}" == "9999" ]]; then
EGIT_CHECKOUT_DIR="${WORKDIR}/protobuf-${PV}"
fi
distutils_enable_tests setup.py
src_configure() {
DISTUTILS_ARGS=(--cpp_implementation)
}
python_compile() {
distutils-r1_python_compile
find "${BUILD_DIR}/install" -name "*.pth" -type f -delete || die
}
@@ -1,80 +0,0 @@
# Copyright 2008-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://developers.google.com/protocol-buffers/
https://pypi.org/project/protobuf/
"
LICENSE="BSD"
SLOT="0/32"
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=(
"${FILESDIR}"/${PN}-3.20.3-python311.patch
)
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
}