1 |
commit: e8d6ff8b97cc3de656480dc68436973c9572e877 |
2 |
Author: Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org> |
3 |
AuthorDate: Tue Aug 23 00:00:59 2022 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 26 23:57:01 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8d6ff8b |
7 |
|
8 |
app-misc/openrgb: use udev eclass |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org> |
12 |
Closes: https://bugs.gentoo.org/854762 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/26969 |
14 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
15 |
|
16 |
app-misc/openrgb/files/OpenRGB-0.7-r1-udev.patch | 15 +++++++++++++++ |
17 |
.../{openrgb-9999.ebuild => openrgb-0.7-r1.ebuild} | 14 ++++++++++++-- |
18 |
app-misc/openrgb/openrgb-9999.ebuild | 13 +++++++++++-- |
19 |
3 files changed, 38 insertions(+), 4 deletions(-) |
20 |
|
21 |
diff --git a/app-misc/openrgb/files/OpenRGB-0.7-r1-udev.patch b/app-misc/openrgb/files/OpenRGB-0.7-r1-udev.patch |
22 |
new file mode 100644 |
23 |
index 000000000000..54646dc66a50 |
24 |
--- /dev/null |
25 |
+++ b/app-misc/openrgb/files/OpenRGB-0.7-r1-udev.patch |
26 |
@@ -0,0 +1,15 @@ |
27 |
+Don't install udev rules |
28 |
+ |
29 |
+This is handled by udev eclass instead |
30 |
+ |
31 |
+--- a/OpenRGB.pro |
32 |
++++ b/OpenRGB.pro |
33 |
+@@ -1246,7 +1246,5 @@ unix:!macx { |
34 |
+ icon.files+=qt/OpenRGB.png |
35 |
+ metainfo.path=$$PREFIX/share/metainfo/ |
36 |
+ metainfo.files+=qt/org.openrgb.OpenRGB.metainfo.xml |
37 |
+- rules.path=$$PREFIX/lib/udev/rules.d/ |
38 |
+- rules.files+=60-openrgb.rules |
39 |
+ INSTALLS += target desktop icon metainfo rules |
40 |
+ } |
41 |
+GitLab |
42 |
|
43 |
diff --git a/app-misc/openrgb/openrgb-9999.ebuild b/app-misc/openrgb/openrgb-0.7-r1.ebuild |
44 |
similarity index 89% |
45 |
copy from app-misc/openrgb/openrgb-9999.ebuild |
46 |
copy to app-misc/openrgb/openrgb-0.7-r1.ebuild |
47 |
index f9e079015112..f3ee7086508d 100644 |
48 |
--- a/app-misc/openrgb/openrgb-9999.ebuild |
49 |
+++ b/app-misc/openrgb/openrgb-0.7-r1.ebuild |
50 |
@@ -3,7 +3,7 @@ |
51 |
|
52 |
EAPI=8 |
53 |
|
54 |
-inherit flag-o-matic qmake-utils |
55 |
+inherit flag-o-matic qmake-utils udev |
56 |
|
57 |
if [[ ${PV} == *9999* ]]; then |
58 |
inherit git-r3 |
59 |
@@ -41,7 +41,8 @@ BDEPEND=" |
60 |
|
61 |
PATCHES+=( |
62 |
"${FILESDIR}"/OpenRGB-0.7-plugins.patch |
63 |
- "${FILESDIR}"/OpenRGB-0.7-udev.patch |
64 |
+ "${FILESDIR}"/OpenRGB-0.7-r1-udev.patch |
65 |
+ "${FILESDIR}"/OpenRGB-0.7-json.patch |
66 |
) |
67 |
|
68 |
src_prepare() { |
69 |
@@ -64,8 +65,17 @@ src_install() { |
70 |
emake INSTALL_ROOT="${ED}" install |
71 |
|
72 |
dodoc README.md OpenRGB.patch |
73 |
+ udev_dorules 60-openrgb.rules |
74 |
|
75 |
# This is for plugins. Upstream doesn't install any headers at all. |
76 |
insinto /usr/include/OpenRGB |
77 |
find . -name '*.h' -exec cp --parents '{}' "${ED}/usr/include/OpenRGB/" ';' || die |
78 |
} |
79 |
+ |
80 |
+pkg_postinst() { |
81 |
+ udev_reload |
82 |
+} |
83 |
+ |
84 |
+pkg_postrm() { |
85 |
+ udev_reload |
86 |
+} |
87 |
|
88 |
diff --git a/app-misc/openrgb/openrgb-9999.ebuild b/app-misc/openrgb/openrgb-9999.ebuild |
89 |
index f9e079015112..44c450e3c857 100644 |
90 |
--- a/app-misc/openrgb/openrgb-9999.ebuild |
91 |
+++ b/app-misc/openrgb/openrgb-9999.ebuild |
92 |
@@ -3,7 +3,7 @@ |
93 |
|
94 |
EAPI=8 |
95 |
|
96 |
-inherit flag-o-matic qmake-utils |
97 |
+inherit flag-o-matic qmake-utils udev |
98 |
|
99 |
if [[ ${PV} == *9999* ]]; then |
100 |
inherit git-r3 |
101 |
@@ -41,7 +41,7 @@ BDEPEND=" |
102 |
|
103 |
PATCHES+=( |
104 |
"${FILESDIR}"/OpenRGB-0.7-plugins.patch |
105 |
- "${FILESDIR}"/OpenRGB-0.7-udev.patch |
106 |
+ "${FILESDIR}"/OpenRGB-0.7-r1-udev.patch |
107 |
) |
108 |
|
109 |
src_prepare() { |
110 |
@@ -64,8 +64,17 @@ src_install() { |
111 |
emake INSTALL_ROOT="${ED}" install |
112 |
|
113 |
dodoc README.md OpenRGB.patch |
114 |
+ udev_dorules 60-openrgb.rules |
115 |
|
116 |
# This is for plugins. Upstream doesn't install any headers at all. |
117 |
insinto /usr/include/OpenRGB |
118 |
find . -name '*.h' -exec cp --parents '{}' "${ED}/usr/include/OpenRGB/" ';' || die |
119 |
} |
120 |
+ |
121 |
+pkg_postinst() { |
122 |
+ udev_reload |
123 |
+} |
124 |
+ |
125 |
+pkg_postrm() { |
126 |
+ udev_reload |
127 |
+} |