commit:     5de878490cf52d935a9eff5335de88ce7a34c3df
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 28 03:26:07 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Apr 28 03:31:52 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5de87849

media-libs/raspberrypi-userland: use udev.eclass; call udev_reload

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

 .../raspberrypi-userland-0_pre20160424.ebuild                 | 11 +++++++----
 .../raspberrypi-userland-0_pre20201022.ebuild                 |  6 +++++-
 .../raspberrypi-userland/raspberrypi-userland-9999.ebuild     |  6 +++++-
 3 files changed, 17 insertions(+), 6 deletions(-)

diff --git 
a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160424.ebuild 
b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160424.ebuild
index 8c43fe24aa99..7f5d733485a6 100644
--- a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160424.ebuild
+++ b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20160424.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-inherit cmake
+inherit cmake udev
 
 DESCRIPTION="Raspberry Pi userspace tools and libraries"
 HOMEPAGE="https://github.com/raspberrypi/userland";
@@ -64,8 +64,7 @@ src_install() {
 
        doenvd "${FILESDIR}"/04${PN}
 
-       insinto /lib/udev/rules.d
-       doins "${FILESDIR}"/92-local-vchiq-permissions.rules
+       udev_dorules "${FILESDIR}/92-local-vchiq-permissions.rules"
 
        # enable dynamic switching of the GL implementation
        dodir /usr/lib/opengl
@@ -110,3 +109,7 @@ src_install() {
 
        rm -rfv "${D}"/opt/vc/src || die
 }
+
+pkg_postinst() {
+       udev_reload
+}

diff --git 
a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20201022.ebuild 
b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20201022.ebuild
index 7f27f6655647..112896ef1dde 100644
--- a/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20201022.ebuild
+++ b/media-libs/raspberrypi-userland/raspberrypi-userland-0_pre20201022.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -69,3 +69,7 @@ src_install() {
        cmake_src_install
        udev_dorules "${FILESDIR}/92-local-vchiq-permissions.rules"
 }
+
+pkg_postinst() {
+       udev_reload
+}

diff --git a/media-libs/raspberrypi-userland/raspberrypi-userland-9999.ebuild 
b/media-libs/raspberrypi-userland/raspberrypi-userland-9999.ebuild
index 7fa3e5909284..f05820d71ac0 100644
--- a/media-libs/raspberrypi-userland/raspberrypi-userland-9999.ebuild
+++ b/media-libs/raspberrypi-userland/raspberrypi-userland-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -69,3 +69,7 @@ src_install() {
        cmake_src_install
        udev_dorules "${FILESDIR}/92-local-vchiq-permissions.rules"
 }
+
+pkg_postinst() {
+       udev_reload
+}

Reply via email to