Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/vitamtp/
Date: Thu, 28 Apr 2022 03:38:26
Message-Id: 1651117051.951301312671f54ef9d17d10dd1cee942e79fe95.sam@gentoo
1 commit: 951301312671f54ef9d17d10dd1cee942e79fe95
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 28 03:37:16 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 28 03:37:31 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95130131
7
8 media-libs/vitamtp: use udev.eclass; call udev_reload
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 media-libs/vitamtp/vitamtp-2.5.9_pre20160829.ebuild | 13 +++++++++----
13 media-libs/vitamtp/vitamtp-9999.ebuild | 13 +++++++++----
14 2 files changed, 18 insertions(+), 8 deletions(-)
15
16 diff --git a/media-libs/vitamtp/vitamtp-2.5.9_pre20160829.ebuild b/media-libs/vitamtp/vitamtp-2.5.9_pre20160829.ebuild
17 index c1a028b1ab19..a57b5ab082cd 100644
18 --- a/media-libs/vitamtp/vitamtp-2.5.9_pre20160829.ebuild
19 +++ b/media-libs/vitamtp/vitamtp-2.5.9_pre20160829.ebuild
20 @@ -1,9 +1,9 @@
21 -# Copyright 1999-2020 Gentoo Authors
22 +# Copyright 1999-2022 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 EAPI=7
26
27 -inherit autotools vcs-snapshot
28 +inherit autotools vcs-snapshot udev
29
30 GIT_COMMIT="7ab537a4f45e34984cbeb9cf1b1af543a75a3dc0"
31
32 @@ -40,7 +40,12 @@ src_configure() {
33
34 src_install() {
35 default
36 +
37 find "${ED}" -name '*.la' -delete || die
38 - insinto /lib/udev/rules.d
39 - newins debian/libvitamtp5.udev 10-vitamtp.rules
40 +
41 + udev_newrules debian/libvitamtp5.udev 10-vitamtp.rules
42 +}
43 +
44 +pkg_postinst() {
45 + udev_reload
46 }
47
48 diff --git a/media-libs/vitamtp/vitamtp-9999.ebuild b/media-libs/vitamtp/vitamtp-9999.ebuild
49 index 90e58fb32077..158230be609f 100644
50 --- a/media-libs/vitamtp/vitamtp-9999.ebuild
51 +++ b/media-libs/vitamtp/vitamtp-9999.ebuild
52 @@ -1,9 +1,9 @@
53 -# Copyright 1999-2020 Gentoo Authors
54 +# Copyright 1999-2022 Gentoo Authors
55 # Distributed under the terms of the GNU General Public License v2
56
57 EAPI=7
58
59 -inherit autotools git-r3
60 +inherit autotools git-r3 udev
61
62 DESCRIPTION="Library to interact with PS Vita's USB MTP protocol"
63 HOMEPAGE="https://github.com/codestation/vitamtp"
64 @@ -36,7 +36,12 @@ src_configure() {
65
66 src_install() {
67 default
68 +
69 find "${ED}" -name '*.la' -delete || die
70 - insinto /lib/udev/rules.d
71 - newins debian/libvitamtp5.udev 10-vitamtp.rules
72 +
73 + udev_newrules debian/libvitamtp5.udev 10-vitamtp.rules
74 +}
75 +
76 +pkg_postinst() {
77 + udev_reload
78 }