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 (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4342E1580FD for ; Sun, 29 Dec 2024 00:11:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7B482E0829; Sun, 29 Dec 2024 00:11:33 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5F061E0829 for ; Sun, 29 Dec 2024 00:11:33 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A18F2335DEB for ; Sun, 29 Dec 2024 00:11:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DAD411946 for ; Sun, 29 Dec 2024 00:11:29 +0000 (UTC) From: "Yixun Lan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yixun Lan" Message-ID: <1735430408.8e6585ae24273d4235ea6caf71dae05fb92caa7a.dlan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: gui-libs/hyprcursor/, gui-libs/hyprcursor/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: gui-libs/hyprcursor/files/0.1.10-fstream.patch gui-libs/hyprcursor/hyprcursor-0.1.10-r2.ebuild X-VCS-Directories: gui-libs/hyprcursor/files/ gui-libs/hyprcursor/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: 8e6585ae24273d4235ea6caf71dae05fb92caa7a X-VCS-Branch: master Date: Sun, 29 Dec 2024 00:11:29 +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: 9f74307b-1be8-4f3e-a58d-5f52a4b995c1 X-Archives-Hash: 06e2e48f84afe49fcd05c784b28023a6 commit: 8e6585ae24273d4235ea6caf71dae05fb92caa7a Author: Julien Roy jroy ca> AuthorDate: Fri Dec 27 15:27:11 2024 +0000 Commit: Yixun Lan gentoo org> CommitDate: Sun Dec 29 00:00:08 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e6585ae gui-libs/hyprcursor: backport fix for missing include https://github.com/hyprwm/hyprcursor/pull/71 Closes: https://bugs.gentoo.org/946996 Signed-off-by: Julien Roy jroy.ca> Signed-off-by: Yixun Lan gentoo.org> gui-libs/hyprcursor/files/0.1.10-fstream.patch | 39 +++++++++++++++++++++++++ gui-libs/hyprcursor/hyprcursor-0.1.10-r2.ebuild | 31 ++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/gui-libs/hyprcursor/files/0.1.10-fstream.patch b/gui-libs/hyprcursor/files/0.1.10-fstream.patch new file mode 100644 index 000000000000..e46df53dc9b1 --- /dev/null +++ b/gui-libs/hyprcursor/files/0.1.10-fstream.patch @@ -0,0 +1,39 @@ +From 2b522b0350ea8a1878ded84d90e080691bdb8f0e Mon Sep 17 00:00:00 2001 +From: Jan Beich +Date: Sat, 14 Dec 2024 11:24:52 +0100 +Subject: [PATCH] util: add missing header for libc++ + +hyprcursor-util/src/main.cpp:260:19: error: implicit instantiation of undefined template 'std::basic_ofstream' + 260 | std::ofstream manifest(out + "/manifest.hl", std::ios::trunc); + | ^ +/usr/include/c++/v1/__fwd/fstream.h:26:28: note: template is declared here + 26 | class _LIBCPP_TEMPLATE_VIS basic_ofstream; + | ^ +hyprcursor-util/src/main.cpp:292:41: error: implicit instantiation of undefined template 'std::basic_ifstream' + 292 | std::ifstream xconfig("/tmp/hyprcursor-util/" + xcursor.path().stem().string() + ".conf"); + | ^ +/usr/include/c++/v1/__fwd/fstream.h:24:28: note: template is declared here + 24 | class _LIBCPP_TEMPLATE_VIS basic_ifstream; + | ^ +hyprcursor-util/src/main.cpp:370:23: error: implicit instantiation of undefined template 'std::basic_ofstream' + 370 | std::ofstream meta(CURSORDIR + "/meta.hl", std::ios::trunc); + | ^ +/usr/include/c++/v1/__fwd/fstream.h:26:28: note: template is declared here + 26 | class _LIBCPP_TEMPLATE_VIS basic_ofstream; + | ^ +--- + hyprcursor-util/src/main.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/hyprcursor-util/src/main.cpp b/hyprcursor-util/src/main.cpp +index b6235cb..97e6573 100644 +--- a/hyprcursor-util/src/main.cpp ++++ b/hyprcursor-util/src/main.cpp +@@ -2,6 +2,7 @@ + #include + #include + #include ++#include + #include + #include + #include diff --git a/gui-libs/hyprcursor/hyprcursor-0.1.10-r2.ebuild b/gui-libs/hyprcursor/hyprcursor-0.1.10-r2.ebuild new file mode 100644 index 000000000000..0c83215b1f8d --- /dev/null +++ b/gui-libs/hyprcursor/hyprcursor-0.1.10-r2.ebuild @@ -0,0 +1,31 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="The hyprland cursor format, library and utilities" +HOMEPAGE="https://github.com/hyprwm/hyprcursor" +SRC_URI="https://github.com/hyprwm/hyprcursor/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~riscv" + +# Disable tests since as per upstream, tests require a theme to be installed +# See also https://github.com/hyprwm/hyprcursor/commit/94361fd8a75178b92c4bb24dcd8c7fac8423acf3 +RESTRICT="test" + +RDEPEND=" + dev-cpp/tomlplusplus + >=dev-libs/hyprlang-0.4.2 + dev-libs/libzip + gnome-base/librsvg:2 + x11-libs/cairo +" + +PATCHES=( + "${FILESDIR}"/0.1.10-llvm-fix.patch + "${FILESDIR}"/0.1.10-fstream.patch +)