commit:     24b83c7523d5537c024fa60756b5d4ea77c9ec8c
Author:     Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Sat Dec 13 05:54:01 2025 +0000
Commit:     Rui Huang <vowstar <AT> gmail <DOT> com>
CommitDate: Sat Dec 13 05:54:01 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=24b83c75

dev-python/kicad-python: drop 0.5.0, add := slot operator

- Use := slot operator to trigger rebuild when protobuf is upgraded

Signed-off-by: Huang Rui <vowstar <AT> gmail.com>

 .../kicad-python/kicad-python-0.5.0-r1.ebuild      |  3 +-
 dev-python/kicad-python/kicad-python-0.5.0.ebuild  | 37 ----------------------
 2 files changed, 2 insertions(+), 38 deletions(-)

diff --git a/dev-python/kicad-python/kicad-python-0.5.0-r1.ebuild 
b/dev-python/kicad-python/kicad-python-0.5.0-r1.ebuild
index 32219b36cf..2bf3fddcdc 100644
--- a/dev-python/kicad-python/kicad-python-0.5.0-r1.ebuild
+++ b/dev-python/kicad-python/kicad-python-0.5.0-r1.ebuild
@@ -44,8 +44,9 @@ KEYWORDS="~amd64"
 RESTRICT="test"
 
 # Regenerate protobuf files at build time to match system protobuf version
+# Use := slot operator to trigger rebuild when protobuf is upgraded
 RDEPEND="
-       >=dev-python/protobuf-5.29[${PYTHON_USEDEP}]
+       >=dev-python/protobuf-5.29:=[${PYTHON_USEDEP}]
        >=dev-python/pynng-0.8.0[${PYTHON_USEDEP}]
        <dev-python/pynng-0.9.0[${PYTHON_USEDEP}]
        $(python_gen_cond_dep '

diff --git a/dev-python/kicad-python/kicad-python-0.5.0.ebuild 
b/dev-python/kicad-python/kicad-python-0.5.0.ebuild
deleted file mode 100644
index 98cdac326f..0000000000
--- a/dev-python/kicad-python/kicad-python-0.5.0.ebuild
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=poetry
-PYTHON_COMPAT=( python3_{10..14} )
-inherit distutils-r1 pypi
-
-DESCRIPTION="KiCad API Python Bindings for interacting with running KiCad 
sessions"
-HOMEPAGE="https://gitlab.com/kicad/code/kicad-python 
https://pypi.org/project/kicad-python";
-
-LICENSE="MIT"
-SLOT=0
-KEYWORDS="~amd64"
-
-# Tests not included in PyPI sdist
-RESTRICT="test"
-
-RDEPEND="
-       >=dev-python/protobuf-5.29[${PYTHON_USEDEP}]
-       <dev-python/protobuf-6[${PYTHON_USEDEP}]
-       >=dev-python/pynng-0.8.0[${PYTHON_USEDEP}]
-       <dev-python/pynng-0.9.0[${PYTHON_USEDEP}]
-       $(python_gen_cond_dep '
-               >=dev-python/typing-extensions-4.13.2[${PYTHON_USEDEP}]
-       ' python3_{10..12})
-"
-BDEPEND="${RDEPEND}"
-
-src_prepare() {
-       # Remove build script config from pyproject.toml
-       # The sdist already contains pre-generated protobuf files
-       sed -i '/\[tool.poetry.build\]/,/^$/d' pyproject.toml || die
-       rm -f setup.py build.py || die
-       distutils-r1_src_prepare
-}

Reply via email to