commit:     4199f27f21dafc1b9fba9c127f3537b094180a0c
Author:     Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Mon Sep 15 23:09:31 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Sep 17 21:20:25 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4199f27f

app-misc/openrgb-plugin-visualmap: add 1.0_rc2

Bug: https://bugs.gentoo.org/942035
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
Part-of: https://github.com/gentoo/gentoo/pull/43803
Closes: https://github.com/gentoo/gentoo/pull/43803
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 app-misc/openrgb-plugin-visualmap/Manifest         |  1 +
 .../openrgb-plugin-visualmap-1.0_rc2.ebuild        | 52 ++++++++++++++++++++++
 2 files changed, 53 insertions(+)

diff --git a/app-misc/openrgb-plugin-visualmap/Manifest 
b/app-misc/openrgb-plugin-visualmap/Manifest
index 02b519489ddc..991b0c426fda 100644
--- a/app-misc/openrgb-plugin-visualmap/Manifest
+++ b/app-misc/openrgb-plugin-visualmap/Manifest
@@ -1,2 +1,3 @@
 DIST OpenRGBVisualMapPlugin-release_0.9.tar.bz2 69646 BLAKE2B 
2ae3c190c7b7347fadf62b4a133626da09e9ad90c1dc5c99decf960b115bff587e5d14d8e45ab65781171ebefdd29825422b9b709795d3d2cc735e8d0e061a69
 SHA512 
ef99263cbed900c1f541982e7349bda03212dfbb8873eb52db00f81cbe5823b7c4e2193de664dd7930da73e11a601b1b595b214629a813e1efda6e7184599521
+DIST OpenRGBVisualMapPlugin-release_candidate_1.0rc2.tar.bz2 142376 BLAKE2B 
99c35b877d4a51ff359af60f84f33c76bad75ed1b7165126c878ce2d14ab42330fddc76cadf0d41249b84ed3f188772daa65c1562c1be094ac703e8434fff7c8
 SHA512 
be7e6c2f8b3b134964f9b92870b02c2f655d78d92182fff527cec33b74ea866b8b8e10c77226275a42aadeb5ff433bff0512a62c0c4b453cda91600ee9fd98ad
 DIST openrgb-plugin-visualmap-0.9_p20250723.tar.bz2 142388 BLAKE2B 
34012e03b2929f90b954036743245bb6c0c9af3d65b06bb4296388441df0100878c93a2e68b270f289ead73d594e665387d41c72560933fc20cea0a554c91ba6
 SHA512 
7f583f5ddfa20f8ad9420d5761d00e1cc9991f8dea8f1cde2b9b8733eb00a4d98eff94f1e78feafea74da9c7896a37571392d10e75f391809705a71d5c95c4d7

diff --git 
a/app-misc/openrgb-plugin-visualmap/openrgb-plugin-visualmap-1.0_rc2.ebuild 
b/app-misc/openrgb-plugin-visualmap/openrgb-plugin-visualmap-1.0_rc2.ebuild
new file mode 100644
index 000000000000..bfa2b345eea8
--- /dev/null
+++ b/app-misc/openrgb-plugin-visualmap/openrgb-plugin-visualmap-1.0_rc2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 2020-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit qmake-utils
+
+DESCRIPTION="Plugin for OpenRGB to create virtual devices out of multiple real 
ones"
+HOMEPAGE="https://gitlab.com/OpenRGBDevelopers/OpenRGBVisualMapPlugin";
+
+MY_PV=$(ver_rs 2 "")
+SRC_URI="https://gitlab.com/OpenRGBDevelopers/OpenRGBVisualMapPlugin/-/archive/release_candidate_${MY_PV}/OpenRGBVisualMapPlugin-release_candidate_${MY_PV}.tar.bz2";
+S="${WORKDIR}/OpenRGBVisualMapPlugin-release_candidate_${MY_PV}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       >=app-misc/openrgb-0.9_p20250802:=
+       dev-qt/qtbase:6[gui,widgets]
+"
+DEPEND="
+       ${RDEPEND}
+       dev-cpp/nlohmann_json
+"
+
+PATCHES=(
+       "${FILESDIR}/openrgb-plugin-visualmap-0.9_p20250723-dep.patch"
+       "${FILESDIR}/openrgb-plugin-visualmap-0.9_p20250723-build-system.patch"
+)
+
+src_prepare() {
+       default
+       rm -r OpenRGB || die
+       ln -s "${ESYSROOT}/usr/include/OpenRGB" . || die
+       sed -e '/^GIT_/d' -i *.pro || die
+
+       # Because of -Wl,--export-dynamic in app-misc/openrgb, this 
resources.qrc
+       # conflicts with the openrgb's one. So rename it.
+       sed -e 's/resources.qrc/resources_visualmap_plugin.qrc/' -i *.pro || die
+       mv --no-clobber resources.qrc resources_visualmap_plugin.qrc || die
+}
+
+src_configure() {
+       eqmake6 INCLUDEPATH+="${ESYSROOT}/usr/include/nlohmann"
+}
+
+src_install() {
+       exeinto /usr/$(get_libdir)/openrgb/plugins
+       doexe libOpenRGBVisualMapPlugin.so
+}

Reply via email to