diff --git a/app-misc/openrgb-plugin-effects/Manifest b/app-misc/openrgb-plugin-effects/Manifest index 3ea0ccd6c3a7c..5f43d11ee4221 100644 --- a/app-misc/openrgb-plugin-effects/Manifest +++ b/app-misc/openrgb-plugin-effects/Manifest @@ -1,3 +1,4 @@ DIST OpenRGBEffectsPlugin-release_0.9.tar.bz2 254816 BLAKE2B e406cb70c1a64f2572d075b5d6ca6fa3499060ec33b49264b63d4f43c989adb8f2022b3b7d79a59bd5c82187b29331555385712a6fbcb25b01e5341c23cbd922 SHA512 d20f4890889768857219b79db245804b720b1710483c3ea3f1f6b462c4a172f521c727ad1fd3127fed9724be56dc45232c3a6d23772ec8c9d7e203bb6a6ad8c8 DIST QCodeEditor-2021-08-17.tar.gz 95099 BLAKE2B d9eab343c956288b098c9fad4b523615beb7c1a860a00b8c84a2a71f40398fd2e82c335c5d82bb5bc2d15d35bad698a780ff4d1d3202f7555a93120e8a2d906a SHA512 4f8af3a45d3b16d06bc6e4b795f005cf917a80add8f738454751a47d40747df1215ba9b4e05a0f654251bc006521151f8a256c2e41be05c72abae4e55f383b54 DIST SimplexNoise-2019-12-03.tar.gz 781353 BLAKE2B ce05f78b58439d57e369b8b3944b8d392bec80d579767cb1683befe5c56b90dcf40d405ff75d4541e6c17659f6e1abc83f5d3444fbe641724d21ed509e439854 SHA512 b1e27d6630a902006636ec31c3b1cead1857b255edc8ae8db74cdfee25300337200be48264c6adc0e2c0e39a3693e361d448e61ae62d2f0b700374b264d5e5cd +DIST openrgb-plugin-effects-0.9_p20250723.tar.bz2 328184 BLAKE2B 0d15e63b8b957c448fe0acb42e3dce59869f55c7cdfb8bbbba376cce6bc00b1a10927eff7c44588965a1c6583b14f4e7591e18dfd78d8ac55d3735daa522b654 SHA512 10599e595ce91cb62f1406c10e454e4a8215ecb6efb9e43256acf8e86e55c82be188c20373001ea51b6dbd2a3c67e7946d074256ba72b6b96d75d51b8016f771 diff --git a/app-misc/openrgb-plugin-effects/files/openrgb-plugin-effects-0.9_p20250723-build-system.patch b/app-misc/openrgb-plugin-effects/files/openrgb-plugin-effects-0.9_p20250723-build-system.patch new file mode 100644 index 0000000000000..ea41a9c9c76f1 --- /dev/null +++ b/app-misc/openrgb-plugin-effects/files/openrgb-plugin-effects-0.9_p20250723-build-system.patch @@ -0,0 +1,13 @@ +--- a/OpenRGBEffectsPlugin.pro ++++ b/OpenRGBEffectsPlugin.pro +@@ -31,10 +31,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-effects/files/openrgb-plugin-effects-0.9_p20250723-dep.patch b/app-misc/openrgb-plugin-effects/files/openrgb-plugin-effects-0.9_p20250723-dep.patch new file mode 100644 index 0000000000000..cca5d28510912 --- /dev/null +++ b/app-misc/openrgb-plugin-effects/files/openrgb-plugin-effects-0.9_p20250723-dep.patch @@ -0,0 +1,21 @@ +Fix dependency on app-misc/openrgb + +--- a/OpenRGBEffectsPlugin.pro ++++ b/OpenRGBEffectsPlugin.pro +@@ -107,16 +107,6 @@ HEADERS += + 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 \ +- + + + #-----------------------------------------------------------------------------------------------# diff --git a/app-misc/openrgb-plugin-effects/openrgb-plugin-effects-0.9_p20250723.ebuild b/app-misc/openrgb-plugin-effects/openrgb-plugin-effects-0.9_p20250723.ebuild new file mode 100644 index 0000000000000..f55330f56a769 --- /dev/null +++ b/app-misc/openrgb-plugin-effects/openrgb-plugin-effects-0.9_p20250723.ebuild @@ -0,0 +1,76 @@ +# Copyright 2020-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic qmake-utils + +DESCRIPTION="Plugin for OpenRGB with various Effects that can be synced across devices" +HOMEPAGE="https://gitlab.com/OpenRGBDevelopers/OpenRGBEffectsPlugin" + +MY_COMMIT="ee3690437020c19ccd73dd42bea193a8c0709752" +MY_NOISE_COMMIT="97e62c5b5e26c8edabdc29a6b0a277192be3746c" +MY_QCODEEDITOR_COMMIT="a9aab24c7970a38d14bc79939306d9d3ba78cf61" +SRC_URI=" + https://gitlab.com/OpenRGBDevelopers/OpenRGBEffectsPlugin/-/archive/${MY_COMMIT}/OpenRGBEffectsPlugin-${MY_COMMIT}.tar.bz2 -> ${P}.tar.bz2 + https://github.com/SRombauts/SimplexNoise/archive/${MY_NOISE_COMMIT}.tar.gz -> SimplexNoise-2019-12-03.tar.gz + https://github.com/justxi/QCodeEditor/archive/${MY_QCODEEDITOR_COMMIT}.tar.gz -> QCodeEditor-2021-08-17.tar.gz +" +S="${WORKDIR}/OpenRGBEffectsPlugin-${MY_COMMIT}" + +LICENSE="GPL-2 MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=app-misc/openrgb-0.9_p20250802:= + dev-libs/hidapi + dev-qt/qtbase:6[gui,opengl,widgets,-gles2-only] + dev-qt/qt5compat:6 + media-libs/libglvnd + media-libs/openal + media-video/pipewire:= +" +DEPEND=" + ${RDEPEND} + dev-cpp/nlohmann_json +" + +PATCHES=( + "${FILESDIR}/${P}-dep.patch" + "${FILESDIR}/${P}-build-system.patch" +) + +src_prepare() { + default + + filter-lto # Bug 927749 + + rm -r OpenRGB || die + ln -s "${ESYSROOT}/usr/include/OpenRGB" . || die + sed -e '/^GIT_/d' -i *.pro || die + + rmdir Dependencies/SimplexNoise || die + ln -s "${WORKDIR}/SimplexNoise-${MY_NOISE_COMMIT}" Dependencies/SimplexNoise || die + + rmdir Dependencies/QCodeEditor || die + ln -s "${WORKDIR}/QCodeEditor-${MY_QCODEEDITOR_COMMIT}" Dependencies/QCodeEditor || 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_effects_plugin.qrc/' -i *.pro || die + mv --no-clobber resources.qrc resources_effects_plugin.qrc || die +} + +src_configure() { + eqmake6 INCLUDEPATH+="${ESYSROOT}/usr/include/nlohmann" \ + INCLUDEPATH+="${ESYSROOT}/usr/include/OpenRGB/SPDAccessor" \ + INCLUDEPATH+="${ESYSROOT}/usr/include/OpenRGB/hidapi_wrapper" \ + CONFIG+=link_pkgconfig \ + PKGCONFIG+=hidapi-hidraw +} + +src_install() { + exeinto /usr/$(get_libdir)/openrgb/plugins + doexe libOpenRGBEffectsPlugin.so +}