From: Matt Turner Date: Mon, 9 Mar 2020 02:03:34 +0000 (-0700) Subject: dev-libs/libinput: Inform users about dev-python/python-libevdev X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0b5616c3dedc857001d0b42e579c6599cf713f43;p=gentoo.git 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 --- 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}" }