This build system defaults to looking for luajit so we need to override
LUA_*_NAME when not using luajit. The ebuild had some overrides but not
in enough places. This commit should fix install & tests.
Closes: https://bugs.gentoo.org/633770
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
src_test() {
emake \
+ LUA_PKG_NAME=$(usex luajit 'luajit' 'lua') \
LUA_BIN_NAME=$(usex luajit 'luajit' 'lua') \
run-tests
}
src_install() {
emake \
+ LUA_PKG_NAME=$(usex luajit 'luajit' 'lua') \
+ LUA_BIN_NAME=$(usex luajit 'luajit' 'lua') \
DESTDIR="${D}" \
PREFIX="${EPREFIX}/usr" \
DOCDIR="${ED}/usr/share/doc/${PF}" \