summaryrefslogtreecommitdiff
path: root/dev-python/protobuf-python
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-12-16 02:52:59 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-12-16 02:52:59 +0000
commitd17fad940dac9897b8b58d2f1d072869942696a5 (patch)
treee77cd567646e69b19c4e8a8b20a6b201c7f6966e /dev-python/protobuf-python
parent20e7188871e6d724b707132f925b9872536a91a0 (diff)
gentoo auto-resync : 16:12:2023 - 02:52:59
Diffstat (limited to 'dev-python/protobuf-python')
-rw-r--r--dev-python/protobuf-python/Manifest2
-rw-r--r--dev-python/protobuf-python/protobuf-python-4.21.12.ebuild78
2 files changed, 80 insertions, 0 deletions
diff --git a/dev-python/protobuf-python/Manifest b/dev-python/protobuf-python/Manifest
index 1e8a6af4021d..bea5210bf453 100644
--- a/dev-python/protobuf-python/Manifest
+++ b/dev-python/protobuf-python/Manifest
@@ -1,6 +1,8 @@
AUX protobuf-python-3.20.3-python311.patch 3717 BLAKE2B f3a0b1b06bdbc2222fd3817b87f9b80cf609e9eb410770af31a069396eb68417f37c06603229ac8fc6aca958a9f8c0deec6b5f0812df6d7dac214b3f8622da29 SHA512 dd03b34b06e67aa4dc16281902e4676ee55169343d062b9515195ff9c92fc9cca4aaa24f83309b7f150f67a49356c41e22380bd68231dab7df04ac1c127f096f
+DIST protobuf-21.12.tar.gz 5141166 BLAKE2B 33500612d103afb817062486a741e8e5503f82c42c70054d47d1899e6bb79f3fdde2666cad5b8eff6e1bc539c3b0cdf9f2b125ce7e5d3a459a69e84d67ab535e SHA512 2dc8f552388438268d8b9f7a9e84c6abf1736be3d5031438c789c317410c9f4b5cedd25bf7da6d67b3ba32ca890869f9ddaab2284d6ac0e734a5b135ffbb1346
DIST protobuf-21.9.tar.gz 5110670 BLAKE2B a4f5b7f58e1c5904ca990b100a72992f6f56177b28773f8de8c99e4158391d33cfb8aa8575915887fc9ae4294faf81d4ff6b470bc07b394bfd5885a09ba0fafe SHA512 6954b42d21921e630173b7848c056ab95635627d8eddec960f3db2ddda13eedde00520a9b350722e76e2998649eb8ebe10758e1db938b6a91e38ff3295b1b7c1
DIST protobuf-23.3.tar.gz 5043803 BLAKE2B ee2edee230969555c9ef95069c7b1d6c23c3d1f8ea1b2249fb3e9f6fcf63312c6e10e9da65b80629fb08d5fb08d05a19bb9c752c25b892c1e3fd6f18b9279eb3 SHA512 646af367dbc61b42e322cf0b335f360e428b272e2b1f5361b2f17c18d3dc9dddd615e1279436028b1a42275a0beadda37c2c934fc27d6c892131cc8d526d8b3b
+EBUILD protobuf-python-4.21.12.ebuild 1716 BLAKE2B 97157493bac3e39e408216b5b051d166be80bf09ed9390ec1a24a3700acbe518039cd5a7feab8b075a705134314a09196a6ffcee223f20018972b8694ba89a0c SHA512 ad3cca616816e0ea6182c32caf13078ae67f3a47cd5e944bfbce8c24c026648d737f973bfdc855e0bf53bfb100ad5aad53027e1adbe7657c85fcea0867241f8d
EBUILD protobuf-python-4.21.9.ebuild 1852 BLAKE2B f3b2977f5a058550d6d3ebe4f421da10e6c0f7dc58e2feee4b6d6198d339e1e6810426271b76fc14d9e2b27ed1ad5ddfe49637ff3cdbacdcdd7f4b26b3a5188b SHA512 844ab88f8d881310e05eaad54805a78834b93296b173947e9c55fc64a4e6ec1489219e1db4ef65da836d1ece782860b8b19d915a2e6da44b2582b9125971768e
EBUILD protobuf-python-4.23.3.ebuild 1681 BLAKE2B 099119c8de2ab49268795635c29f91b42d06ee6f3c14ac9680295ef305063286b244236f9a597e1a114896c1f9f9c70b66ee7f0fed4a9f1644e151aaad0d9961 SHA512 01dfac68ae987a264c0ce5c634ec5d2cc914c7381155270a518ef78656bae13dc95b04e8ebd30427339056307a85f82b5ace79b2aa85af8d2af30e2380ecab2e
EBUILD protobuf-python-9999.ebuild 1674 BLAKE2B d658445906ce272fcaaefba477a7b300557f45698aea4874428e9a5dd368bb0485a8b4abd8c95195c71400f6fb610ae6d5bb0788223ab85aa97061b1feec7945 SHA512 ad459f34af37e0a478dcd41f2875481a20433a445e3f7bb41e13434f5c65f2720b630f89f923173e86c6ed239e71600b3893ee1d2c2ac700babe3cac705b8d79
diff --git a/dev-python/protobuf-python/protobuf-python-4.21.12.ebuild b/dev-python/protobuf-python/protobuf-python-4.21.12.ebuild
new file mode 100644
index 000000000000..5bac62a748d7
--- /dev/null
+++ b/dev-python/protobuf-python/protobuf-python-4.21.12.ebuild
@@ -0,0 +1,78 @@
+# 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..11} )
+
+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}.tar.gz
+ "
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~mips ~ppc64 ~riscv ~x86 ~amd64-linux ~x86-linux ~x64-macos"
+fi
+
+DESCRIPTION="Google's Protocol Buffers - Python bindings"
+HOMEPAGE="
+ https://developers.google.com/protocol-buffers/
+ https://pypi.org/project/protobuf/
+"
+
+LICENSE="BSD"
+SLOT="0/3.${PARENT_PV}.0"
+
+S="${WORKDIR}/${PARENT_P}/python"
+
+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
+}