Skip to content

Commit 0f534e4

Browse files
committed
games-util/input-remapper: add 2.2.0
Signed-off-by: Erica Nebula <[email protected]>
1 parent 581c584 commit 0f534e4

File tree

2 files changed

+96
-0
lines changed

2 files changed

+96
-0
lines changed

games-util/input-remapper/Manifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
DIST input-remapper-2.1.1.tar.gz 705287 BLAKE2B 22e9058c3d7308a2dd0e2404fb9cc78a188a0c8b68859de860856c4146f9722d927facbd6db225436f28782c331eff4fb9fad80dd021ec5607710e72c6db96a3 SHA512 a7e38f32fda5f0e03cc0b750f8ec30780c2c7708b1170703fa54ede19a3a7124384ab98751fb94f303c03fa829972e61f7ff85e284278e8b7688f000b81242a7
2+
DIST input-remapper-2.2.0.tar.gz 706824 BLAKE2B 3079349daf076c44dba5e88ed1fdb57a947cd935c02ee31c87d7c3cbb3925d3fe6dc28becf64250e69ef47a460441f24a069613daafc5678006f58e06a67d4f4 SHA512 af0b8140b79017d0093695e48960376989aed9ff514c47d48de32d900fddebcee6bf4e9f6bcefc15af58d073280e79d51a4a56ece071c276f15d8e2b64a17d47
Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# Copyright 2025 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
# Note: 2.2.0 has Python 3.14 support (https://github.com/sezanzeb/input-remapper/pull/1184)
7+
# however not all dependencies have ebuilds with 3.14 support yet. (dev-python/pydbus-0.6.0-r1)
8+
PYTHON_COMPAT=( python3_{11..13} )
9+
DISTUTILS_SINGLE_IMPL=1
10+
DISTUTILS_USE_PEP517=setuptools
11+
12+
inherit distutils-r1 systemd udev desktop
13+
14+
DESCRIPTION="A tool to change and program the mapping of your input device buttons"
15+
HOMEPAGE="https://github.com/sezanzeb/input-remapper"
16+
SRC_URI="https://github.com/sezanzeb/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
17+
18+
LICENSE="GPL-3"
19+
SLOT="0"
20+
KEYWORDS="~amd64"
21+
22+
PATCHES=(
23+
"${FILESDIR}/remove-non-python-files-from-setup.patch"
24+
)
25+
26+
RDEPEND="x11-libs/gtk+:3
27+
x11-libs/gtksourceview
28+
x11-apps/xmodmap
29+
$(python_gen_cond_dep '
30+
dev-python/pygobject[${PYTHON_USEDEP}]
31+
dev-python/pydbus[${PYTHON_USEDEP}]
32+
dev-python/pydantic[${PYTHON_USEDEP}]
33+
dev-python/psutil[${PYTHON_USEDEP}]
34+
>=dev-python/evdev-1.3.0[${PYTHON_USEDEP}]
35+
dev-python/setuptools[${PYTHON_USEDEP}]
36+
')
37+
virtual/udev"
38+
39+
distutils_enable_tests pytest
40+
41+
src_install() {
42+
# Install data files
43+
insinto /usr/share/input-remapper/
44+
doins -r "${S}"/data/*
45+
46+
# Install lang files
47+
insinto /usr/share/input-remapper/lang
48+
doins -r "${S}"/mo/*
49+
50+
# Install udev rules
51+
udev_dorules data/99-input-remapper.rules
52+
53+
# Install systemd service
54+
systemd_dounit data/input-remapper.service
55+
56+
# Install desktop file
57+
domenu data/input-remapper-gtk.desktop
58+
59+
# Install icon file
60+
doicon -s scalable data/input-remapper.svg
61+
62+
# Install audoload file
63+
insinto /etc/xdg/autostart
64+
newins data/input-remapper-autoload.desktop input-remapper-autoload.desktop
65+
66+
# Install dbus config
67+
insinto /usr/share/dbus-1/system.d
68+
newins data/inputremapper.Control.conf inputremapper.Control.conf
69+
70+
# Install polkit policy
71+
insinto /usr/share/polkit-1/actions
72+
newins data/input-remapper.policy input-remapper.policy
73+
74+
# Install metainfo
75+
insinto /usr/share/metainfo
76+
newins data/io.github.sezanzeb.input_remapper.metainfo.xml io.github.sezanzeb.input_remapper.metainfo.xml
77+
78+
# Install bin files
79+
exeinto /usr/bin
80+
newexe bin/input-remapper-gtk input-remapper-gtk
81+
newexe bin/input-remapper-service input-remapper-service
82+
newexe bin/input-remapper-control input-remapper-control
83+
newexe bin/input-remapper-reader-service input-remapper-reader-service
84+
85+
# Install python site-packages files
86+
distutils-r1_src_install
87+
}
88+
89+
pkg_postinst() {
90+
udev_reload
91+
}
92+
93+
pkg_postrm() {
94+
udev_reload
95+
}

0 commit comments

Comments
 (0)