summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2024-12-24 10:43:36 -0500
committerIonen Wolkens <ionen@gentoo.org>2024-12-24 10:45:50 -0500
commitf5eb679d5cf045fca91bb3552d3647fd0f30f17e (patch)
tree36136a662262c679f6de5e49b9f6418f49d2b50c
parentapp-arch/p7zip: localization patch backport (diff)
downloadgentoo-f5eb679d5cf045fca91bb3552d3647fd0f30f17e.tar.gz
gentoo-f5eb679d5cf045fca91bb3552d3647fd0f30f17e.tar.bz2
gentoo-f5eb679d5cf045fca91bb3552d3647fd0f30f17e.zip
games-strategy/naev: force luajit for >=0.12
Also lets us drop the selection workaround. Closes: https://bugs.gentoo.org/946881 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
-rw-r--r--games-strategy/naev/naev-0.12.0.ebuild8
-rw-r--r--profiles/base/package.use.force5
2 files changed, 8 insertions, 5 deletions
diff --git a/games-strategy/naev/naev-0.12.0.ebuild b/games-strategy/naev/naev-0.12.0.ebuild
index d1d0dfb99967..31298e490603 100644
--- a/games-strategy/naev/naev-0.12.0.ebuild
+++ b/games-strategy/naev/naev-0.12.0.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-LUA_COMPAT=( lua5-1 luajit )
+LUA_COMPAT=( luajit )
PYTHON_COMPAT=( python3_{10..13} )
inherit lua-single meson python-any-r1 virtualx xdg
@@ -87,18 +87,16 @@ pkg_setup() {
src_prepare() {
default
- # use eclass' generated lua.pc first rather than as fallback
- sed -i "s/'lua51'/'lua'/" meson.build || die
-
# don't probe OpenGL for tests (avoids sandbox violations, bug #829369)
sed -i "/subdir('glcheck')/d" test/meson.build || die
}
src_configure() {
local emesonargs=(
+ # *can* do lua5-1 but upstream uses+test luajit most (bug #946881)
+ -Dluajit=enabled
$(meson_feature doc docs_c)
$(meson_feature doc docs_lua)
- $(meson_feature lua_single_target_luajit luajit)
)
meson_src_configure
diff --git a/profiles/base/package.use.force b/profiles/base/package.use.force
index e79e18f28a2e..6546f32dd3f4 100644
--- a/profiles/base/package.use.force
+++ b/profiles/base/package.use.force
@@ -1,6 +1,11 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
+# Ionen Wolkens <ionen@gentoo.org> (2024-12-24)
+# ebuild currently only support luajit, spare users from having
+# to set it by forcing it here (bug #946881)
+>=games-strategy/naev-0.12 lua_single_target_luajit
+
# Michał Górny <mgorny@gentoo.org> (2024-12-18)
# Force building these LLVM runtimes with Clang. GCC builds are not
# supported upstream (to the point of refusing bug fixes), and are