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 F1A95158041 for ; Tue, 9 Apr 2024 07:24:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 404A0E29EB; Tue, 9 Apr 2024 07:24:51 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 221CDE29EB for ; Tue, 9 Apr 2024 07:24:51 +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 3CF0334322A for ; Tue, 9 Apr 2024 07:24:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CA08B16A9 for ; Tue, 9 Apr 2024 07:24:48 +0000 (UTC) From: "Bernard Cafarelli" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Bernard Cafarelli" Message-ID: <1712647476.1890d689a91c1c480bbd817c19990db09946def4.voyageur@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-util/heroic-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-util/heroic-bin/heroic-bin-2.14.1-r1.ebuild games-util/heroic-bin/heroic-bin-2.14.1.ebuild games-util/heroic-bin/metadata.xml X-VCS-Directories: games-util/heroic-bin/ X-VCS-Committer: voyageur X-VCS-Committer-Name: Bernard Cafarelli X-VCS-Revision: 1890d689a91c1c480bbd817c19990db09946def4 X-VCS-Branch: master Date: Tue, 9 Apr 2024 07:24:48 +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: 9a934256-c4a3-4cc5-9a3b-0098958b19a8 X-Archives-Hash: ee970b5d479cf3942eb0df6b0af92aa0 commit: 1890d689a91c1c480bbd817c19990db09946def4 Author: Gonçalo Negrier Duarte gmail com> AuthorDate: Tue Apr 2 15:41:52 2024 +0000 Commit: Bernard Cafarelli gentoo org> CommitDate: Tue Apr 9 07:24:36 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1890d689 games-util/heroic-bin: add 2.14.1-r1 drop 2.14.1 * add gamescope useflag * Launch Heroic with gamescope (desktop file) * https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/wiki/How-To:-Other-Tools-and-Wrappers-(gamescope)#gamescoped-heroic---as-seperate-app Signed-off-by: Gonçalo Negrier Duarte gmail.com> Closes: https://github.com/gentoo/gentoo/pull/36168 Signed-off-by: Bernard Cafarelli gentoo.org> ...-bin-2.14.1.ebuild => heroic-bin-2.14.1-r1.ebuild} | 19 ++++++++++++++++++- games-util/heroic-bin/metadata.xml | 3 +++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/games-util/heroic-bin/heroic-bin-2.14.1.ebuild b/games-util/heroic-bin/heroic-bin-2.14.1-r1.ebuild similarity index 74% rename from games-util/heroic-bin/heroic-bin-2.14.1.ebuild rename to games-util/heroic-bin/heroic-bin-2.14.1-r1.ebuild index 28c41dfca7d8..4710be3359f5 100644 --- a/games-util/heroic-bin/heroic-bin-2.14.1.ebuild +++ b/games-util/heroic-bin/heroic-bin-2.14.1-r1.ebuild @@ -28,6 +28,7 @@ S="${WORKDIR}/${P/-bin}" LICENSE="GPL-3+" SLOT="0" KEYWORDS="~amd64" +IUSE="gamescope" REQUIRED_USE="${PYTHON_REQUIRED_USE}" RDEPEND=" @@ -82,6 +83,7 @@ RDEPEND=" x11-libs/libxkbcommon x11-libs/pango x11-libs/pixman + gamescope? ( gui-wm/gamescope ) " QA_PREBUILT=".*" @@ -97,6 +99,17 @@ src_prepare() { cd locales || die chromium_remove_language_paks + + # Create gamescope desktop file + if use gamescope; then + cp "${DISTDIR}"/com.heroicgameslauncher.hgl.${PV}.desktop \ + "${WORKDIR}"/com.heroicgameslauncher.hgl.gamescope.${PV}.desktop || die + + sed -i 's/Name=Heroic Games Launcher/Name=Heroic Games Launcher (Gamescope)/g' \ + "${WORKDIR}"/com.heroicgameslauncher.hgl.gamescope.${PV}.desktop || die + sed -i 's/Exec=heroic-run %u/Exec=env GDK_BACKEND=wayland gamescope -w 1920 -h 1080 -f -R --RT --force-grab-cursor --prefer-vk-device --adaptive-sync --nested-unfocused-refresh 30 -- heroic-run --ozone-platform=x11 --enable-features=UseOzonePlatform,WaylandWindowDecorations/g' \ + "${WORKDIR}"/com.heroicgameslauncher.hgl.gamescope.${PV}.desktop || die + fi } src_install() { @@ -119,6 +132,10 @@ src_install() { # Install resources: desktop file and icon. newmenu "${DISTDIR}"/com.heroicgameslauncher.hgl.${PV}.desktop \ com.heroicgameslauncher.hgl.desktop - newicon "${DISTDIR}"/com.heroicgameslauncher.hgl.${PV}.png \ + if use gamescope; then + newmenu "${WORKDIR}"/com.heroicgameslauncher.hgl.gamescope.${PV}.desktop \ + com.heroicgameslauncher.hgl.gamescope.desktop + fi + newicon "${DISTDIR}"/com.heroicgameslauncher.hgl.${PV}.png \ com.heroicgameslauncher.hgl.png } diff --git a/games-util/heroic-bin/metadata.xml b/games-util/heroic-bin/metadata.xml index ff0fda634043..9f6e069b9dda 100644 --- a/games-util/heroic-bin/metadata.xml +++ b/games-util/heroic-bin/metadata.xml @@ -14,6 +14,9 @@ proxy-maint@gentoo.org Gentoo Proxy Maintainers + + Run Heroic Launcher inside gamescope + Heroic is an Open Source Game Launcher for Linux, Windows and macOS. Right now it supports launching games from the Epic Games Store using Legendary