commit: a41eeadd6180ac2073cd29ec32b7df99129993c5
Author: Erica Nebula <EricaNebula <AT> Proton <DOT> me>
AuthorDate: Tue Feb 17 06:47:36 2026 +0000
Commit: Erica Nebula <EricaNebula <AT> proton <DOT> me>
CommitDate: Tue Feb 17 06:47:36 2026 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a41eeadd
games-util/input-remapper: 9999: Handle build system changes
The dev has dropped setup.py but continues to use setuptools.
Two patches introduced:
1. Dev has not specified a build-backend in pyproject.toml
2. mo-file generation manual execution (used to get handled by setup.py)
Also "pydbus" has been replaced with "dasbus"
Signed-off-by: Erica Nebula <EricaNebula <AT> Proton.me>
.../input-remapper/files/build-backend.patch | 12 ++++++++++
games-util/input-remapper/files/mo-files.patch | 21 +++++++++++++++++
.../input-remapper/input-remapper-9999.ebuild | 26 ++++++++++++++++------
3 files changed, 52 insertions(+), 7 deletions(-)
diff --git a/games-util/input-remapper/files/build-backend.patch
b/games-util/input-remapper/files/build-backend.patch
new file mode 100644
index 0000000000..e7420a00e1
--- /dev/null
+++ b/games-util/input-remapper/files/build-backend.patch
@@ -0,0 +1,12 @@
+diff --git a/pyproject.toml b/pyproject.toml
+index 17cd3f4..dbcdd0d 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,3 +1,7 @@
++[build-system]
++requires = ["setuptools"]
++build-backend = "setuptools.build_meta"
++
+ [project]
+ name = "input-remapper"
+ version = "2.2.0"
diff --git a/games-util/input-remapper/files/mo-files.patch
b/games-util/input-remapper/files/mo-files.patch
new file mode 100644
index 0000000000..b5ce7412e6
--- /dev/null
+++ b/games-util/input-remapper/files/mo-files.patch
@@ -0,0 +1,21 @@
+diff --git a/install/language.py b/install/language.py
+index 93dbac8..9bc7cad 100644
+--- a/install/language.py
++++ b/install/language.py
+@@ -32,10 +32,7 @@ def make_lang(root: str) -> None:
+ for po_file in glob.glob("po/*.po"):
+ lang = splitext(basename(po_file))[0]
+ target = join(
+- root,
+- "usr",
+- "share",
+- "input-remapper",
++ "mo",
+ "lang",
+ lang,
+ "LC_MESSAGES",
+@@ -52,3 +49,4 @@ def make_lang(root: str) -> None:
+ ],
+ check=True,
+ )
++make_lang("");
diff --git a/games-util/input-remapper/input-remapper-9999.ebuild
b/games-util/input-remapper/input-remapper-9999.ebuild
index 68c581f6b2..9658ce1e9f 100644
--- a/games-util/input-remapper/input-remapper-9999.ebuild
+++ b/games-util/input-remapper/input-remapper-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2025 Gentoo Authors
+# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -19,32 +19,44 @@ SLOT="0"
KEYWORDS=""
PATCHES=(
- "${FILESDIR}/remove-non-python-files-from-setup.patch"
+ "${FILESDIR}/build-backend.patch"
+ "${FILESDIR}/mo-files.patch"
)
RDEPEND="x11-libs/gtk+:3
+sys-devel/gettext
x11-libs/gtksourceview
x11-apps/xmodmap
$(python_gen_cond_dep '
dev-python/pygobject[${PYTHON_USEDEP}]
- dev-python/pydbus[${PYTHON_USEDEP}]
+ dev-python/dasbus[${PYTHON_USEDEP}]
dev-python/pydantic[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
>=dev-python/evdev-1.3.0[${PYTHON_USEDEP}]
- dev-python/setuptools[${PYTHON_USEDEP}]
')
virtual/udev"
+EPYTEST_PLUGINS=()
+
distutils_enable_tests pytest
+src_compile() {
+ distutils-r1_src_compile
+
+ # With setup.py gone this needs to be manually executed.
+ # "mo-files.patch" makes language.py executable standalone
+ # and updates the output path to "${S}"/mo
+ python "${S}/install/language.py"
+}
+
src_install() {
# Install data files
- insinto /usr/share/input-remapper/
+ insinto /usr/share/inputremapper/
doins -r "${S}"/data/*
# Install lang files
- insinto /usr/share/input-remapper/lang
- doins -r "${S}"/mo/*
+ insinto /usr/share/inputremapper/lang
+ doins -r "${S}"/mo/lang/*
# Install udev rules
udev_dorules data/99-input-remapper.rules