commit: 3f4cd25da1d5af5b35a3dc8320597b11b13d7f2c Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Sat Jul 1 16:12:58 2023 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Sat Jul 1 16:12:58 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f4cd25d
games-util/heroic-bin: link python3 exe Closes: https://bugs.gentoo.org/909443 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> games-util/heroic-bin/heroic-bin-2.8.0.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/games-util/heroic-bin/heroic-bin-2.8.0.ebuild b/games-util/heroic-bin/heroic-bin-2.8.0.ebuild index 986384bbf90f..2f2a822eceb2 100644 --- a/games-util/heroic-bin/heroic-bin-2.8.0.ebuild +++ b/games-util/heroic-bin/heroic-bin-2.8.0.ebuild @@ -12,8 +12,9 @@ CHROMIUM_LANGS=" 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..12} ) -inherit chromium-2 desktop xdg +inherit chromium-2 desktop python-single-r1 xdg DESCRIPTION="GOG and Epic Games Launcher for Linux" HOMEPAGE="https://heroicgameslauncher.com/ @@ -33,8 +34,10 @@ S="${WORKDIR}"/${APP_NAME} LICENSE="GPL-3+" SLOT="0" KEYWORDS="~amd64" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" RDEPEND=" + ${PYTHON_DEPS} app-accessibility/at-spi2-core app-arch/brotli app-arch/bzip2 @@ -120,6 +123,9 @@ src_install() { fowners root "${app_root}"/chrome-sandbox fperms 4711 "${app_root}"/chrome-sandbox + 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
