From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 1292E15808A for ; Thu, 24 Jul 2025 16:50:16 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id EB4153423C3 for ; Thu, 24 Jul 2025 16:50:15 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id DB2CA11055F; Thu, 24 Jul 2025 16:50:12 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 bobolink.gentoo.org (Postfix) with ESMTPS id CCA7211055E for ; Thu, 24 Jul 2025 16:50:12 +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 8D612341ED9 for ; Thu, 24 Jul 2025 16:50:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EDE7D32A9 for ; Thu, 24 Jul 2025 16:50:10 +0000 (UTC) From: "Quinet Charlie" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Quinet Charlie" Message-ID: <1753375403.0c6e33483856abb81a88fcc7fc637d3b4247daa1.w.iron.zombie@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-emulation/lsfg-vk/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-emulation/lsfg-vk/lsfg-vk-9999.ebuild X-VCS-Directories: app-emulation/lsfg-vk/ X-VCS-Committer: w.iron.zombie X-VCS-Committer-Name: Quinet Charlie X-VCS-Revision: 0c6e33483856abb81a88fcc7fc637d3b4247daa1 X-VCS-Branch: dev Date: Thu, 24 Jul 2025 16:50:10 +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: d5fa6d72-d74c-4460-9052-2aa8cf843a25 X-Archives-Hash: 3453a122128d491f46b80a79c6e84484 commit: 0c6e33483856abb81a88fcc7fc637d3b4247daa1 Author: Charlie Quinet gmail com> AuthorDate: Thu Jul 24 16:38:28 2025 +0000 Commit: Quinet Charlie gmail com> CommitDate: Thu Jul 24 16:43:23 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0c6e3348 app-emulation/lsfg-vk: add gui USE flag Signed-off-by: Charlie Quinet gmail.com> app-emulation/lsfg-vk/lsfg-vk-9999.ebuild | 38 ++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/app-emulation/lsfg-vk/lsfg-vk-9999.ebuild b/app-emulation/lsfg-vk/lsfg-vk-9999.ebuild index 62796616c3..1817781a8e 100644 --- a/app-emulation/lsfg-vk/lsfg-vk-9999.ebuild +++ b/app-emulation/lsfg-vk/lsfg-vk-9999.ebuild @@ -3,12 +3,13 @@ EAPI=8 -inherit cmake +inherit cmake cargo DESCRIPTION="Lossless Scaling Frame Generation on Linux via DXVK/Vulkan" HOMEPAGE="https://github.com/PancakeTAS/lsfg-vk" LICENSE="MIT" SLOT="0" +IUSE="+gui" if [[ ${PV} == 9999 ]]; then inherit git-r3 @@ -35,6 +36,11 @@ BDEPEND=" DEPEND=" dev-cpp/toml11 dev-util/glslang + gui? ( + dev-libs/glib:2 + gui-libs/gtk:4 + gui-libs/libadwaita + ) || ( media-libs/glfw media-libs/libsdl2 @@ -44,6 +50,35 @@ DEPEND=" " RDEPEND="${DEPEND}" +src_unpack() { + if [[ ${PV} != 9999 ]]; then + default + else + git-r3_src_unpack + fi + + if use gui; then + oldS="${S}" + S="${S}/ui" + if [[ ${PV} != 9999 ]]; then + cargo_src_unpack + else + cargo_live_src_unpack + fi + S="${oldS}" + fi +} + +src_configure() { + cmake_src_configure + use gui && cd ui && cargo_src_configure +} + +src_compile() { + cmake_src_compile + use gui && cd ui && cargo_src_compile +} + src_prepare() { if [[ ${PV} != 9999 ]]; then mv ../dxbc-${HASH_DXBC} thirdparty/dxbc || die @@ -97,4 +132,5 @@ src_install() { insinto "/usr/share/vulkan/implicit_layer.d/" doins "${S}/VkLayer_LS_frame_generation.json" dolib.so "${WORKDIR}/${P}_build/liblsfg-vk.so" + use gui && newbin "${S}/ui/target/release/ui" "lsfg-vk-gui" }