commit: e4ca3a7b55bd93ba6d55373ae5ee0e52deb26bc2
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed May 18 06:57:58 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed May 18 06:59:53 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4ca3a7b
dev-python/protobuf-python: Use PEP517 build
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
...uf-python-9999.ebuild => protobuf-python-3.19.3-r3.ebuild} | 11 +++++++----
dev-python/protobuf-python/protobuf-python-9999.ebuild | 8 +++++---
2 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/dev-python/protobuf-python/protobuf-python-9999.ebuild
b/dev-python/protobuf-python/protobuf-python-3.19.3-r3.ebuild
similarity index 75%
copy from dev-python/protobuf-python/protobuf-python-9999.ebuild
copy to dev-python/protobuf-python/protobuf-python-3.19.3-r3.ebuild
index 9347d6babd62..f486c2f2c58c 100644
--- a/dev-python/protobuf-python/protobuf-python-9999.ebuild
+++ b/dev-python/protobuf-python/protobuf-python-3.19.3-r3.ebuild
@@ -3,6 +3,7 @@
EAPI=8
+DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
@@ -18,6 +19,7 @@ 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="
@@ -29,7 +31,7 @@ S="${WORKDIR}/protobuf-${PV}/python"
LICENSE="BSD"
SLOT="0/30"
-KEYWORDS=""
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv
~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
BDEPEND="
${PYTHON_DEPS}
@@ -53,6 +55,7 @@ distutils_enable_tests setup.py
python_prepare_all() {
pushd "${WORKDIR}/protobuf-${PV}" > /dev/null || die
+ eapply
"${FILESDIR}/${PN}-3.19.0-google.protobuf.pyext._message.PyUnknownFieldRef.patch"
eapply_user
popd > /dev/null || die
@@ -63,7 +66,7 @@ src_configure() {
DISTUTILS_ARGS=(--cpp_implementation)
}
-python_install_all() {
- distutils-r1_python_install_all
- find "${ED}" -name "*.pth" -type f -delete || die
+python_compile() {
+ distutils-r1_python_compile
+ find "${BUILD_DIR}/install" -name "*.pth" -type f -delete || die
}
diff --git a/dev-python/protobuf-python/protobuf-python-9999.ebuild
b/dev-python/protobuf-python/protobuf-python-9999.ebuild
index 9347d6babd62..3541dfec56fd 100644
--- a/dev-python/protobuf-python/protobuf-python-9999.ebuild
+++ b/dev-python/protobuf-python/protobuf-python-9999.ebuild
@@ -3,6 +3,7 @@
EAPI=8
+DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
@@ -18,6 +19,7 @@ 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="
@@ -63,7 +65,7 @@ src_configure() {
DISTUTILS_ARGS=(--cpp_implementation)
}
-python_install_all() {
- distutils-r1_python_install_all
- find "${ED}" -name "*.pth" -type f -delete || die
+python_compile() {
+ distutils-r1_python_compile
+ find "${BUILD_DIR}/install" -name "*.pth" -type f -delete || die
}