# Copyright 2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{8..11} ) inherit bash-completion-r1 desktop python-any-r1 scons-utils toolchain-funcs xdg MY_P="${PN}-$(ver_rs 2 -)" DESCRIPTION="Multi-platform 2D and 3D game engine with a feature-rich editor" HOMEPAGE="https://godotengine.org/" SRC_URI="https://downloads.tuxfamily.org/godotengine/$(ver_rs 2 /)/${MY_P}.tar.xz" S="${WORKDIR}/${MY_P}" 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=" +dbus debug deprecated +fontconfig +gui pulseaudio raycast +runner speech test +theora +tools +udev +upnp +webp" # disable tests until out of beta, tests themselves are new and can be volatile RESTRICT="test" # libX11 range is temporary while this is being looked into: # - https://github.com/godotengine/godot/issues/69352 # - https://gitlab.freedesktop.org/xorg/lib/libx11/-/issues/170 # dlopen: alsa-lib,dbus,fontconfig,pulseaudio,speech-dispatcher,udev RDEPEND=" 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 x11-libs/libX11-1.8.2-r1