Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/luakit/
Date: Sun, 29 Nov 2020 17:09:07
Message-Id: 1606669733.3821a11452bc185586530f578f68fa2f6e5d1039.marecki@gentoo
1 commit: 3821a11452bc185586530f578f68fa2f6e5d1039
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 29 16:45:22 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 29 17:08:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3821a114
7
8 www-client/luakit: fix USE=-luajit logic
9
10 This was not complete before because in the event of dev-lang/luajit
11 having been present, it would result in the luakit executable being
12 built against PUC Lua but luakit.so and the test suite against LuaJIT.
13
14 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
15
16 www-client/luakit/luakit-2.2.1.ebuild | 7 +++++--
17 1 file changed, 5 insertions(+), 2 deletions(-)
18
19 diff --git a/www-client/luakit/luakit-2.2.1.ebuild b/www-client/luakit/luakit-2.2.1.ebuild
20 index efeb361d7b9..6821a2d84cd 100644
21 --- a/www-client/luakit/luakit-2.2.1.ebuild
22 +++ b/www-client/luakit/luakit-2.2.1.ebuild
23 @@ -55,7 +55,8 @@ src_configure() {
24 src_compile() {
25 emake \
26 PREFIX="${EPREFIX}/usr" \
27 - ${PN}
28 + USE_LUAJIT=$(usex luajit 1 0) \
29 + ${PN} ${PN}.so
30
31 use doc && emake doc
32 }
33 @@ -66,7 +67,9 @@ src_test() {
34 mv tests/async/${failing_test}.lua{,.disabled} || die
35 done
36
37 - emake run-tests
38 + emake \
39 + USE_LUAJIT=$(usex luajit 1 0) \
40 + run-tests
41 }
42
43 src_install() {