gentoo/dev-lua/ldoc/files/ldoc-1.5.0-slotted_lua.patch
Nicolas PARLANT 7a657456cf
dev-lua/ldoc: add 1.5.0 with EAPI 8 and test
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>
2026-01-07 02:50:11 +00:00

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