Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/protobuf-python/
Date: Wed, 18 May 2022 07:00:02
Message-Id: 1652857193.e4ca3a7b55bd93ba6d55373ae5ee0e52deb26bc2.mgorny@gentoo
1 commit: e4ca3a7b55bd93ba6d55373ae5ee0e52deb26bc2
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 18 06:57:58 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed May 18 06:59:53 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4ca3a7b
7
8 dev-python/protobuf-python: Use PEP517 build
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 ...uf-python-9999.ebuild => protobuf-python-3.19.3-r3.ebuild} | 11 +++++++----
13 dev-python/protobuf-python/protobuf-python-9999.ebuild | 8 +++++---
14 2 files changed, 12 insertions(+), 7 deletions(-)
15
16 diff --git a/dev-python/protobuf-python/protobuf-python-9999.ebuild b/dev-python/protobuf-python/protobuf-python-3.19.3-r3.ebuild
17 similarity index 75%
18 copy from dev-python/protobuf-python/protobuf-python-9999.ebuild
19 copy to dev-python/protobuf-python/protobuf-python-3.19.3-r3.ebuild
20 index 9347d6babd62..f486c2f2c58c 100644
21 --- a/dev-python/protobuf-python/protobuf-python-9999.ebuild
22 +++ b/dev-python/protobuf-python/protobuf-python-3.19.3-r3.ebuild
23 @@ -3,6 +3,7 @@
24
25 EAPI=8
26
27 +DISTUTILS_USE_PEP517=setuptools
28 PYTHON_COMPAT=( python3_{8..10} )
29
30 inherit distutils-r1
31 @@ -18,6 +19,7 @@ DESCRIPTION="Google's Protocol Buffers - Python bindings"
32 HOMEPAGE="
33 https://developers.google.com/protocol-buffers/
34 https://github.com/protocolbuffers/protobuf/
35 + https://pypi.org/project/protobuf/
36 "
37 if [[ "${PV}" != "9999" ]]; then
38 SRC_URI="
39 @@ -29,7 +31,7 @@ S="${WORKDIR}/protobuf-${PV}/python"
40
41 LICENSE="BSD"
42 SLOT="0/30"
43 -KEYWORDS=""
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
45
46 BDEPEND="
47 ${PYTHON_DEPS}
48 @@ -53,6 +55,7 @@ distutils_enable_tests setup.py
49
50 python_prepare_all() {
51 pushd "${WORKDIR}/protobuf-${PV}" > /dev/null || die
52 + eapply "${FILESDIR}/${PN}-3.19.0-google.protobuf.pyext._message.PyUnknownFieldRef.patch"
53 eapply_user
54 popd > /dev/null || die
55
56 @@ -63,7 +66,7 @@ src_configure() {
57 DISTUTILS_ARGS=(--cpp_implementation)
58 }
59
60 -python_install_all() {
61 - distutils-r1_python_install_all
62 - find "${ED}" -name "*.pth" -type f -delete || die
63 +python_compile() {
64 + distutils-r1_python_compile
65 + find "${BUILD_DIR}/install" -name "*.pth" -type f -delete || die
66 }
67
68 diff --git a/dev-python/protobuf-python/protobuf-python-9999.ebuild b/dev-python/protobuf-python/protobuf-python-9999.ebuild
69 index 9347d6babd62..3541dfec56fd 100644
70 --- a/dev-python/protobuf-python/protobuf-python-9999.ebuild
71 +++ b/dev-python/protobuf-python/protobuf-python-9999.ebuild
72 @@ -3,6 +3,7 @@
73
74 EAPI=8
75
76 +DISTUTILS_USE_PEP517=setuptools
77 PYTHON_COMPAT=( python3_{8..10} )
78
79 inherit distutils-r1
80 @@ -18,6 +19,7 @@ DESCRIPTION="Google's Protocol Buffers - Python bindings"
81 HOMEPAGE="
82 https://developers.google.com/protocol-buffers/
83 https://github.com/protocolbuffers/protobuf/
84 + https://pypi.org/project/protobuf/
85 "
86 if [[ "${PV}" != "9999" ]]; then
87 SRC_URI="
88 @@ -63,7 +65,7 @@ src_configure() {
89 DISTUTILS_ARGS=(--cpp_implementation)
90 }
91
92 -python_install_all() {
93 - distutils-r1_python_install_all
94 - find "${ED}" -name "*.pth" -type f -delete || die
95 +python_compile() {
96 + distutils-r1_python_compile
97 + find "${BUILD_DIR}/install" -name "*.pth" -type f -delete || die
98 }