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 CE18D15806C for ; Fri, 20 Jun 2025 14:59:39 +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 B5792341F89 for ; Fri, 20 Jun 2025 14:59:39 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 885411104D9; Fri, 20 Jun 2025 14:59:36 +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 73C341104D9 for ; Fri, 20 Jun 2025 14:59:36 +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 249D2340F3F for ; Fri, 20 Jun 2025 14:59:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 80FE32749 for ; Fri, 20 Jun 2025 14:59:34 +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: <1750431136.cbfc5ed9f0a17e21cdf9e9127fcc9dada026d587.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/Manifest games-util/heroic-bin/heroic-bin-2.17.2.ebuild X-VCS-Directories: games-util/heroic-bin/ X-VCS-Committer: voyageur X-VCS-Committer-Name: Bernard Cafarelli X-VCS-Revision: cbfc5ed9f0a17e21cdf9e9127fcc9dada026d587 X-VCS-Branch: master Date: Fri, 20 Jun 2025 14:59:34 +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: 1925f229-0e6f-4dc5-be9d-cabb1b761a2a X-Archives-Hash: 1b3a69240c13522a3183764b5877c7c2 commit: cbfc5ed9f0a17e21cdf9e9127fcc9dada026d587 Author: Bernard Cafarelli gentoo org> AuthorDate: Fri Jun 20 12:13:07 2025 +0000 Commit: Bernard Cafarelli gentoo org> CommitDate: Fri Jun 20 14:52:16 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbfc5ed9 games-util/heroic-bin: add 2.17.2 Signed-off-by: Bernard Cafarelli gentoo.org> games-util/heroic-bin/Manifest | 3 + games-util/heroic-bin/heroic-bin-2.17.2.ebuild | 141 +++++++++++++++++++++++++ 2 files changed, 144 insertions(+) diff --git a/games-util/heroic-bin/Manifest b/games-util/heroic-bin/Manifest index 29162f75017b..8f493cd26574 100644 --- a/games-util/heroic-bin/Manifest +++ b/games-util/heroic-bin/Manifest @@ -1,3 +1,6 @@ DIST com.heroicgameslauncher.hgl.2.17.1.desktop 529 BLAKE2B effd9f5d89cb8453e616650cd128fea795c65c2c2d2f6073f2d137fcb270aa02554a19e6e627ccc7aaf0c927f42cd86ca56beeba6478929eeb28b2dafcd572aa SHA512 e7af610d21013943c43539224a5dd2ea3994726ecc7ed14e9db3513543ab5c6796d66394eb63d90f90148259ef2928739cd346eb7c8fe7a73273984fe9b8e6a5 DIST com.heroicgameslauncher.hgl.2.17.1.png 9797 BLAKE2B c6f76df4ec2fd25323f5c37e03605647ede8f8c2ed48cfbb8af11aad22ae90182d3678b943633b46a2d8dfb0c1cbd1a275b6c62dde238b9b0f68cbafb4bf3697 SHA512 68e9881fb4f123008398409825aa8cf70cec34365a23adb1234f7c054a14f40d159e7d8912cfedac0bb2b12f1d3c3c980469c2fca9735d4bc06bd4074aecc7e3 +DIST com.heroicgameslauncher.hgl.2.17.2.desktop 529 BLAKE2B effd9f5d89cb8453e616650cd128fea795c65c2c2d2f6073f2d137fcb270aa02554a19e6e627ccc7aaf0c927f42cd86ca56beeba6478929eeb28b2dafcd572aa SHA512 e7af610d21013943c43539224a5dd2ea3994726ecc7ed14e9db3513543ab5c6796d66394eb63d90f90148259ef2928739cd346eb7c8fe7a73273984fe9b8e6a5 +DIST com.heroicgameslauncher.hgl.2.17.2.png 9797 BLAKE2B c6f76df4ec2fd25323f5c37e03605647ede8f8c2ed48cfbb8af11aad22ae90182d3678b943633b46a2d8dfb0c1cbd1a275b6c62dde238b9b0f68cbafb4bf3697 SHA512 68e9881fb4f123008398409825aa8cf70cec34365a23adb1234f7c054a14f40d159e7d8912cfedac0bb2b12f1d3c3c980469c2fca9735d4bc06bd4074aecc7e3 DIST heroic-bin-2.17.1.tar.xz 119873984 BLAKE2B ac7b6a56a87fa1ed65986a292471abca45849b11a1a18a0f04072c9a2bb4b7c51b67d0d0df3df6941fc26b862b806ba42bbd341ee8eeb9a1f24a9c36ac4b258f SHA512 94919b7b5e9e4a234710b0a434c6e0e3aac7d63a79097f0bbbb41e348bd5affddfaf7410394d2b55071a003b04adc495d286f0fa86607c0640fff847ae3385ad +DIST heroic-bin-2.17.2.tar.xz 120177180 BLAKE2B 63a8611b437c0da35f37646a4e35df4b95143dba0fa32df8f7914015ce4f9c4c87e411bd5e263400582a3d6ae75ccbed6916fe974a34155da007156144b7ee35 SHA512 8e359171cdd098bb75f986a87f767e3a26d9e3f5d1eb92b3965f1c00bd3cc2de81f202da4603bc9a0c5cd952fd773c60a62b69321b3187de68a3718922337910 diff --git a/games-util/heroic-bin/heroic-bin-2.17.2.ebuild b/games-util/heroic-bin/heroic-bin-2.17.2.ebuild new file mode 100644 index 000000000000..b49becda315f --- /dev/null +++ b/games-util/heroic-bin/heroic-bin-2.17.2.ebuild @@ -0,0 +1,141 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CHROMIUM_LANGS=" + af am ar bg bn ca cs da de el en-GB en-US es es-419 et fa fi fil fr gu he hi + hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr sv + sw ta te th tr uk ur vi zh-CN zh-TW +" +PYTHON_COMPAT=( python3_{10..14} python3_13t ) + +inherit chromium-2 desktop python-single-r1 xdg + +DESCRIPTION="GOG and Epic Games Launcher for Linux" +HOMEPAGE="https://heroicgameslauncher.com/ + https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/" +SRC_URI=" + https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases/download/v${PV}/heroic-${PV}-linux-x64.tar.xz + -> ${P}.tar.xz + https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/raw/v${PV}/flatpak/com.heroicgameslauncher.hgl.desktop + -> com.heroicgameslauncher.hgl.${PV}.desktop + https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/raw/v${PV}/flatpak/com.heroicgameslauncher.hgl.png + -> com.heroicgameslauncher.hgl.${PV}.png +" +S="${WORKDIR}/Heroic-${PV}-linux-x64" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" +IUSE="gamescope" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + app-accessibility/at-spi2-core + app-arch/brotli + app-arch/bzip2 + dev-libs/expat + dev-libs/fribidi + dev-libs/glib + dev-libs/gmp + dev-libs/libffi + dev-libs/libpcre2 + dev-libs/libtasn1 + dev-libs/nettle + dev-libs/nspr + dev-libs/nss + dev-libs/wayland + media-fonts/freefont + media-gfx/graphite2 + media-libs/alsa-lib + media-libs/fontconfig + media-libs/freetype + media-libs/harfbuzz + media-libs/libepoxy + media-libs/libjpeg-turbo + media-libs/libpng + media-libs/mesa + media-video/ffmpeg + net-dns/libidn2 + net-libs/gnutls + net-print/cups + sys-apps/dbus + sys-libs/glibc + sys-libs/zlib + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:3 + x11-libs/libX11 + x11-libs/libXau + x11-libs/libXcomposite + x11-libs/libXcursor + x11-libs/libXdamage + x11-libs/libXdmcp + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXi + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/libdrm + x11-libs/libxcb + x11-libs/libxkbcommon + x11-libs/pango + x11-libs/pixman + gamescope? ( gui-wm/gamescope ) +" + +QA_PREBUILT=".*" + +src_configure() { + default + + chromium_suid_sandbox_check_kernel_config +} + +src_prepare() { + default + + 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 -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() { + local app_root=/opt/${P/-bin} + local app_dest="${ED}"/${app_root} + + dodoc LICENSE.* + rm LICENSE.* || die + + dodir "${app_root%/*}" + cp -r "${S}" "${app_dest}" || die + + dosym -r "${PYTHON}" \ + "${app_root}"/resources/app.asar.unpacked/node_modules/register-scheme/build/node_gyp_bins/python3 + + find "${app_dest}" -type f -name "*.a" -exec rm {} + || die + + dosym -r "${app_root}"/heroic /usr/bin/heroic-run + + # Install resources: desktop file and icon. + newmenu "${DISTDIR}"/com.heroicgameslauncher.hgl.${PV}.desktop \ + com.heroicgameslauncher.hgl.desktop + 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 +}