From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9C5C2158010 for ; Thu, 5 Jan 2023 14:31:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 964BCE07DB; Thu, 5 Jan 2023 14:31:17 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7DFA6E07DB for ; Thu, 5 Jan 2023 14:31:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 951EF340C37 for ; Thu, 5 Jan 2023 14:31:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F039D801 for ; Thu, 5 Jan 2023 14:31:14 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1672929070.c9408605ea2f070524181fddbc72f712d37fd944.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/openrgb/files/, app-misc/openrgb/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/openrgb/Manifest app-misc/openrgb/files/OpenRGB-0.8-drop-bundled-libs.patch app-misc/openrgb/metadata.xml app-misc/openrgb/openrgb-0.8.ebuild app-misc/openrgb/openrgb-9999.ebuild X-VCS-Directories: app-misc/openrgb/files/ app-misc/openrgb/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: c9408605ea2f070524181fddbc72f712d37fd944 X-VCS-Branch: master Date: Thu, 5 Jan 2023 14:31:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a29fae90-0181-4bdf-ab57-333db6235c0b X-Archives-Hash: ff6736f2a8f0626c2767778200fa51f8 commit: c9408605ea2f070524181fddbc72f712d37fd944 Author: Marco Scardovi icloud com> AuthorDate: Sat Dec 17 23:48:38 2022 +0000 Commit: Maciej Barć gentoo org> CommitDate: Thu Jan 5 14:31:10 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9408605 app-misc/openrgb: add 0.8, update live-ebuild Closes: https://bugs.gentoo.org/886486 Signed-off-by: Marco Scardovi icloud.com> Signed-off-by: Maciej Barć gentoo.org> app-misc/openrgb/Manifest | 1 + .../files/OpenRGB-0.8-drop-bundled-libs.patch | 25 ++++++++++++++++++++++ app-misc/openrgb/metadata.xml | 10 +++++++++ .../{openrgb-9999.ebuild => openrgb-0.8.ebuild} | 22 +++++++++++++------ app-misc/openrgb/openrgb-9999.ebuild | 22 +++++++++++++------ 5 files changed, 68 insertions(+), 12 deletions(-) diff --git a/app-misc/openrgb/Manifest b/app-misc/openrgb/Manifest index 2e2723147628..4b00e7ad8635 100644 --- a/app-misc/openrgb/Manifest +++ b/app-misc/openrgb/Manifest @@ -1 +1,2 @@ DIST OpenRGB-release_0.7.tar.bz2 28053114 BLAKE2B dfab42fca654478ab359e6e46133fc20a4bf32aca35d1b2f475d3e4e5e218f35c7e1f03be15381b0e8d874ea24254b88b8fe21548a4183b29b4c66647aeef516 SHA512 6ee605bfc91da14d34bc89fe75790f99548253e2d6aa088e20d1996577629bf15fe0fae09e65d983aa829f54cfcbd33e13f2c7d493a2776fd1723f8725b62186 +DIST OpenRGB-release_0.8.tar.bz2 28631365 BLAKE2B 3b328e38f1c52646da02b0b2b2c22b1285f3b31b0a2bc684e99d491d04bd14a91b49bc196b3b81b537320cd872e5568aaa8aec34744f4f15392d9424a81ac6f0 SHA512 d69686da7cab33099b13cfb5ab876fc2db047f79aa01bf8150507ec41321b4c6c092f81623823b89916c70a1a24c4a102f77b1001c5caa721ff4c0c52e0630d2 diff --git a/app-misc/openrgb/files/OpenRGB-0.8-drop-bundled-libs.patch b/app-misc/openrgb/files/OpenRGB-0.8-drop-bundled-libs.patch new file mode 100644 index 000000000000..ca3a96b441c7 --- /dev/null +++ b/app-misc/openrgb/files/OpenRGB-0.8-drop-bundled-libs.patch @@ -0,0 +1,25 @@ +From b8d2ff44ef16fb395c283d53a1fa723bff818a9a Mon Sep 17 00:00:00 2001 +From: Marco Scardovi +Date: Sun, 18 Dec 2022 21:19:26 +0100 +Subject: [PATCH] Drop libs + +--- + OpenRGB.pro | 2 -- + 1 files changed, 0 insertions(+), 2 deletions(-) + +diff --git a/OpenRGB.pro b/OpenRGB.pro +index aabbd161..8e644960 100644 +--- a/OpenRGB.pro ++++ b/OpenRGB.pro +@@ -63,11 +63,9 @@ INCLUDEPATH += + dependencies/CRCpp/ \ + dependencies/hueplusplus-1.0.0/include \ + dependencies/hueplusplus-1.0.0/include/hueplusplus \ +- dependencies/httplib \ + dependencies/json/ \ + dependencies/libe131/src/ \ + dependencies/libcmmk/include/ \ +- dependencies/mdns \ + i2c_smbus/ \ + i2c_tools/ \ + net_port/ \ diff --git a/app-misc/openrgb/metadata.xml b/app-misc/openrgb/metadata.xml index 05db5934398f..f2fe2a6805da 100644 --- a/app-misc/openrgb/metadata.xml +++ b/app-misc/openrgb/metadata.xml @@ -9,6 +9,16 @@ alexey+gentoo@asokolov.org Alexey Sokolov + + One of the biggest complaints about RGB is the software ecosystem surrounding it. + Every manufacturer has their own app, their own brand, their own style. + If you want to mix and match devices, you end up with a ton of conflicting, + functionally identical apps competing for your background resources. + On top of that, these apps are proprietary and Windows-only. + Some even require online accounts. What if there was a way to control all of your + RGB devices from a single app, on both Windows and Linux, without any nonsense? + That is what OpenRGB sets out to achieve. One app to rule them all. + CalcProgrammer1/OpenRGB diff --git a/app-misc/openrgb/openrgb-9999.ebuild b/app-misc/openrgb/openrgb-0.8.ebuild similarity index 75% copy from app-misc/openrgb/openrgb-9999.ebuild copy to app-misc/openrgb/openrgb-0.8.ebuild index 343c012dd241..bed6c458262f 100644 --- a/app-misc/openrgb/openrgb-9999.ebuild +++ b/app-misc/openrgb/openrgb-0.8.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit flag-o-matic qmake-utils udev +inherit flag-o-matic qmake-utils udev xdg-utils if [[ ${PV} == *9999* ]]; then inherit git-r3 @@ -12,12 +12,10 @@ 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 - ) + PATCHES=( "${FILESDIR}"/OpenRGB-0.5-build-system.patch ) fi -DESCRIPTION="Open source RGB lighting control that doesn't depend on manufacturer software" +DESCRIPTION="Open source RGB lighting control" 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 @@ -33,19 +31,24 @@ RDEPEND=" " DEPEND=" ${RDEPEND} + dev-cpp/cpp-httplib dev-cpp/nlohmann_json + dev-libs/mdns " BDEPEND=" + dev-qt/linguist-tools:5 virtual/pkgconfig " PATCHES+=( "${FILESDIR}"/OpenRGB-0.7-r1-udev.patch + "${FILESDIR}"/OpenRGB-0.8-drop-bundled-libs.patch ) src_prepare() { default - rm -r dependencies/{hidapi,libusb,json,mbedtls}* || die + rm -r dependencies/{httplib,hidapi,libusb,mdns,json,mbedtls}* \ + || die "Failed to remove unneded deps" } src_configure() { @@ -54,6 +57,9 @@ src_configure() { # compiles the .cpp file again. append-ldflags -Wl,--export-dynamic + # > warning: ‘-pipe’ ignored because ‘-save-temps’ specified + filter-flags -pipe + eqmake5 \ INCLUDEPATH+="${ESYSROOT}/usr/include/nlohmann" \ DEFINES+="OPENRGB_EXTRA_PLUGIN_DIRECTORY=\\\\\"\\\"${EPREFIX}/usr/$(get_libdir)/OpenRGB/plugins\\\\\"\\\"" @@ -63,7 +69,9 @@ src_install() { emake INSTALL_ROOT="${ED}" install dodoc README.md OpenRGB.patch + udev_dorules 60-openrgb.rules + rm -r "${ED}"/usr/lib/udev/ || die # This is for plugins. Upstream doesn't install any headers at all. insinto /usr/include/OpenRGB @@ -71,9 +79,11 @@ src_install() { } pkg_postinst() { + xdg_icon_cache_update udev_reload } pkg_postrm() { + xdg_icon_cache_update udev_reload } diff --git a/app-misc/openrgb/openrgb-9999.ebuild b/app-misc/openrgb/openrgb-9999.ebuild index 343c012dd241..bed6c458262f 100644 --- a/app-misc/openrgb/openrgb-9999.ebuild +++ b/app-misc/openrgb/openrgb-9999.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit flag-o-matic qmake-utils udev +inherit flag-o-matic qmake-utils udev xdg-utils if [[ ${PV} == *9999* ]]; then inherit git-r3 @@ -12,12 +12,10 @@ 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 - ) + PATCHES=( "${FILESDIR}"/OpenRGB-0.5-build-system.patch ) fi -DESCRIPTION="Open source RGB lighting control that doesn't depend on manufacturer software" +DESCRIPTION="Open source RGB lighting control" 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 @@ -33,19 +31,24 @@ RDEPEND=" " DEPEND=" ${RDEPEND} + dev-cpp/cpp-httplib dev-cpp/nlohmann_json + dev-libs/mdns " BDEPEND=" + dev-qt/linguist-tools:5 virtual/pkgconfig " PATCHES+=( "${FILESDIR}"/OpenRGB-0.7-r1-udev.patch + "${FILESDIR}"/OpenRGB-0.8-drop-bundled-libs.patch ) src_prepare() { default - rm -r dependencies/{hidapi,libusb,json,mbedtls}* || die + rm -r dependencies/{httplib,hidapi,libusb,mdns,json,mbedtls}* \ + || die "Failed to remove unneded deps" } src_configure() { @@ -54,6 +57,9 @@ src_configure() { # compiles the .cpp file again. append-ldflags -Wl,--export-dynamic + # > warning: ‘-pipe’ ignored because ‘-save-temps’ specified + filter-flags -pipe + eqmake5 \ INCLUDEPATH+="${ESYSROOT}/usr/include/nlohmann" \ DEFINES+="OPENRGB_EXTRA_PLUGIN_DIRECTORY=\\\\\"\\\"${EPREFIX}/usr/$(get_libdir)/OpenRGB/plugins\\\\\"\\\"" @@ -63,7 +69,9 @@ src_install() { emake INSTALL_ROOT="${ED}" install dodoc README.md OpenRGB.patch + udev_dorules 60-openrgb.rules + rm -r "${ED}"/usr/lib/udev/ || die # This is for plugins. Upstream doesn't install any headers at all. insinto /usr/include/OpenRGB @@ -71,9 +79,11 @@ src_install() { } pkg_postinst() { + xdg_icon_cache_update udev_reload } pkg_postrm() { + xdg_icon_cache_update udev_reload }