summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-04-28 04:37:16 +0100
committerSam James <sam@gentoo.org>2022-04-28 04:37:31 +0100
commit951301312671f54ef9d17d10dd1cee942e79fe95 (patch)
treea029d66c89198a493b8abfa153ff46b624c1fb76 /media-libs
parentapp-emulation/xe-guest-utilities: use get_udevdir (diff)
downloadgentoo-951301312671f54ef9d17d10dd1cee942e79fe95.tar.gz
gentoo-951301312671f54ef9d17d10dd1cee942e79fe95.tar.bz2
gentoo-951301312671f54ef9d17d10dd1cee942e79fe95.zip
media-libs/vitamtp: use udev.eclass; call udev_reload
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/vitamtp/vitamtp-2.5.9_pre20160829.ebuild13
-rw-r--r--media-libs/vitamtp/vitamtp-9999.ebuild13
2 files changed, 18 insertions, 8 deletions
diff --git a/media-libs/vitamtp/vitamtp-2.5.9_pre20160829.ebuild b/media-libs/vitamtp/vitamtp-2.5.9_pre20160829.ebuild
index c1a028b1ab19..a57b5ab082cd 100644
--- a/media-libs/vitamtp/vitamtp-2.5.9_pre20160829.ebuild
+++ b/media-libs/vitamtp/vitamtp-2.5.9_pre20160829.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit autotools vcs-snapshot
+inherit autotools vcs-snapshot udev
GIT_COMMIT="7ab537a4f45e34984cbeb9cf1b1af543a75a3dc0"
@@ -40,7 +40,12 @@ src_configure() {
src_install() {
default
+
find "${ED}" -name '*.la' -delete || die
- insinto /lib/udev/rules.d
- newins debian/libvitamtp5.udev 10-vitamtp.rules
+
+ udev_newrules debian/libvitamtp5.udev 10-vitamtp.rules
+}
+
+pkg_postinst() {
+ udev_reload
}
diff --git a/media-libs/vitamtp/vitamtp-9999.ebuild b/media-libs/vitamtp/vitamtp-9999.ebuild
index 90e58fb32077..158230be609f 100644
--- a/media-libs/vitamtp/vitamtp-9999.ebuild
+++ b/media-libs/vitamtp/vitamtp-9999.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-inherit autotools git-r3
+inherit autotools git-r3 udev
DESCRIPTION="Library to interact with PS Vita's USB MTP protocol"
HOMEPAGE="https://github.com/codestation/vitamtp"
@@ -36,7 +36,12 @@ src_configure() {
src_install() {
default
+
find "${ED}" -name '*.la' -delete || die
- insinto /lib/udev/rules.d
- newins debian/libvitamtp5.udev 10-vitamtp.rules
+
+ udev_newrules debian/libvitamtp5.udev 10-vitamtp.rules
+}
+
+pkg_postinst() {
+ udev_reload
}