aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorILMostro <ilmostro7@gmail.com>2018-06-19 23:51:03 -0500
committerILMostro <ilmostro7@gmail.com>2018-06-19 23:51:03 -0500
commitfec06a8f85f5f5d9ee56081e52b537c5bea7867b (patch)
treefa0c540ff7e5693ff347d5b47c2c738c3c4e0b44 /dev-lua
parentfind lua version correctly for lgi (diff)
downloadag-ops-fec06a8f85f5f5d9ee56081e52b537c5bea7867b.tar.gz
ag-ops-fec06a8f85f5f5d9ee56081e52b537c5bea7867b.tar.bz2
ag-ops-fec06a8f85f5f5d9ee56081e52b537c5bea7867b.zip
added patch for `dev-lua/ldoc` to find correct, current version of lua being used
Diffstat (limited to 'dev-lua')
-rw-r--r--dev-lua/ldoc/files/ldoc-1.4.6-lua_version.patch14
-rw-r--r--dev-lua/ldoc/ldoc-1.4.6.ebuild3
2 files changed, 16 insertions, 1 deletions
diff --git a/dev-lua/ldoc/files/ldoc-1.4.6-lua_version.patch b/dev-lua/ldoc/files/ldoc-1.4.6-lua_version.patch
new file mode 100644
index 0000000..8b2223d
--- /dev/null
+++ b/dev-lua/ldoc/files/ldoc-1.4.6-lua_version.patch
@@ -0,0 +1,14 @@
+diff --git a/makefile b/makefile
+index c85933b..a415963 100644
+--- a/makefile
++++ b/makefile
+@@ -1,7 +1,8 @@
+ LUA= $(shell echo `which lua`)
++LUA_VERSION=$(shell readlink -e "${EROOT}"/usr/bin/lua | sed -ne 's:.*/usr/bin/lua\([\d.-]*\):\1:p')
+ LUA_BINDIR= $(shell echo `dirname $(LUA)`)
+ LUA_PREFIX= $(shell echo `dirname $(LUA_BINDIR)`)
+-LUA_SHAREDIR=$(LUA_PREFIX)/share/lua/5.1
++LUA_SHAREDIR=$(LUA_PREFIX)/share/lua/$(LUA_VERSION)
+
+ ldoc:
+
diff --git a/dev-lua/ldoc/ldoc-1.4.6.ebuild b/dev-lua/ldoc/ldoc-1.4.6.ebuild
index e7155dd..2e9c28d 100644
--- a/dev-lua/ldoc/ldoc-1.4.6.ebuild
+++ b/dev-lua/ldoc/ldoc-1.4.6.ebuild
@@ -15,7 +15,8 @@ IUSE=""
RDEPEND="dev-lua/penlight"
DEPEND="${RDEPEND}"
-PATCHES=( "${FILESDIR}/${PN}-1.4.6-mkdir.patch" )
+PATCHES=( "${FILESDIR}/${PN}-1.4.6-mkdir.patch"
+"${FILESDIR}/${P}-lua_version.patch" )
S="${WORKDIR}/LDoc-${PV}"
RESTRICT="test"