1 |
commit: 9ef872c7169635b649f7bc89ae9148e798f5f60e |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 28 08:23:19 2022 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 28 08:23:28 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ef872c7 |
7 |
|
8 |
media-libs/libnjb: fixed udev reload, eapi8 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/847433 |
11 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
12 |
|
13 |
.../libnjb/{libnjb-2.2.7.ebuild => libnjb-2.2.7-r1.ebuild} | 14 +++++++++++--- |
14 |
media-libs/libnjb/libnjb-2.2.7.ebuild | 10 +++++++++- |
15 |
2 files changed, 20 insertions(+), 4 deletions(-) |
16 |
|
17 |
diff --git a/media-libs/libnjb/libnjb-2.2.7.ebuild b/media-libs/libnjb/libnjb-2.2.7-r1.ebuild |
18 |
similarity index 84% |
19 |
copy from media-libs/libnjb/libnjb-2.2.7.ebuild |
20 |
copy to media-libs/libnjb/libnjb-2.2.7-r1.ebuild |
21 |
index db6b951fbf00..2f593d538544 100644 |
22 |
--- a/media-libs/libnjb/libnjb-2.2.7.ebuild |
23 |
+++ b/media-libs/libnjb/libnjb-2.2.7-r1.ebuild |
24 |
@@ -1,7 +1,7 @@ |
25 |
-# Copyright 1999-2018 Gentoo Foundation |
26 |
+# Copyright 1999-2022 Gentoo Authors |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
|
29 |
-EAPI=6 |
30 |
+EAPI=8 |
31 |
|
32 |
inherit libtool udev |
33 |
|
34 |
@@ -11,7 +11,7 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
35 |
|
36 |
LICENSE="BSD" |
37 |
SLOT="0" |
38 |
-KEYWORDS="amd64 ppc ppc64 x86" |
39 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
40 |
IUSE="doc static-libs" |
41 |
|
42 |
RDEPEND="virtual/libusb:0" |
43 |
@@ -40,3 +40,11 @@ src_install() { |
44 |
# package provides .pc files |
45 |
find "${D}" -name '*.la' -delete || die |
46 |
} |
47 |
+ |
48 |
+pkg_postinst() { |
49 |
+ udev_reload |
50 |
+} |
51 |
+ |
52 |
+pkg_postrm() { |
53 |
+ udev_reload |
54 |
+} |
55 |
|
56 |
diff --git a/media-libs/libnjb/libnjb-2.2.7.ebuild b/media-libs/libnjb/libnjb-2.2.7.ebuild |
57 |
index db6b951fbf00..4149c8448297 100644 |
58 |
--- a/media-libs/libnjb/libnjb-2.2.7.ebuild |
59 |
+++ b/media-libs/libnjb/libnjb-2.2.7.ebuild |
60 |
@@ -1,4 +1,4 @@ |
61 |
-# Copyright 1999-2018 Gentoo Foundation |
62 |
+# Copyright 1999-2022 Gentoo Authors |
63 |
# Distributed under the terms of the GNU General Public License v2 |
64 |
|
65 |
EAPI=6 |
66 |
@@ -40,3 +40,11 @@ src_install() { |
67 |
# package provides .pc files |
68 |
find "${D}" -name '*.la' -delete || die |
69 |
} |
70 |
+ |
71 |
+pkg_postinst() { |
72 |
+ udev_reload |
73 |
+} |
74 |
+ |
75 |
+pkg_postrm() { |
76 |
+ udev_reload |
77 |
+} |