Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/openrgb/
Date: Mon, 27 Feb 2023 09:04:24
Message-Id: 1677488648.6b0af142d6ffd70e129175ae8d2798447cf27b6c.juippis@gentoo
1 commit: 6b0af142d6ffd70e129175ae8d2798447cf27b6c
2 Author: Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
3 AuthorDate: Sun Feb 26 23:35:26 2023 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 27 09:04:08 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b0af142
7
8 app-misc/openrgb: drop 0.7, 0.7-r1
9
10 Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 app-misc/openrgb/Manifest | 1 -
14 app-misc/openrgb/openrgb-0.7-r1.ebuild | 81 ----------------------------------
15 app-misc/openrgb/openrgb-0.7.ebuild | 72 ------------------------------
16 3 files changed, 154 deletions(-)
17
18 diff --git a/app-misc/openrgb/Manifest b/app-misc/openrgb/Manifest
19 index 4b00e7ad8635..e0ff770dc389 100644
20 --- a/app-misc/openrgb/Manifest
21 +++ b/app-misc/openrgb/Manifest
22 @@ -1,2 +1 @@
23 -DIST OpenRGB-release_0.7.tar.bz2 28053114 BLAKE2B dfab42fca654478ab359e6e46133fc20a4bf32aca35d1b2f475d3e4e5e218f35c7e1f03be15381b0e8d874ea24254b88b8fe21548a4183b29b4c66647aeef516 SHA512 6ee605bfc91da14d34bc89fe75790f99548253e2d6aa088e20d1996577629bf15fe0fae09e65d983aa829f54cfcbd33e13f2c7d493a2776fd1723f8725b62186
24 DIST OpenRGB-release_0.8.tar.bz2 28631365 BLAKE2B 3b328e38f1c52646da02b0b2b2c22b1285f3b31b0a2bc684e99d491d04bd14a91b49bc196b3b81b537320cd872e5568aaa8aec34744f4f15392d9424a81ac6f0 SHA512 d69686da7cab33099b13cfb5ab876fc2db047f79aa01bf8150507ec41321b4c6c092f81623823b89916c70a1a24c4a102f77b1001c5caa721ff4c0c52e0630d2
25
26 diff --git a/app-misc/openrgb/openrgb-0.7-r1.ebuild b/app-misc/openrgb/openrgb-0.7-r1.ebuild
27 deleted file mode 100644
28 index fc7b38dbf97b..000000000000
29 --- a/app-misc/openrgb/openrgb-0.7-r1.ebuild
30 +++ /dev/null
31 @@ -1,81 +0,0 @@
32 -# Copyright 2020-2023 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=8
36 -
37 -inherit flag-o-matic qmake-utils udev
38 -
39 -if [[ ${PV} == *9999* ]]; then
40 - inherit git-r3
41 - EGIT_REPO_URI=${EGIT_REPO_URI:-"https://gitlab.com/CalcProgrammer1/OpenRGB"}
42 -else
43 - SRC_URI="https://gitlab.com/CalcProgrammer1/OpenRGB/-/archive/release_${PV}/OpenRGB-release_${PV}.tar.bz2"
44 - S="${WORKDIR}/OpenRGB-release_${PV}"
45 - KEYWORDS="amd64 ~x86"
46 - PATCHES=(
47 - "${FILESDIR}"/OpenRGB-0.5-build-system.patch
48 - )
49 -fi
50 -
51 -DESCRIPTION="Open source RGB lighting control that doesn't depend on manufacturer software"
52 -HOMEPAGE="https://openrgb.org https://gitlab.com/CalcProgrammer1/OpenRGB/"
53 -LICENSE="GPL-2"
54 -# subslot is OPENRGB_PLUGIN_API_VERSION from https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/master/OpenRGBPluginInterface.h
55 -SLOT="0/2"
56 -
57 -RDEPEND="
58 - dev-libs/hidapi
59 - dev-qt/qtcore:5
60 - dev-qt/qtgui:5
61 - dev-qt/qtwidgets:5
62 - net-libs/mbedtls:=
63 - virtual/libusb:1
64 -"
65 -DEPEND="
66 - ${RDEPEND}
67 - dev-cpp/nlohmann_json
68 -"
69 -BDEPEND="
70 - virtual/pkgconfig
71 -"
72 -
73 -PATCHES+=(
74 - "${FILESDIR}"/OpenRGB-0.7-plugins.patch
75 - "${FILESDIR}"/OpenRGB-0.7-r1-udev.patch
76 - "${FILESDIR}"/OpenRGB-0.7-json.patch
77 -)
78 -
79 -src_prepare() {
80 - default
81 - rm -r dependencies/{hidapi,libusb,json,mbedtls}* || die
82 -}
83 -
84 -src_configure() {
85 - # Some plugins require symbols defined in the main binary.
86 - # The official build system bundles OpenRGB as a submodule instead, and
87 - # compiles the .cpp file again.
88 - append-ldflags -Wl,--export-dynamic
89 -
90 - eqmake5 \
91 - INCLUDEPATH+="${ESYSROOT}/usr/include/nlohmann" \
92 - DEFINES+="GENTOO_PLUGINS_DIR=\\\\\"\\\"${EPREFIX}/usr/$(get_libdir)/OpenRGB/plugins\\\\\"\\\""
93 -}
94 -
95 -src_install() {
96 - emake INSTALL_ROOT="${ED}" install
97 -
98 - dodoc README.md OpenRGB.patch
99 - udev_dorules 60-openrgb.rules
100 -
101 - # This is for plugins. Upstream doesn't install any headers at all.
102 - insinto /usr/include/OpenRGB
103 - find . -name '*.h' -exec cp --parents '{}' "${ED}/usr/include/OpenRGB/" ';' || die
104 -}
105 -
106 -pkg_postinst() {
107 - udev_reload
108 -}
109 -
110 -pkg_postrm() {
111 - udev_reload
112 -}
113
114 diff --git a/app-misc/openrgb/openrgb-0.7.ebuild b/app-misc/openrgb/openrgb-0.7.ebuild
115 deleted file mode 100644
116 index a8ef5e62540f..000000000000
117 --- a/app-misc/openrgb/openrgb-0.7.ebuild
118 +++ /dev/null
119 @@ -1,72 +0,0 @@
120 -# Copyright 2020-2022 Gentoo Authors
121 -# Distributed under the terms of the GNU General Public License v2
122 -
123 -EAPI=8
124 -
125 -inherit flag-o-matic qmake-utils
126 -
127 -if [[ ${PV} == *9999* ]]; then
128 - inherit git-r3
129 - EGIT_REPO_URI=${EGIT_REPO_URI:-"https://gitlab.com/CalcProgrammer1/OpenRGB"}
130 -else
131 - SRC_URI="https://gitlab.com/CalcProgrammer1/OpenRGB/-/archive/release_${PV}/OpenRGB-release_${PV}.tar.bz2"
132 - S="${WORKDIR}/OpenRGB-release_${PV}"
133 - KEYWORDS="amd64 ~x86"
134 - PATCHES=(
135 - "${FILESDIR}"/OpenRGB-0.5-build-system.patch
136 - )
137 -fi
138 -
139 -DESCRIPTION="Open source RGB lighting control that doesn't depend on manufacturer software"
140 -HOMEPAGE="https://openrgb.org https://gitlab.com/CalcProgrammer1/OpenRGB/"
141 -LICENSE="GPL-2"
142 -# subslot is OPENRGB_PLUGIN_API_VERSION from https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/master/OpenRGBPluginInterface.h
143 -SLOT="0/2"
144 -
145 -RDEPEND="
146 - dev-libs/hidapi
147 - dev-qt/qtcore:5
148 - dev-qt/qtgui:5
149 - dev-qt/qtwidgets:5
150 - net-libs/mbedtls:=
151 - virtual/libusb:1
152 -"
153 -DEPEND="
154 - ${RDEPEND}
155 - dev-cpp/nlohmann_json
156 -"
157 -BDEPEND="
158 - virtual/pkgconfig
159 -"
160 -
161 -PATCHES+=(
162 - "${FILESDIR}"/OpenRGB-0.7-plugins.patch
163 - "${FILESDIR}"/OpenRGB-0.7-udev.patch
164 - "${FILESDIR}"/OpenRGB-0.7-json.patch
165 -)
166 -
167 -src_prepare() {
168 - default
169 - rm -r dependencies/{hidapi,libusb,json,mbedtls}* || die
170 -}
171 -
172 -src_configure() {
173 - # Some plugins require symbols defined in the main binary.
174 - # The official build system bundles OpenRGB as a submodule instead, and
175 - # compiles the .cpp file again.
176 - append-ldflags -Wl,--export-dynamic
177 -
178 - eqmake5 \
179 - INCLUDEPATH+="${ESYSROOT}/usr/include/nlohmann" \
180 - DEFINES+="GENTOO_PLUGINS_DIR=\\\\\"\\\"${EPREFIX}/usr/$(get_libdir)/OpenRGB/plugins\\\\\"\\\""
181 -}
182 -
183 -src_install() {
184 - emake INSTALL_ROOT="${ED}" install
185 -
186 - dodoc README.md OpenRGB.patch
187 -
188 - # This is for plugins. Upstream doesn't install any headers at all.
189 - insinto /usr/include/OpenRGB
190 - find . -name '*.h' -exec cp --parents '{}' "${ED}/usr/include/OpenRGB/" ';' || die
191 -}