commit:     cea9a32d1acd79e89520b6aa6f6a550f3372af11
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 26 16:16:48 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sun Nov 27 21:09:28 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cea9a32d

app-misc/openrgb: update patch in 9999 ebuild

Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/28439
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 app-misc/openrgb/files/OpenRGB-0.8-plugins.patch | 26 ++++++++++++++++++++++++
 app-misc/openrgb/openrgb-9999.ebuild             |  2 +-
 2 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/app-misc/openrgb/files/OpenRGB-0.8-plugins.patch 
b/app-misc/openrgb/files/OpenRGB-0.8-plugins.patch
new file mode 100644
index 000000000000..a2d02cde3c7f
--- /dev/null
+++ b/app-misc/openrgb/files/OpenRGB-0.8-plugins.patch
@@ -0,0 +1,26 @@
+Allow installation of plugins not only in ~/.config
+
+Used by app-misc/openrgb-plugin-* packages
+
+diff --git a/PluginManager.cpp b/PluginManager.cpp
+index 6ccad72c..7b12f32e 100644
+--- a/PluginManager.cpp
++++ b/PluginManager.cpp
+@@ -41,7 +41,8 @@ void PluginManager::ScanAndLoadPlugins()
+     | The plugins directory is a directory named "plugins" in   |
+     | the configuration directory                               |
+     \*---------------------------------------------------------*/
+-    const QDir plugins_dir = 
QString(ResourceManager::get()->GetConfigurationDirectory().c_str()).append(plugins_path);
++    for (const QDir plugins_dir : 
{QString(ResourceManager::get()->GetConfigurationDirectory().c_str()).append(plugins_path),
++                                QString().fromStdString(GENTOO_PLUGINS_DIR)}) 
{
+     LOG_INFO("[PluginManager] Scanning plugin directory: %s", 
plugins_dir.absolutePath().toStdString().c_str());
+ 
+     /*---------------------------------------------------------*\
+@@ -64,6 +65,7 @@ void PluginManager::ScanAndLoadPlugins()
+ 
+         AddPlugin(plugin_path);
+     }
++    }
+ }
+ 
+ void PluginManager::AddPlugin(std::string path)

diff --git a/app-misc/openrgb/openrgb-9999.ebuild 
b/app-misc/openrgb/openrgb-9999.ebuild
index 44c450e3c857..74083c048810 100644
--- a/app-misc/openrgb/openrgb-9999.ebuild
+++ b/app-misc/openrgb/openrgb-9999.ebuild
@@ -40,7 +40,7 @@ BDEPEND="
 "
 
 PATCHES+=(
-       "${FILESDIR}"/OpenRGB-0.7-plugins.patch
+       "${FILESDIR}"/OpenRGB-0.8-plugins.patch
        "${FILESDIR}"/OpenRGB-0.7-r1-udev.patch
 )
 

Reply via email to