mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-05-01 05:08:10 -07:00
update EAPI 7 -> 8
enable lua5-4
add missing ${LUA_DEPS}
add test
Closes: https://bugs.gentoo.org/905964
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
Part-of: https://github.com/gentoo/gentoo/pull/45270
Closes: https://github.com/gentoo/gentoo/pull/45270
Signed-off-by: Sam James <sam@gentoo.org>
22 lines
783 B
Diff
22 lines
783 B
Diff
Do not try to auto-guess Lua directories from the path to the interpreter,
|
|
it does not work with the wrapper set up by lua-single.eclass. Use the
|
|
values of LUA, LUA_BINDIR and LUA_SHAREDIR provided by the ebuild instead.
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -1,14 +1,9 @@
|
|
-LUA= $(shell echo `which lua`)
|
|
-LUA_BINDIR= $(shell echo `dirname $(LUA)`)
|
|
-LUA_PREFIX= $(shell echo `dirname $(LUA_BINDIR)`)
|
|
-LUA_SHAREDIR=$(LUA_PREFIX)/share/lua/5.1
|
|
-
|
|
_REPODIR != cd "$(shell dirname $(firstword $(MAKEFILE_LIST)))/" && pwd
|
|
|
|
ldoc:
|
|
|
|
install: install_parts
|
|
- @echo "lua $(LUA_SHAREDIR)/ldoc.lua \$$*" > "$(DESTDIR)$(LUA_BINDIR)/ldoc"
|
|
+ @echo "$(LUA) $(LUA_SHAREDIR)/ldoc.lua \$$*" > "$(DESTDIR)$(LUA_BINDIR)/ldoc"
|
|
@chmod -v +x "$(DESTDIR)$(LUA_BINDIR)/ldoc"
|
|
|
|
install_luajit: install_parts
|