mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
No point in making this multi-impl regardless of the fact it installs some Lua modules, from what I can tell LDoc is meant to be always used as a command-line tool. Closes: https://bugs.gentoo.org/752897 Signed-off-by: Marek Szuba <marecki@gentoo.org>
22 lines
732 B
Diff
22 lines
732 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,13 +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
|
|
|
|
ldoc:
|
|
|
|
install: install_parts
|
|
mkdir -p $(DESTDIR)$(LUA_BINDIR)
|
|
- echo "lua $(LUA_SHAREDIR)/ldoc.lua \$$*" > $(DESTDIR)$(LUA_BINDIR)/ldoc
|
|
+ echo "$(LUA) $(LUA_SHAREDIR)/ldoc.lua \$$*" > $(DESTDIR)$(LUA_BINDIR)/ldoc
|
|
chmod +x $(DESTDIR)$(LUA_BINDIR)/ldoc
|
|
|
|
install_luajit: install_parts
|