commit:     089fc07c027adf7b2478c46995cc0ba063e70a7c
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 21 08:31:59 2026 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Sat Feb 21 08:46:27 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=089fc07c

games-util/heroic-bin: add 2.20.0

Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 games-util/heroic-bin/Manifest                 |   3 +
 games-util/heroic-bin/heroic-bin-2.20.0.ebuild | 141 +++++++++++++++++++++++++
 2 files changed, 144 insertions(+)

diff --git a/games-util/heroic-bin/Manifest b/games-util/heroic-bin/Manifest
index 340b444df799..c3429e2e5b4f 100644
--- a/games-util/heroic-bin/Manifest
+++ b/games-util/heroic-bin/Manifest
@@ -2,5 +2,8 @@ DIST com.heroicgameslauncher.hgl.2.18.1.desktop 529 BLAKE2B 
effd9f5d89cb8453e616
 DIST com.heroicgameslauncher.hgl.2.18.1.png 9797 BLAKE2B 
c6f76df4ec2fd25323f5c37e03605647ede8f8c2ed48cfbb8af11aad22ae90182d3678b943633b46a2d8dfb0c1cbd1a275b6c62dde238b9b0f68cbafb4bf3697
 SHA512 
68e9881fb4f123008398409825aa8cf70cec34365a23adb1234f7c054a14f40d159e7d8912cfedac0bb2b12f1d3c3c980469c2fca9735d4bc06bd4074aecc7e3
 DIST com.heroicgameslauncher.hgl.2.19.1.desktop 529 BLAKE2B 
effd9f5d89cb8453e616650cd128fea795c65c2c2d2f6073f2d137fcb270aa02554a19e6e627ccc7aaf0c927f42cd86ca56beeba6478929eeb28b2dafcd572aa
 SHA512 
e7af610d21013943c43539224a5dd2ea3994726ecc7ed14e9db3513543ab5c6796d66394eb63d90f90148259ef2928739cd346eb7c8fe7a73273984fe9b8e6a5
 DIST com.heroicgameslauncher.hgl.2.19.1.png 9797 BLAKE2B 
c6f76df4ec2fd25323f5c37e03605647ede8f8c2ed48cfbb8af11aad22ae90182d3678b943633b46a2d8dfb0c1cbd1a275b6c62dde238b9b0f68cbafb4bf3697
 SHA512 
68e9881fb4f123008398409825aa8cf70cec34365a23adb1234f7c054a14f40d159e7d8912cfedac0bb2b12f1d3c3c980469c2fca9735d4bc06bd4074aecc7e3
+DIST com.heroicgameslauncher.hgl.2.20.0.desktop 529 BLAKE2B 
effd9f5d89cb8453e616650cd128fea795c65c2c2d2f6073f2d137fcb270aa02554a19e6e627ccc7aaf0c927f42cd86ca56beeba6478929eeb28b2dafcd572aa
 SHA512 
e7af610d21013943c43539224a5dd2ea3994726ecc7ed14e9db3513543ab5c6796d66394eb63d90f90148259ef2928739cd346eb7c8fe7a73273984fe9b8e6a5
+DIST com.heroicgameslauncher.hgl.2.20.0.png 9797 BLAKE2B 
c6f76df4ec2fd25323f5c37e03605647ede8f8c2ed48cfbb8af11aad22ae90182d3678b943633b46a2d8dfb0c1cbd1a275b6c62dde238b9b0f68cbafb4bf3697
 SHA512 
68e9881fb4f123008398409825aa8cf70cec34365a23adb1234f7c054a14f40d159e7d8912cfedac0bb2b12f1d3c3c980469c2fca9735d4bc06bd4074aecc7e3
 DIST heroic-bin-2.18.1.tar.xz 120199340 BLAKE2B 
759e5faa5e52643d2437fb71c3887a8888d019b93a38613312c20d1fcbad094ff1eb59845a9fea2edcdeb2f7ff97c1f24dedd188fac011b2e0a854ca1927983c
 SHA512 
4a454d92bf823a914f477fa9163a88a87f4daa092de1f0eb4fad5d3b7940feeb03fa171df6177861b3690a72828cb94380344dd71ded4ace5e002372c22befe7
 DIST heroic-bin-2.19.1.tar.xz 135523460 BLAKE2B 
46318644ee2d1867c749610991e73fd0425e0b20dc2f68bbbd4d5d6985081e71e093b1471f1caff4dffaad02ee4febd6492a139639473dc9a1b33510b9d4b0aa
 SHA512 
30405c4818092fab9e2aee4ea735a503d38eada646e23591c9dcde3218d825abbe5c82f31b10f0328ace935d5b8d8c0f871a14dbfd1b048fa4336d5c8ade9dfa
+DIST heroic-bin-2.20.0.tar.xz 122427408 BLAKE2B 
576506ae730ecdb3555bda156b6a04a27febe4f88f98a7122b985c1eaa72f6581af76f20897d17241c877e0bd72ba3cda5425045fd3abde0fd72d9a7b142d4cb
 SHA512 
aa0d1936c7aaa9e9a83d63cc5fbe7516fa7ec0d215262c6266f42b881f2cb4f9b816012743945916fc20b6fdd5c6ad486430e2909285a06bb8529499da6ff3a9

diff --git a/games-util/heroic-bin/heroic-bin-2.20.0.ebuild 
b/games-util/heroic-bin/heroic-bin-2.20.0.ebuild
new file mode 100644
index 000000000000..39b24e67c620
--- /dev/null
+++ b/games-util/heroic-bin/heroic-bin-2.20.0.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2026 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_{11..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
+       virtual/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
+}

Reply via email to