Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/OpenRGB/
Date: Thu, 27 Aug 2020 21:25:46
Message-Id: 1598563536.1461450a8b3b976c387e93724e249ffad46245c4.chutzpah@gentoo
1 commit: 1461450a8b3b976c387e93724e249ffad46245c4
2 Author: Alexey Sokolov <sokolov <AT> google <DOT> com>
3 AuthorDate: Sat Aug 15 00:07:17 2020 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 27 21:25:36 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1461450a
7
8 app-misc/OpenRGB: add improvements from my overlay
9
10 * fix installation on Prefix
11 * use release tarball instead of snapshot
12 * use udev eclass
13 * add live ebuild
14
15 Package-Manager: Portage-2.3.103, Repoman-2.3.23
16 Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
17 Closes: https://github.com/gentoo/gentoo/pull/17124
18 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
19
20 app-misc/OpenRGB/Manifest | 1 +
21 app-misc/OpenRGB/OpenRGB-0.3-r2.ebuild | 57 ++++++++++++++++++++++++++++++++++
22 app-misc/OpenRGB/OpenRGB-9999.ebuild | 57 ++++++++++++++++++++++++++++++++++
23 3 files changed, 115 insertions(+)
24
25 diff --git a/app-misc/OpenRGB/Manifest b/app-misc/OpenRGB/Manifest
26 index 436a2c36c15..459f45eae2a 100644
27 --- a/app-misc/OpenRGB/Manifest
28 +++ b/app-misc/OpenRGB/Manifest
29 @@ -1 +1,2 @@
30 DIST OpenRGB-0.3.tar.bz2 2153970 BLAKE2B 2b913fd867cfd2d856d70d15ec91abd6a6d2822b367bc72f8f4275784793474beab4f442bc1af0ec3c3f33630b2f6b09d490d4f326fa4dbc4dbe11e4944cbc6f SHA512 629eb654636051b18da0f49cccf4e35dbe11a1373941cd355b27492b8382c113637d80039fa7aa749ae3f36bf838ad4da8da00f5abf5a0b8910be0ad1ecd999c
31 +DIST OpenRGB-release_0.3.tar.bz2 2146596 BLAKE2B fc9228d8746770440b7d6bace1a858fed6e2b2db63b84f0e403352e1bd46dd594f24d929da447acdeee22a08a9e2e5394a58107643630c5e38c9780fd02bf2f4 SHA512 53924f315fd6f35ed8530798ed5fadd6171a0e896567173e95c9ac258cfc959db6d920730e606f9fceb9d360c9c87709d65e12ba00652f500d6c2f39506c9a44
32
33 diff --git a/app-misc/OpenRGB/OpenRGB-0.3-r2.ebuild b/app-misc/OpenRGB/OpenRGB-0.3-r2.ebuild
34 new file mode 100644
35 index 00000000000..c599eb22729
36 --- /dev/null
37 +++ b/app-misc/OpenRGB/OpenRGB-0.3-r2.ebuild
38 @@ -0,0 +1,57 @@
39 +# Copyright 2020 Gentoo Authors
40 +# Distributed under the terms of the GNU General Public License v2
41 +
42 +EAPI=7
43 +
44 +inherit qmake-utils udev
45 +
46 +if [[ ${PV} == *9999* ]]; then
47 + inherit git-r3
48 + EGIT_REPO_URI=${EGIT_REPO_URI:-"https://gitlab.com/CalcProgrammer1/OpenRGB"}
49 +else
50 + SRC_URI="https://gitlab.com/CalcProgrammer1/OpenRGB/-/archive/release_${PV}/OpenRGB-release_${PV}.tar.bz2"
51 + S="${WORKDIR}/OpenRGB-release_${PV}"
52 + KEYWORDS="~amd64 ~x86"
53 +fi
54 +
55 +DESCRIPTION="Open source RGB lighting control that doesn't depend on manufacturer software"
56 +HOMEPAGE="https://gitlab.com/CalcProgrammer1/OpenRGB/"
57 +LICENSE="GPL-2"
58 +SLOT="0"
59 +IUSE="udev"
60 +
61 +DEPEND="
62 + dev-libs/hidapi:=
63 + dev-libs/libbsd:=
64 + dev-qt/qtcore:5=
65 + dev-qt/qtgui:5=
66 + dev-qt/qtwidgets:5=
67 + virtual/libusb:1
68 +"
69 +RDEPEND="${DEPEND}"
70 +BDEPEND="
71 + virtual/pkgconfig
72 +"
73 +
74 +PATCHES=(
75 + "${FILESDIR}/OpenRGB-0.2-build-system.patch"
76 +)
77 +
78 +src_prepare() {
79 + default
80 + rm -rf dependencies/{hidapi,libusb}* || die
81 +}
82 +
83 +src_configure() {
84 + eqmake5
85 +}
86 +
87 +src_install() {
88 + emake INSTALL_ROOT="${ED}" install
89 +
90 + dodoc README.md OpenRGB.patch
91 +
92 + if use udev; then
93 + udev_dorules 60-openrgb.rules
94 + fi
95 +}
96
97 diff --git a/app-misc/OpenRGB/OpenRGB-9999.ebuild b/app-misc/OpenRGB/OpenRGB-9999.ebuild
98 new file mode 100644
99 index 00000000000..c599eb22729
100 --- /dev/null
101 +++ b/app-misc/OpenRGB/OpenRGB-9999.ebuild
102 @@ -0,0 +1,57 @@
103 +# Copyright 2020 Gentoo Authors
104 +# Distributed under the terms of the GNU General Public License v2
105 +
106 +EAPI=7
107 +
108 +inherit qmake-utils udev
109 +
110 +if [[ ${PV} == *9999* ]]; then
111 + inherit git-r3
112 + EGIT_REPO_URI=${EGIT_REPO_URI:-"https://gitlab.com/CalcProgrammer1/OpenRGB"}
113 +else
114 + SRC_URI="https://gitlab.com/CalcProgrammer1/OpenRGB/-/archive/release_${PV}/OpenRGB-release_${PV}.tar.bz2"
115 + S="${WORKDIR}/OpenRGB-release_${PV}"
116 + KEYWORDS="~amd64 ~x86"
117 +fi
118 +
119 +DESCRIPTION="Open source RGB lighting control that doesn't depend on manufacturer software"
120 +HOMEPAGE="https://gitlab.com/CalcProgrammer1/OpenRGB/"
121 +LICENSE="GPL-2"
122 +SLOT="0"
123 +IUSE="udev"
124 +
125 +DEPEND="
126 + dev-libs/hidapi:=
127 + dev-libs/libbsd:=
128 + dev-qt/qtcore:5=
129 + dev-qt/qtgui:5=
130 + dev-qt/qtwidgets:5=
131 + virtual/libusb:1
132 +"
133 +RDEPEND="${DEPEND}"
134 +BDEPEND="
135 + virtual/pkgconfig
136 +"
137 +
138 +PATCHES=(
139 + "${FILESDIR}/OpenRGB-0.2-build-system.patch"
140 +)
141 +
142 +src_prepare() {
143 + default
144 + rm -rf dependencies/{hidapi,libusb}* || die
145 +}
146 +
147 +src_configure() {
148 + eqmake5
149 +}
150 +
151 +src_install() {
152 + emake INSTALL_ROOT="${ED}" install
153 +
154 + dodoc README.md OpenRGB.patch
155 +
156 + if use udev; then
157 + udev_dorules 60-openrgb.rules
158 + fi
159 +}