diff options
author | Alexey Sokolov <alexey+gentoo@asokolov.org> | 2022-01-11 21:43:29 +0000 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2022-01-11 14:15:43 -0800 |
commit | 5be759e46625ccc5f76dfce36ef84de2de9c3ebf (patch) | |
tree | 4f22e5a407c9006662cdf5b1a37873ecc5a8468c /app-misc | |
parent | app-admin/awscli: Stabilize 1.22.23 ALLARCHES, #831034 (diff) | |
download | gentoo-5be759e46625ccc5f76dfce36ef84de2de9c3ebf.tar.gz gentoo-5be759e46625ccc5f76dfce36ef84de2de9c3ebf.tar.bz2 gentoo-5be759e46625ccc5f76dfce36ef84de2de9c3ebf.zip |
app-misc/openrgb: version 0.7
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/openrgb/Manifest | 1 | ||||
-rw-r--r-- | app-misc/openrgb/files/OpenRGB-0.7-udev.patch | 16 | ||||
-rw-r--r-- | app-misc/openrgb/openrgb-0.7.ebuild | 71 |
3 files changed, 88 insertions, 0 deletions
diff --git a/app-misc/openrgb/Manifest b/app-misc/openrgb/Manifest index 319d0a7ed289..7b8c113774cc 100644 --- a/app-misc/openrgb/Manifest +++ b/app-misc/openrgb/Manifest @@ -1 +1,2 @@ DIST OpenRGB-release_0.6.tar.bz2 24301305 BLAKE2B 20d8f8f7a3189fd5f94b008b11c869d2a8584dc038322e4ac8649c7b57172637133dd18c05ed8eaa6907ba7c097280727a9e7ce2e676250146044bbc2d66921e SHA512 9eb090e1cab121308f3adea8c50feb819a19cb52feff29e45ec24dfbb37013421f53d2ac614496781af1ef4e612dd41c1abafec509430df7d0715aba59ee5a32 +DIST OpenRGB-release_0.7.tar.bz2 28053114 BLAKE2B dfab42fca654478ab359e6e46133fc20a4bf32aca35d1b2f475d3e4e5e218f35c7e1f03be15381b0e8d874ea24254b88b8fe21548a4183b29b4c66647aeef516 SHA512 6ee605bfc91da14d34bc89fe75790f99548253e2d6aa088e20d1996577629bf15fe0fae09e65d983aa829f54cfcbd33e13f2c7d493a2776fd1723f8725b62186 diff --git a/app-misc/openrgb/files/OpenRGB-0.7-udev.patch b/app-misc/openrgb/files/OpenRGB-0.7-udev.patch new file mode 100644 index 000000000000..a2feaf1c9378 --- /dev/null +++ b/app-misc/openrgb/files/OpenRGB-0.7-udev.patch @@ -0,0 +1,16 @@ +Install udev rules to correct dir + +Revert https://gitlab.com/CalcProgrammer1/OpenRGB/-/commit/ccbe83919a70be346eea948fb2c4122ef9f34214 + +--- a/OpenRGB.pro ++++ b/OpenRGB.pro +@@ -1246,7 +1246,7 @@ unix:!macx { + icon.files+=qt/OpenRGB.png + metainfo.path=$$PREFIX/share/metainfo/ + metainfo.files+=qt/org.openrgb.OpenRGB.metainfo.xml ++ rules.path=/lib/udev/rules.d/ +- rules.path=$$PREFIX/lib/udev/rules.d/ + rules.files+=60-openrgb.rules + INSTALLS += target desktop icon metainfo rules + } +GitLab diff --git a/app-misc/openrgb/openrgb-0.7.ebuild b/app-misc/openrgb/openrgb-0.7.ebuild new file mode 100644 index 000000000000..f9e079015112 --- /dev/null +++ b/app-misc/openrgb/openrgb-0.7.ebuild @@ -0,0 +1,71 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic qmake-utils + +if [[ ${PV} == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI=${EGIT_REPO_URI:-"https://gitlab.com/CalcProgrammer1/OpenRGB"} +else + SRC_URI="https://gitlab.com/CalcProgrammer1/OpenRGB/-/archive/release_${PV}/OpenRGB-release_${PV}.tar.bz2" + S="${WORKDIR}/OpenRGB-release_${PV}" + KEYWORDS="~amd64 ~x86" + PATCHES=( + "${FILESDIR}"/OpenRGB-0.5-build-system.patch + ) +fi + +DESCRIPTION="Open source RGB lighting control that doesn't depend on manufacturer software" +HOMEPAGE="https://openrgb.org https://gitlab.com/CalcProgrammer1/OpenRGB/" +LICENSE="GPL-2" +# subslot is OPENRGB_PLUGIN_API_VERSION from https://gitlab.com/CalcProgrammer1/OpenRGB/-/blob/master/OpenRGBPluginInterface.h +SLOT="0/2" + +RDEPEND=" + dev-libs/hidapi + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtwidgets:5 + net-libs/mbedtls:= + virtual/libusb:1 +" +DEPEND=" + ${RDEPEND} + dev-cpp/nlohmann_json +" +BDEPEND=" + virtual/pkgconfig +" + +PATCHES+=( + "${FILESDIR}"/OpenRGB-0.7-plugins.patch + "${FILESDIR}"/OpenRGB-0.7-udev.patch +) + +src_prepare() { + default + rm -r dependencies/{hidapi,libusb,json,mbedtls}* || die +} + +src_configure() { + # Some plugins require symbols defined in the main binary. + # The official build system bundles OpenRGB as a submodule instead, and + # compiles the .cpp file again. + append-ldflags -Wl,--export-dynamic + + eqmake5 \ + INCLUDEPATH+="${ESYSROOT}/usr/include/nlohmann" \ + DEFINES+="GENTOO_PLUGINS_DIR=\\\\\"\\\"${EPREFIX}/usr/$(get_libdir)/OpenRGB/plugins\\\\\"\\\"" +} + +src_install() { + emake INSTALL_ROOT="${ED}" install + + dodoc README.md OpenRGB.patch + + # This is for plugins. Upstream doesn't install any headers at all. + insinto /usr/include/OpenRGB + find . -name '*.h' -exec cp --parents '{}' "${ED}/usr/include/OpenRGB/" ';' || die +} |