diff options
Diffstat (limited to 'dev-lua')
-rw-r--r-- | dev-lua/ldoc/files/ldoc-1.4.6-lua_version.patch | 14 | ||||
-rw-r--r-- | dev-lua/ldoc/ldoc-1.4.6.ebuild | 3 |
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" |