commit:     1717e31f229054a31d42dc0cf60165e333de11b6
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 28 03:22:39 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 28 03:31:48 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1717e31f

dev-libs/libcec: use udev.eclass; call udev_reload

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/libcec/libcec-6.0.2.ebuild | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/dev-libs/libcec/libcec-6.0.2.ebuild 
b/dev-libs/libcec/libcec-6.0.2.ebuild
index 9518fad0b156..2e1ceac2dcf0 100644
--- a/dev-libs/libcec/libcec-6.0.2.ebuild
+++ b/dev-libs/libcec/libcec-6.0.2.ebuild
@@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{8..10} )
 MY_PV=${PV/_p/-}
 MY_P=${PN}-${MY_PV}
 
-inherit cmake linux-info python-single-r1 toolchain-funcs
+inherit cmake linux-info python-single-r1 toolchain-funcs udev
 
 DESCRIPTION="Library for communicating with the Pulse-Eight USB HDMI-CEC 
Adaptor"
 HOMEPAGE="http://libcec.pulse-eight.com";
@@ -112,12 +112,13 @@ src_install() {
        use tools && doman debian/cec-client.1
 
        if use udev; then
-               insinto /lib/udev/rules.d
-               doins "${BUILD_DIR}/65-pulse-eight-usb-cec.udev"
+               udev_dorules "${BUILD_DIR}/65-pulse-eight-usb-cec.udev"
        fi
 }
 
 pkg_postinst() {
+       use udev && udev_reload
+
        elog "You will need to ensure the user running your CEC client has"
        elog "read/write access to the device. You can ensure this by adding"
        elog "them to the uucp group"

Reply via email to