dev-python/protobuf: treeclean
Closes: https://git.edevau.net/onkelbeh/HomeAssistantRepository/issues/n Signed-off-by: Andreas Billmeier <b@edevau.net>
This commit is contained in:
parent
302bc190f1
commit
6f2c80e7b3
@ -606,14 +606,14 @@ A daily compile test is run at Github with Python 3.9 to catch general faults. E
|
||||
|
||||
## Licenses
|
||||
This repository itself is released under GPL-3 (like most Gentoo repositories), all work on the depending components under the licenses they came from. Perhaps you came here because I filed an issue at your component about a bad or missing license. It is easy to [assign a license](https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository). During cleanups and license investigations I have been asked often which license to choose. I am not a lawyer, but I can offer the following table, counted over this repository, perhaps this helps your decision. If a package has more than one license listed, all of them are counted.
|
||||
There are 2382 Ebuilds in total, 2364 of them have in total 2408 (43 different) licenses assigned.
|
||||
There are 2380 Ebuilds in total, 2362 of them have in total 2406 (43 different) licenses assigned.
|
||||
|
||||
|License| Ebuilds using it|
|
||||
|-------|-----|
|
||||
|MIT|1353|
|
||||
|Apache-2.0|553|
|
||||
|GPL-3|149|
|
||||
|BSD|127|
|
||||
|BSD|125|
|
||||
|GPL-2|30|
|
||||
|LGPL-3|22|
|
||||
|BSD-2|19|
|
||||
|
@ -1,29 +0,0 @@
|
||||
# Copyright 1999-2024 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) -> protobuf-python-${PV}.tar.gz
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/$(ver_cut 1-3)"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
@ -1,79 +0,0 @@
|
||||
# Copyright 1999-2024 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_{11..13} )
|
||||
|
||||
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}.gh.tar.gz
|
||||
"
|
||||
KEYWORDS="amd64 arm arm64 x86"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Google's Protocol Buffers - Python bindings"
|
||||
HOMEPAGE="
|
||||
https://protobuf.dev
|
||||
https://pypi.org/project/protobuf/
|
||||
"
|
||||
|
||||
LICENSE="BSD"
|
||||
SLOT="0/28.2.0"
|
||||
|
||||
S="${WORKDIR}/${PARENT_P}/python"
|
||||
|
||||
BDEPEND="
|
||||
"
|
||||
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=(
|
||||
)
|
||||
|
||||
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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user