Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libcec/
Date: Thu, 28 Apr 2022 03:34:15
Message-Id: 1651116708.1717e31f229054a31d42dc0cf60165e333de11b6.sam@gentoo
1 commit: 1717e31f229054a31d42dc0cf60165e333de11b6
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 28 03:22:39 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 28 03:31:48 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1717e31f
7
8 dev-libs/libcec: use udev.eclass; call udev_reload
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 dev-libs/libcec/libcec-6.0.2.ebuild | 7 ++++---
13 1 file changed, 4 insertions(+), 3 deletions(-)
14
15 diff --git a/dev-libs/libcec/libcec-6.0.2.ebuild b/dev-libs/libcec/libcec-6.0.2.ebuild
16 index 9518fad0b156..2e1ceac2dcf0 100644
17 --- a/dev-libs/libcec/libcec-6.0.2.ebuild
18 +++ b/dev-libs/libcec/libcec-6.0.2.ebuild
19 @@ -7,7 +7,7 @@ PYTHON_COMPAT=( python3_{8..10} )
20 MY_PV=${PV/_p/-}
21 MY_P=${PN}-${MY_PV}
22
23 -inherit cmake linux-info python-single-r1 toolchain-funcs
24 +inherit cmake linux-info python-single-r1 toolchain-funcs udev
25
26 DESCRIPTION="Library for communicating with the Pulse-Eight USB HDMI-CEC Adaptor"
27 HOMEPAGE="http://libcec.pulse-eight.com"
28 @@ -112,12 +112,13 @@ src_install() {
29 use tools && doman debian/cec-client.1
30
31 if use udev; then
32 - insinto /lib/udev/rules.d
33 - doins "${BUILD_DIR}/65-pulse-eight-usb-cec.udev"
34 + udev_dorules "${BUILD_DIR}/65-pulse-eight-usb-cec.udev"
35 fi
36 }
37
38 pkg_postinst() {
39 + use udev && udev_reload
40 +
41 elog "You will need to ensure the user running your CEC client has"
42 elog "read/write access to the device. You can ensure this by adding"
43 elog "them to the uucp group"