From 0b5616c3dedc857001d0b42e579c6599cf713f43 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sun, 8 Mar 2020 19:03:34 -0700 Subject: [PATCH] dev-libs/libinput: Inform users about dev-python/python-libevdev I don't think a runtime dependency is warranted for these two tools, so let's just inform users about the dependency. Closes: https://bugs.gentoo.org/703800 Signed-off-by: Matt Turner --- dev-libs/libinput/libinput-1.15.3.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev-libs/libinput/libinput-1.15.3.ebuild b/dev-libs/libinput/libinput-1.15.3.ebuild index 43de3f8241a4..7ae9b0b06559 100644 --- a/dev-libs/libinput/libinput-1.15.3.ebuild +++ b/dev-libs/libinput/libinput-1.15.3.ebuild @@ -73,5 +73,11 @@ src_install() { } pkg_postinst() { + pkgname="dev-python/python-libevdev" + if [[ -z "${REPLACING_VERSIONS}" ]] && ! has_version "${pkgname}"; then + einfo "${pkgname} must be installed to use the" + einfo "libinput measure and libinput replay tools." + fi + udevadm hwdb --update --root="${ROOT}" } -- 2.26.2