summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-04-28 04:38:06 +0100
committerSam James <sam@gentoo.org>2022-04-28 04:38:06 +0100
commitd3e7ca77bc65f5233877f9e611a194b07c153bcd (patch)
treea12029ab67665ffc135e13951b1678649f3bfcb3 /media-libs
parentmedia-libs/vitamtp: use udev.eclass; call udev_reload (diff)
downloadgentoo-d3e7ca77bc65f5233877f9e611a194b07c153bcd.tar.gz
gentoo-d3e7ca77bc65f5233877f9e611a194b07c153bcd.tar.bz2
gentoo-d3e7ca77bc65f5233877f9e611a194b07c153bcd.zip
media-libs/svgalib: use udev.eclass; call udev_reload
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/svgalib/svgalib-1.9.25-r8.ebuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/media-libs/svgalib/svgalib-1.9.25-r8.ebuild b/media-libs/svgalib/svgalib-1.9.25-r8.ebuild
index 4199e5163324..437e486ad5aa 100644
--- a/media-libs/svgalib/svgalib-1.9.25-r8.ebuild
+++ b/media-libs/svgalib/svgalib-1.9.25-r8.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit flag-o-matic linux-mod toolchain-funcs
+inherit flag-o-matic linux-mod toolchain-funcs udev
DESCRIPTION="A library for running svga graphics on the console"
HOMEPAGE="http://www.svgalib.org/"
@@ -89,8 +89,7 @@ src_install() {
doins src/vga.h gl/vgagl.h src/mouse/vgamouse.h src/joystick/vgajoystick.h
doins src/keyboard/vgakeyboard.h kernel/svgalib_helper/svgalib_helper.h
- insinto /lib/udev/rules.d
- newins "${FILESDIR}"/svgalib.udev.rules.d.2 30-svgalib.rules
+ udev_newrules "${FILESDIR}"/svgalib.udev.rules.d.2 30-svgalib.rules
exeinto /usr/lib/svgalib/demos
for x in "${S}"/demos/* ; do
@@ -122,5 +121,7 @@ src_install() {
}
pkg_postinst() {
+ udev_reload
+
! use build && use kernel-helper && linux-mod_pkg_postinst
}