summaryrefslogtreecommitdiff
path: root/app-misc/openrgb/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-06-24 14:47:38 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-06-24 14:47:38 +0100
commitb4d43e8c611df4a8061b6f88d9e9f6b1e3c83903 (patch)
tree911928b566777494d08ebe2c16cb64f15af71901 /app-misc/openrgb/files
parent61f10f985e19dfe20a4d9552902625edd5b6eabb (diff)
gentoo resync : 24.06.2021
Diffstat (limited to 'app-misc/openrgb/files')
-rw-r--r--app-misc/openrgb/files/OpenRGB-0.5-build-system.patch13
-rw-r--r--app-misc/openrgb/files/OpenRGB-0.6-pkgconf.patch11
-rw-r--r--app-misc/openrgb/files/OpenRGB-0.6-plugins.patch24
3 files changed, 48 insertions, 0 deletions
diff --git a/app-misc/openrgb/files/OpenRGB-0.5-build-system.patch b/app-misc/openrgb/files/OpenRGB-0.5-build-system.patch
new file mode 100644
index 000000000000..fe805988af5d
--- /dev/null
+++ b/app-misc/openrgb/files/OpenRGB-0.5-build-system.patch
@@ -0,0 +1,13 @@
+diff --git a/OpenRGB.pro b/OpenRGB.pro
+index 91e0079..7f279dd 100644
+--- a/OpenRGB.pro
++++ b/OpenRGB.pro
+@@ -26,8 +26,5 @@ TEMPLATE = app
+ win32:BUILDDATE = $$system(date /t)
+ unix:BUILDDATE = $$system(date -R -d "@${SOURCE_DATE_EPOCH:-$(date +%s)}")
+-GIT_COMMIT_ID = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ rev-parse HEAD)
+-GIT_COMMIT_DATE = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ show -s --format=%ci HEAD)
+-GIT_BRANCH = $$system(git --git-dir $$_PRO_FILE_PWD_/.git --work-tree $$_PRO_FILE_PWD_ rev-parse --abbrev-ref HEAD)
+
+ DEFINES += \
+ VERSION_STRING=\\"\"\"$$VERSION\\"\"\" \
diff --git a/app-misc/openrgb/files/OpenRGB-0.6-pkgconf.patch b/app-misc/openrgb/files/OpenRGB-0.6-pkgconf.patch
new file mode 100644
index 000000000000..380b1091d225
--- /dev/null
+++ b/app-misc/openrgb/files/OpenRGB-0.6-pkgconf.patch
@@ -0,0 +1,11 @@
+--- a/OpenRGB.pro 2021-06-06 22:51:12.022561718 +0100
++++ b/OpenRGB.pro 2021-06-06 22:51:24.466105358 +0100
+@@ -837,7 +837,7 @@ unix:!macx {
+ # hidapi-hidraw >= 0.10.1 supports USAGE/USAGE_PAGE #
+ # Define USE_HID_USAGE if hidapi-hidraw supports it #
+ #---------------------------------------------------------------------------------------#
+- HIDAPI_HIDRAW_VERSION = $$system(pkgconf --modversion hidapi-hidraw)
++ HIDAPI_HIDRAW_VERSION = $$system(pkg-config --modversion hidapi-hidraw)
+ if(versionAtLeast(HIDAPI_HIDRAW_VERSION, "0.10.1")) {
+ DEFINES += USE_HID_USAGE
+ }
diff --git a/app-misc/openrgb/files/OpenRGB-0.6-plugins.patch b/app-misc/openrgb/files/OpenRGB-0.6-plugins.patch
new file mode 100644
index 000000000000..ccc83de27ebe
--- /dev/null
+++ b/app-misc/openrgb/files/OpenRGB-0.6-plugins.patch
@@ -0,0 +1,24 @@
+Allow installation of plugins not only in ~/.config
+
+Used by app-misc/openrgb-plugin-* packages
+
+diff --git a/PluginManager.cpp b/PluginManager.cpp
+index b424b8b..991fb75 100644
+--- a/PluginManager.cpp
++++ b/PluginManager.cpp
+@@ -15,7 +15,8 @@ void PluginManager::ScanAndLoadPlugins(bool dark_theme)
+ \*--------------------------------------------------------------------------------------*/
+ OpenRGBPluginInterface *OpenRGBPlugin = nullptr;
+
+- const QDir pluginsDir = QString().fromStdString(ResourceManager::get()->GetConfigurationDirectory()) + "plugins/";
++ for (const QDir pluginsDir : {QString().fromStdString(ResourceManager::get()->GetConfigurationDirectory()) + "plugins/",
++ QString().fromStdString(GENTOO_PLUGINS_DIR)}) {
+
+ std::vector<std::string> FileList;
+
+@@ -54,4 +56,5 @@ void PluginManager::ScanAndLoadPlugins(bool dark_theme)
+ std::cout << loader.errorString().toStdString() << std::endl;
+ }
+ }
++ }
+ }