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 4926115808A for ; Fri, 25 Jul 2025 10:49:53 +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 38F1F341F58 for ; Fri, 25 Jul 2025 10:49:53 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id EC03511056D; Fri, 25 Jul 2025 10:49:29 +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) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id E3A7D11056D for ; Fri, 25 Jul 2025 10:49:29 +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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9F89B341F55 for ; Fri, 25 Jul 2025 10:49:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9E66F1686 for ; Fri, 25 Jul 2025 10:49:26 +0000 (UTC) From: "David Roman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Roman" Message-ID: <1753375403.0c6e33483856abb81a88fcc7fc637d3b4247daa1.davidroman@gentoo> Subject: [gentoo-commits] repo/proj/guru:master 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: davidroman X-VCS-Committer-Name: David Roman X-VCS-Revision: 0c6e33483856abb81a88fcc7fc637d3b4247daa1 X-VCS-Branch: master Date: Fri, 25 Jul 2025 10:49:26 +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: 9a0dcb59-a210-49ae-b256-76b5e9f968fe X-Archives-Hash: ea1efa49fd5c056c2da5eda62dfbeb5b commit: 0c6e33483856abb81a88fcc7fc637d3b4247daa1 Author: Charlie Quinet gmail com> AuthorDate: Thu Jul 24 16:38:28 2025 +0000 Commit: David Roman 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" }