diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-07-18 00:58:25 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-07-18 00:58:25 +0100 |
commit | 5e0a5ca921524f8859808527a57655eec16efa52 (patch) | |
tree | 7c58411b1e81478df4e20082a6adec2553c24c5c /app-misc/openrgb-plugin-effects/openrgb-plugin-effects-0.9.ebuild | |
parent | 4c16e0a214824f15f09396e359db4f1f5c086fec (diff) |
gentoo auto-resync : 18:07:2023 - 00:58:24
Diffstat (limited to 'app-misc/openrgb-plugin-effects/openrgb-plugin-effects-0.9.ebuild')
-rw-r--r-- | app-misc/openrgb-plugin-effects/openrgb-plugin-effects-0.9.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/app-misc/openrgb-plugin-effects/openrgb-plugin-effects-0.9.ebuild b/app-misc/openrgb-plugin-effects/openrgb-plugin-effects-0.9.ebuild new file mode 100644 index 000000000000..07fbaa9b65c8 --- /dev/null +++ b/app-misc/openrgb-plugin-effects/openrgb-plugin-effects-0.9.ebuild @@ -0,0 +1,66 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit qmake-utils + +DESCRIPTION="Plugin for OpenRGB with various Effects that can be synced across devices" +HOMEPAGE="https://gitlab.com/OpenRGBDevelopers/OpenRGBEffectsPlugin" + +MY_NOISE_COMMIT="97e62c5b5e26c8edabdc29a6b0a277192be3746c" +MY_QCODEEDITOR_COMMIT="a9aab24c7970a38d14bc79939306d9d3ba78cf61" +SRC_URI=" + https://gitlab.com/OpenRGBDevelopers/OpenRGBEffectsPlugin/-/archive/release_${PV}/OpenRGBEffectsPlugin-release_${PV}.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-release_${PV}" + +LICENSE="GPL-2 MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=app-misc/openrgb-0.9:= + dev-qt/qtcore:5 + dev-qt/qtgui:5[-gles2-only] + dev-qt/qtwidgets:5[-gles2-only] + media-libs/openal +" +DEPEND=" + ${RDEPEND} + dev-cpp/nlohmann_json +" + +PATCHES=( + "${FILESDIR}/openrgb-plugin-effects-0.9-dep.patch" +) + +src_prepare() { + default + 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() { + eqmake5 \ + INCLUDEPATH+="${ESYSROOT}/usr/include/nlohmann" +} + +src_install() { + exeinto /usr/$(get_libdir)/OpenRGB/plugins + doexe libOpenRGBEffectsPlugin.so.1.0.0 +} |