summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2021-01-07 17:11:03 -0600
committerMarek Szuba <marecki@gentoo.org>2021-06-07 13:57:30 +0100
commitc05bf0003a8248e01a9663654f160553826f5b85 (patch)
treee00c21ba6ad2e4d031346f0b9b8bc2130cb2ac02 /eclass
parentdev-python/pikepdf: Bump to 2.12.2 (diff)
downloadgentoo-c05bf0003a8248e01a9663654f160553826f5b85.tar.gz
gentoo-c05bf0003a8248e01a9663654f160553826f5b85.tar.bz2
gentoo-c05bf0003a8248e01a9663654f160553826f5b85.zip
eclass/lua-utils.eclass: remove EPREFIX from exported paths
Closes: https://bugs.gentoo.org/768909 Signed-off-by: William Hubbs <williamh@gentoo.org> Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/lua-utils.eclass7
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/lua-utils.eclass b/eclass/lua-utils.eclass
index 0589318ef519..ddf44f354e17 100644
--- a/eclass/lua-utils.eclass
+++ b/eclass/lua-utils.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: lua-utils.eclass
@@ -212,7 +212,9 @@ _lua_get_library_file() {
die "Invalid implementation: ${impl}"
;;
esac
+
libdir=$($(tc-getPKG_CONFIG) --variable libdir ${impl}) || die
+ libdir="${libdir#${ESYSROOT#${SYSROOT}}}"
debug-print "${FUNCNAME}: libdir = ${libdir}, libname = ${libname}"
echo "${libdir}/${libname}"
@@ -274,6 +276,7 @@ _lua_export() {
local val
val=$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD ${impl}) || die
+ val="${val#${ESYSROOT#${SYSROOT}}}"
export LUA_CMOD_DIR=${val}
debug-print "${FUNCNAME}: LUA_CMOD_DIR = ${LUA_CMOD_DIR}"
@@ -282,6 +285,7 @@ _lua_export() {
local val
val=$($(tc-getPKG_CONFIG) --variable includedir ${impl}) || die
+ val="${val#${ESYSROOT#${SYSROOT}}}"
export LUA_INCLUDE_DIR=${val}
debug-print "${FUNCNAME}: LUA_INCLUDE_DIR = ${LUA_INCLUDE_DIR}"
@@ -298,6 +302,7 @@ _lua_export() {
local val
val=$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD ${impl}) || die
+ val="${val#${ESYSROOT#${SYSROOT}}}"
export LUA_LMOD_DIR=${val}
debug-print "${FUNCNAME}: LUA_LMOD_DIR = ${LUA_LMOD_DIR}"