commit: 3821a11452bc185586530f578f68fa2f6e5d1039
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 29 16:45:22 2020 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Sun Nov 29 17:08:53 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3821a114
www-client/luakit: fix USE=-luajit logic
This was not complete before because in the event of dev-lang/luajit
having been present, it would result in the luakit executable being
built against PUC Lua but luakit.so and the test suite against LuaJIT.
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
www-client/luakit/luakit-2.2.1.ebuild | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/www-client/luakit/luakit-2.2.1.ebuild
b/www-client/luakit/luakit-2.2.1.ebuild
index efeb361d7b9..6821a2d84cd 100644
--- a/www-client/luakit/luakit-2.2.1.ebuild
+++ b/www-client/luakit/luakit-2.2.1.ebuild
@@ -55,7 +55,8 @@ src_configure() {
src_compile() {
emake \
PREFIX="${EPREFIX}/usr" \
- ${PN}
+ USE_LUAJIT=$(usex luajit 1 0) \
+ ${PN} ${PN}.so
use doc && emake doc
}
@@ -66,7 +67,9 @@ src_test() {
mv tests/async/${failing_test}.lua{,.disabled} || die
done
- emake run-tests
+ emake \
+ USE_LUAJIT=$(usex luajit 1 0) \
+ run-tests
}
src_install() {