Install this version:
emerge -a =x11-misc/input-remapper-2.2.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =x11-misc/input-remapper-2.2.1
Or alternatively:
emerge --autounmask-write -a =x11-misc/input-remapper-2.2.1
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 2.2.1 | 8 | ~amd64 | 0 |
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_1{0,1,2,3,4,5} )
inherit desktop distutils-r1 systemd udev xdg
DESCRIPTION="An easy to use tool to change the behaviour of your input devices."
HOMEPAGE="https://github.com/sezanzeb/input-remapper"
SRC_URI="https://github.com/sezanzeb/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="dev-python/dasbus[${PYTHON_USEDEP}]
dev-python/evdev[${PYTHON_USEDEP}]
dev-python/packaging[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
dev-python/pycairo[${PYTHON_USEDEP}]
dev-python/pydantic[${PYTHON_USEDEP}]
dev-python/pygobject[${PYTHON_USEDEP}]
x11-libs/gtksourceview:4"
RDEPEND="${DEPEND}"
src_prepare() {
# Upstream migrated from setup.py to pyproject.toml but shipped no
# [build-system] table; PEP 517 implies setuptools when it is absent.
cat >> pyproject.toml <<-EOF || die
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
EOF
distutils-r1_src_prepare
}
src_install() {
distutils-r1_src_install
domenu "data/${PN}-gtk.desktop"
insinto /usr/share/metainfo
doins "data/io.github.sezanzeb.${PN/-/_}.metainfo.xml"
insinto /usr/share/polkit-1/actions
doins "data/${PN}.policy"
systemd_dounit "data/${PN}.service"
insinto /usr/share/dbus-1/system.d
doins data/inputremapper.Control.conf
insinto /etc/xdg/autostart
doins "data/${PN}-autoload.desktop"
udev_dorules "data/99-${PN}.rules"
dobin "bin/${PN}-"*
insinto "/usr/share/${PN}"
doins "data/${PN}-large.png" "data/${PN}.glade" "data/${PN}.svg" data/style.css
}
distutils_enable_tests unittest
dev-python/dasbus[] dev-python/evdev[] dev-python/packaging[] dev-python/psutil[] dev-python/pycairo[] dev-python/pydantic[] dev-python/pygobject[] x11-libs/gtksourceview:4
dev-python/dasbus[] dev-python/evdev[] dev-python/packaging[] dev-python/psutil[] dev-python/pycairo[] dev-python/pydantic[] dev-python/pygobject[] x11-libs/gtksourceview:4
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | input-remapper-2.2.1.gh.tar.gz | 721115 bytes | https://github.com/sezanzeb/input-remapper/archive/refs/tags/2.2.1.tar.gz |