mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-09 00:07:57 +03:00
Upstream changed the way namespaces are installed in 6.x, but 5.x still uses the deprecated `namespace_packages=` key. Revert the `__init__.py` removal to fix installing packages and reenable the old eclass logic. Bug: https://bugs.gentoo.org/956779 Signed-off-by: Michał Górny <mgorny@gentoo.org>
30 lines
820 B
Bash
30 lines
820 B
Bash
# Copyright 2008-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
# Default implementation currently is upb, which doesn't match dev-libs/protobuf
|
|
# https://github.com/protocolbuffers/protobuf/blob/main/python/README.md#implementation-backends
|
|
|
|
DISTUTILS_EXT=1
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
PYTHON_COMPAT=( python3_{11..13} )
|
|
PYPI_PN="protobuf"
|
|
|
|
inherit distutils-r1 pypi
|
|
|
|
DESCRIPTION="Google's Protocol Buffers - Python bindings"
|
|
HOMEPAGE="
|
|
https://protobuf.dev/
|
|
https://pypi.org/project/protobuf/
|
|
"
|
|
|
|
# Rename sdist to avoid conflicts with dev-libs/protobuf
|
|
SRC_URI="
|
|
$(pypi_sdist_url) -> ${P}.py.tar.gz
|
|
"
|
|
|
|
LICENSE="BSD"
|
|
SLOT="0/$(ver_cut 1-3)"
|
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos"
|