Gentoo Archives: gentoo-dev

From: Marek Szuba <marecki@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH 0/4] Eclass for single-impl Lua ebuilds
Date: Wed, 30 Sep 2020 16:23:37
1 Same as lua.eclass and python-r1, this is a Lua version of
2 python-single-r1. Setting LUA_SINGLE_TARGETS allows one to choose the
3 (slotted) Lua implementation to build your ebuild against, optionally
4 including both single- and multi-implementation Lua packages as
5 dependencies.
7 Tested using modified ebuilds of the following packages:
9 - dev-lua/lgi - the multi-impl package I previously used to test
10 lua.eclass, rebuilt this time to make sure said eclass still works
11 properly after having moved some variables and functions to
12 lua-utils.eclass (it does);
14 - x11-wm/awesome - single-implementation, unconditionally depends on
15 both dev-lang/lua itself and dev-lua/lgi (as well as some other
16 dev-lua packages used by the test suite, which however I ignored).
17 Links fine against whichever Lua version is selected by
18 LUA_SINGLE_TARGET, requiring correct LUA_TARGETS to be enabled for
19 dev-lua/lgi in either case;
21 - media-gfx/darktable - conditional dependency on dev-lang/lua
22 controlled by USE=lua. Also builds fine, although with it only
23 supporting lua-5.3+ there wasn't much I could do in terms of version
24 switching beyond confirming that LUA_REQUIRED_USE correctly specifies
25 that exactly one single target must be specified.