commit: 9870bfc0017d1576a1f896ceb43bbe360d481bf4 Author: Caio Henrique <caioh9920 <AT> proton <DOT> me> AuthorDate: Mon Dec 8 20:08:49 2025 +0000 Commit: Caio Henrique <caioh9920 <AT> proton <DOT> me> CommitDate: Mon Dec 8 22:18:14 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9870bfc0
app-misc/keyd: check for uinput support Signed-off-by: Caio Henrique <caioh9920 <AT> proton.me> app-misc/keyd/keyd-2.5.0.ebuild | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app-misc/keyd/keyd-2.5.0.ebuild b/app-misc/keyd/keyd-2.5.0.ebuild index 7611ad4f71..636236194b 100644 --- a/app-misc/keyd/keyd-2.5.0.ebuild +++ b/app-misc/keyd/keyd-2.5.0.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit linux-info + DESCRIPTION="A key remapping daemon for linux" HOMEPAGE="https://github.com/rvaiya/keyd" SRC_URI="https://github.com/rvaiya/keyd/archive/v${PV}.tar.gz -> ${P}.tar.gz" @@ -17,6 +19,19 @@ PATCHES=( "${FILESDIR}"/${P}-makefile.patch ) +pkg_pretend() { + if ! linux_config_exists; then + eerror "Unable to check your kernel for user level driver support." + else + CONFIG_CHECK="~INPUT_UINPUT" + ERROR_INPUT_UINPUT="You will need user level driver support" + ERROR_INPUT_UINPUT+=" (INPUT_UINPUT) compiled into your kernel" + ERROR_INPUT_UINPUT+=" or loaded as a module to use this package." + + check_extra_config + fi +} + src_install() { default newinitd "${FILESDIR}/keyd.initd" "keyd"
