# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{10..13} ) inherit desktop python-any-r1 flag-o-matic scons-utils inherit shell-completion toolchain-funcs xdg DESCRIPTION="Multi-platform 2D and 3D game engine with a feature-rich editor" HOMEPAGE="https://godotengine.org/" SRC_URI=" https://downloads.tuxfamily.org/godotengine/${PV}/${P}-stable.tar.xz https://github.com/godotengine/godot/releases/download/${PV}-stable/${P}-stable.tar.xz " S=${WORKDIR}/${P}-stable LICENSE=" MIT Apache-2.0 BSD Boost-1.0 CC0-1.0 Unlicense ZLIB gui? ( CC-BY-4.0 ) tools? ( OFL-1.1 ) " SLOT="4" KEYWORDS="~amd64" # Enable roughly same as upstream by default so it works as expected, # except raycast (tools-only heavy dependency), and deprecated. IUSE=" alsa +dbus debug deprecated +fontconfig +gui pulseaudio raycast +runner speech test +theora +tools +udev +upnp +vulkan wayland +webp " REQUIRED_USE="wayland? ( gui )" # TODO: tests still need more figuring out RESTRICT="test" # mbedtls: "can" use >=mbedtls-3 but the module needs updates handle # the new tls1.3 default among other things, and the bundled 3.x copy # builds it #undef MBEDTLS_SSL_PROTO_TLS1_3 + a patch or else will get # "ERROR: TLS handshake error: -27648" with system's on startup # https://github.com/godotengine/godot/commit/40fa684c181d # dlopen: libglvnd RDEPEND=" app-arch/brotli:= app-arch/zstd:= dev-games/recastnavigation:= dev-libs/icu:= dev-libs/libpcre2:=[pcre32] media-libs/freetype[brotli,harfbuzz] media-libs/harfbuzz:=[icu] media-libs/libogg media-libs/libpng:= media-libs/libvorbis