From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/openrgb-plugin-visualmap/files/, app-misc/openrgb-plugin-visualmap/
Date: Sun, 17 Aug 2025 07:54:59 +0000 (UTC) [thread overview]
Message-ID: <1755417291.3dc6c2ec14fbb54e12e8f5923b9618793e7f6440.asturm@gentoo> (raw)
commit: 3dc6c2ec14fbb54e12e8f5923b9618793e7f6440
Author: Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Wed Mar 19 16:34:27 2025 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Aug 17 07:54:51 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3dc6c2ec
app-misc/openrgb-plugin-visualmap: add snapshot with qt6 support
Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
Bug: https://bugs.gentoo.org/942035
Part-of: https://github.com/gentoo/gentoo/pull/41163
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
app-misc/openrgb-plugin-visualmap/Manifest | 1 +
.../files/openrgb-plugin-visualmap-0.9-dep.patch | 2 +
...ugin-visualmap-0.9_p20250723-build-system.patch | 15 +++++++
...penrgb-plugin-visualmap-0.9_p20250723-dep.patch | 20 +++++++++
.../openrgb-plugin-visualmap-0.9_p20250723.ebuild | 52 ++++++++++++++++++++++
5 files changed, 90 insertions(+)
diff --git a/app-misc/openrgb-plugin-visualmap/Manifest b/app-misc/openrgb-plugin-visualmap/Manifest
index 0346585038d9..02b519489ddc 100644
--- a/app-misc/openrgb-plugin-visualmap/Manifest
+++ b/app-misc/openrgb-plugin-visualmap/Manifest
@@ -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
diff --git a/app-misc/openrgb-plugin-visualmap/files/openrgb-plugin-visualmap-0.9-dep.patch b/app-misc/openrgb-plugin-visualmap/files/openrgb-plugin-visualmap-0.9-dep.patch
index ce7b3824f950..82e72a27817a 100644
--- a/app-misc/openrgb-plugin-visualmap/files/openrgb-plugin-visualmap-0.9-dep.patch
+++ b/app-misc/openrgb-plugin-visualmap/files/openrgb-plugin-visualmap-0.9-dep.patch
@@ -1,3 +1,5 @@
+Fix dependency on app-misc/openrgb
+
--- a/OpenRGBVisualMapPlugin.pro
+++ b/OpenRGBVisualMapPlugin.pro
@@ -99,6 +99,5 @@ HEADERS +=
diff --git a/app-misc/openrgb-plugin-visualmap/files/openrgb-plugin-visualmap-0.9_p20250723-build-system.patch b/app-misc/openrgb-plugin-visualmap/files/openrgb-plugin-visualmap-0.9_p20250723-build-system.patch
new file mode 100644
index 000000000000..56cc6f13f9df
--- /dev/null
+++ b/app-misc/openrgb-plugin-visualmap/files/openrgb-plugin-visualmap-0.9_p20250723-build-system.patch
@@ -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
diff --git a/app-misc/openrgb-plugin-visualmap/files/openrgb-plugin-visualmap-0.9_p20250723-dep.patch b/app-misc/openrgb-plugin-visualmap/files/openrgb-plugin-visualmap-0.9_p20250723-dep.patch
new file mode 100644
index 000000000000..93f35be25df9
--- /dev/null
+++ b/app-misc/openrgb-plugin-visualmap/files/openrgb-plugin-visualmap-0.9_p20250723-dep.patch
@@ -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 #
diff --git a/app-misc/openrgb-plugin-visualmap/openrgb-plugin-visualmap-0.9_p20250723.ebuild b/app-misc/openrgb-plugin-visualmap/openrgb-plugin-visualmap-0.9_p20250723.ebuild
new file mode 100644
index 000000000000..e26153cd7b3e
--- /dev/null
+++ b/app-misc/openrgb-plugin-visualmap/openrgb-plugin-visualmap-0.9_p20250723.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_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
+}
next reply other threads:[~2025-08-17 7:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-17 7:54 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-07-17 12:33 [gentoo-commits] repo/gentoo:master commit in: app-misc/openrgb-plugin-visualmap/files/, app-misc/openrgb-plugin-visualmap/ Maciej Barć
2023-01-05 14:31 Maciej Barć
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1755417291.3dc6c2ec14fbb54e12e8f5923b9618793e7f6440.asturm@gentoo \
--to=asturm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox