app-misc/openrgb-plugin-visualmap: add snapshot with qt6 support

Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Bug: https://bugs.gentoo.org/942035
Part-of: https://github.com/gentoo/gentoo/pull/41163
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Alexey Sokolov
2025-03-19 16:34:27 +00:00
committed by Andreas Sturmlechner
parent 969671fe07
commit 3dc6c2ec14
5 changed files with 90 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST OpenRGBVisualMapPlugin-release_0.9.tar.bz2 69646 BLAKE2B 2ae3c190c7b7347fadf62b4a133626da09e9ad90c1dc5c99decf960b115bff587e5d14d8e45ab65781171ebefdd29825422b9b709795d3d2cc735e8d0e061a69 SHA512 ef99263cbed900c1f541982e7349bda03212dfbb8873eb52db00f81cbe5823b7c4e2193de664dd7930da73e11a601b1b595b214629a813e1efda6e7184599521
DIST openrgb-plugin-visualmap-0.9_p20250723.tar.bz2 142388 BLAKE2B 34012e03b2929f90b954036743245bb6c0c9af3d65b06bb4296388441df0100878c93a2e68b270f289ead73d594e665387d41c72560933fc20cea0a554c91ba6 SHA512 7f583f5ddfa20f8ad9420d5761d00e1cc9991f8dea8f1cde2b9b8733eb00a4d98eff94f1e78feafea74da9c7896a37571392d10e75f391809705a71d5c95c4d7

View File

@@ -1,3 +1,5 @@
Fix dependency on app-misc/openrgb
--- a/OpenRGBVisualMapPlugin.pro
+++ b/OpenRGBVisualMapPlugin.pro
@@ -99,6 +99,5 @@ HEADERS +=

View File

@@ -0,0 +1,15 @@
Avoid running `git`
--- a/OpenRGBVisualMapPlugin.pro
+++ b/OpenRGBVisualMapPlugin.pro
@@ -27,10 +27,7 @@ MAJOR = 0
MINOR = 9
SUFFIX = git
-SHORTHASH = $$system("git rev-parse --short=7 HEAD")
LASTTAG = "release_"$$MAJOR"."$$MINOR
-COMMAND = "git rev-list --count "$$LASTTAG"..HEAD"
-COMMITS = $$system($$COMMAND)
VERSION_NUM = $$MAJOR"."$$MINOR"."$$COMMITS
VERSION_STR = $$MAJOR"."$$MINOR

View File

@@ -0,0 +1,20 @@
Fix dependency on app-misc/openrgb
--- a/OpenRGBVisualMapPlugin.pro
+++ b/OpenRGBVisualMapPlugin.pro
@@ -100,15 +100,6 @@ HEADERS +=
OpenRGB/OpenRGBPluginInterface.h \
OpenRGB/ResourceManagerInterface.h \
-SOURCES += \
- OpenRGB/RGBController/RGBController.cpp \
- OpenRGB/RGBController/RGBController_Network.cpp \
- OpenRGB/NetworkServer.cpp \
- OpenRGB/NetworkClient.cpp \
- OpenRGB/NetworkProtocol.cpp \
- OpenRGB/LogManager.cpp \
- OpenRGB/net_port/net_port.cpp \
- OpenRGB/qt/hsv.cpp
#-------------------------------------------------------------------#
# Includes #

View File

@@ -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_COMMIT="14cfa5aa28e708b7419de249b672122b3239aa72"
SRC_URI="https://gitlab.com/OpenRGBDevelopers/OpenRGBVisualMapPlugin/-/archive/${MY_COMMIT}/OpenRGBVisualMapPlugin-${MY_COMMIT}.tar.bz2 -> ${P}.tar.bz2"
S="${WORKDIR}/OpenRGBVisualMapPlugin-${MY_COMMIT}"
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}/${P}-dep.patch"
"${FILESDIR}/${P}-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
}