# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 LUA_COMPAT=( luajit ) PYTHON_COMPAT=( python3_{12..14} ) RUST_MIN_VER=1.89.0 inherit cargo lua-single meson python-any-r1 xdg DESCRIPTION="2D space trading and combat game, in a similar vein to Escape Velocity" HOMEPAGE="https://naev.org/" # creating the vendor tarball first requires running src_compile until # it fails downloading crates in sandbox to generate several cargo files # https://codeberg.org/naev/naev/issues/3449 SRC_URI=" https://codeberg.org/naev/naev/releases/download/v${PV}/${P}-source.tar.xz https://distfiles.gentoo.org/pub/dev/ionen@gentoo.org/${P}-vendor.tar.xz " LICENSE="GPL-3+ BSD BSD-2 MIT" LICENSE+=" Apache-2.0 CC-BY-2.0 CC-BY-3.0 CC-BY-4.0 CC-BY-SA-2.0 CC-BY-SA-3.0 CC-BY-SA-4.0 CC0-1.0 FDL-1.2 GPL-2+ OFL-1.1 public-domain " # assets LICENSE+=" Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD CC0-1.0 CDLA-Permissive-2.0 IJG ISC MIT MIT-0 MPL-2.0 openssl Unicode-3.0 ZLIB " # crates SLOT="0" KEYWORDS="~amd64" IUSE="doc" REQUIRED_USE="${LUA_REQUIRED_USE}" # tests been a headache to keep working in sandbox with software GL RESTRICT="test" # dlopen: libglvnd # libunibreak upper bound: bug #983053 RDEPEND=" ${LUA_DEPS} app-text/cmark:= dev-games/physfs >=dev-libs/libgit2-1.9.4:0/1.9 dev-libs/libpcre2:=