summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2020-11-29 17:45:22 +0100
committerMarek Szuba <marecki@gentoo.org>2020-11-29 18:08:53 +0100
commit3821a11452bc185586530f578f68fa2f6e5d1039 (patch)
tree090a63208b176d2b057fe3eb9bf48346e3688441
parentdev-libs/libinput: stable 1.16.3 for sparc (diff)
downloadgentoo-3821a11452bc185586530f578f68fa2f6e5d1039.tar.gz
gentoo-3821a11452bc185586530f578f68fa2f6e5d1039.tar.bz2
gentoo-3821a11452bc185586530f578f68fa2f6e5d1039.zip
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@gentoo.org>
-rw-r--r--www-client/luakit/luakit-2.2.1.ebuild7
1 files 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 efeb361d7b9d..6821a2d84cd7 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() {