From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C91AD158094 for ; Fri, 2 Sep 2022 15:18:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 09BA9E097E; Fri, 2 Sep 2022 15:18:06 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E4BA1E097E for ; Fri, 2 Sep 2022 15:18:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2AD373411C9 for ; Fri, 2 Sep 2022 15:18:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A38D4576 for ; Fri, 2 Sep 2022 15:18:03 +0000 (UTC) From: "Arthur Zamarin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Arthur Zamarin" Message-ID: <1662131826.4e446d13fe820ffe83d4819e5d0ee38191c9741d.arthurzam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/protobuf-python/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/protobuf-python/Manifest dev-python/protobuf-python/protobuf-python-3.20.1.ebuild X-VCS-Directories: dev-python/protobuf-python/ X-VCS-Committer: arthurzam X-VCS-Committer-Name: Arthur Zamarin X-VCS-Revision: 4e446d13fe820ffe83d4819e5d0ee38191c9741d X-VCS-Branch: master Date: Fri, 2 Sep 2022 15:18:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8594687d-d0a3-44b8-866f-917551267548 X-Archives-Hash: c0e8974bea28bbe740bb4a1a9fd58cf9 commit: 4e446d13fe820ffe83d4819e5d0ee38191c9741d Author: Arthur Zamarin gentoo org> AuthorDate: Fri Sep 2 14:30:16 2022 +0000 Commit: Arthur Zamarin gentoo org> CommitDate: Fri Sep 2 15:17:06 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e446d13 dev-python/protobuf-python: add 3.20.1 Signed-off-by: Arthur Zamarin gentoo.org> dev-python/protobuf-python/Manifest | 1 + .../protobuf-python/protobuf-python-3.20.1.ebuild | 71 ++++++++++++++++++++++ 2 files changed, 72 insertions(+) diff --git a/dev-python/protobuf-python/Manifest b/dev-python/protobuf-python/Manifest index 445bb0b6652e..dfb0564c5120 100644 --- a/dev-python/protobuf-python/Manifest +++ b/dev-python/protobuf-python/Manifest @@ -1 +1,2 @@ DIST protobuf-3.19.3.tar.gz 5293258 BLAKE2B c05b70ffca97f7166ea6a511a36907eed125edf1ebf17f908718221d9b851be84dfb2b1b39973f2faf35f6ade630e6ba4f9e8b91b8fbc922c5db97079323ee6e SHA512 1c003e7cbc8eae6a038f46e688b401ee202ba47f502561e909df79770f6e8b7daf3dc1ccc727e31bfb5b52cd04cb4fef7d2d2a28d650c13f396872ad4aa076c6 +DIST protobuf-3.20.1.tar.gz 5368262 BLAKE2B 1ce1aef2e4c4f3ea4863629cc75d89fe17d0c7ac0c342ac641c787456fd4a12756c2892a27ddadedc94a7201494ec84566638ce33a03cb0c867b04e9eee0edb3 SHA512 fde3eb9f13946887ddfd87df428c5615ad09aaf191e4478b24e98e5e13231feeff4e70b4ca6a2ff7d9b9b2e2c60bc1d5479526edeafa78f9a8ed3bef2e0bacb0 diff --git a/dev-python/protobuf-python/protobuf-python-3.20.1.ebuild b/dev-python/protobuf-python/protobuf-python-3.20.1.ebuild new file mode 100644 index 000000000000..72300c2997d3 --- /dev/null +++ b/dev-python/protobuf-python/protobuf-python-3.20.1.ebuild @@ -0,0 +1,71 @@ +# Copyright 2008-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) + +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}.tar.gz + " +fi +S="${WORKDIR}/protobuf-${PV}/python" + +LICENSE="BSD" +SLOT="0/30" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos" + +BDEPEND=" + ${PYTHON_DEPS} + ~dev-libs/protobuf-${PV} + dev-python/six[${PYTHON_USEDEP}] +" +DEPEND=" + ${PYTHON_DEPS} + ~dev-libs/protobuf-${PV} +" +RDEPEND=" + ${BDEPEND} + !dev-python/namespace-google +" + +if [[ "${PV}" == "9999" ]]; then + EGIT_CHECKOUT_DIR="${WORKDIR}/protobuf-${PV}" +fi + +distutils_enable_tests setup.py + +python_prepare_all() { + pushd "${WORKDIR}/protobuf-${PV}" > /dev/null || die + 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 +}