Gentoo Archives: gentoo-commits

From: Marek Szuba <marecki@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-themes/gtk-engines/
Date: Tue, 22 Dec 2020 17:32:36
Message-Id: 1608658337.205b0f865a75f324a828a7c8725f8893b76cecfb.marecki@gentoo
1 commit: 205b0f865a75f324a828a7c8725f8893b76cecfb
2 Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 22 17:20:32 2020 +0000
4 Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 22 17:32:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=205b0f86
7
8 x11-themes/gtk-engines-2.20.2-r100: make USE=lua work for non-native ABIs
9
10 As predicted, I have ended up simply patching configure.
11
12 Closes: https://bugs.gentoo.org/752888
13 Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
14
15 .../gtk-engines/gtk-engines-2.20.2-r100.ebuild | 20 +++++++-------------
16 1 file changed, 7 insertions(+), 13 deletions(-)
17
18 diff --git a/x11-themes/gtk-engines/gtk-engines-2.20.2-r100.ebuild b/x11-themes/gtk-engines/gtk-engines-2.20.2-r100.ebuild
19 index 597dc742bc9..39c7e74458e 100644
20 --- a/x11-themes/gtk-engines/gtk-engines-2.20.2-r100.ebuild
21 +++ b/x11-themes/gtk-engines/gtk-engines-2.20.2-r100.ebuild
22 @@ -42,25 +42,19 @@ PATCHES=(
23
24 src_prepare() {
25 gnome2_src_prepare
26 + # pkgconfig wrapper set up by lua-single.eclass is not multilib-compatible
27 + # at present so point Autoconf directly to the correct implementation.
28 + # We patch configure rather than configure.ac because running 'eautoreconf'
29 + # results for some reason in corrupted test Makefiles.
30 + sed -i -e "s|\"lua\"|\"${ELUA}\"|g" configure || die
31 }
32
33 multilib_src_configure() {
34 local confopts=(
35 --enable-animation
36 + $(use_enable lua)
37 + $(use_with lua system-lua)
38 )
39 - # TODO: fix system-lua detection so that it works for non-native ABIs,
40 - # native builds rely on the pkgconfig wrapper set up by lua-single.eclass
41 - # but that wrapper is not multilib-compatible.
42 - if multilib_is_native_abi; then
43 - confopts+=(
44 - $(use_enable lua)
45 - $(use_with lua system-lua)
46 - )
47 - else
48 - confopts+=(
49 - --disable-lua
50 - )
51 - fi
52 ECONF_SOURCE=${S} gnome2_src_configure "${confopts[@]}"
53 }