dev-util/lua-language-server: use prefix eclass for wrapper

Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
tastytea 2022-08-28 00:06:31 +02:00
parent b6d015047f
commit 643bf03fdc
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 5 additions and 5 deletions

View File

@ -5,8 +5,8 @@ DATAPATH="${XDG_DATA_HOME:-${HOME}/.local/share}/lua-language-server"
STATEPATH="${XDG_STATE_HOME:-${HOME}/.local/state}/lua-language-server"
mkdir --parents ${DATAPATH} ${STATEPATH}
exec EPREFIX/opt/lua-language-server/bin/lua-language-server \
-E EPREFIX/opt/lua-language-server/main.lua \
exec @GENTOO_PORTAGE_EPREFIX@/opt/lua-language-server/bin/lua-language-server \
-E @GENTOO_PORTAGE_EPREFIX@/opt/lua-language-server/main.lua \
--logpath="${STATEPATH}/log" \
--metapath="${DATAPATH}/meta" \
"$@"

View File

@ -7,7 +7,7 @@ EAPI=8
LUA_COMPAT=( lua{5-{1,3,4},jit} )
inherit lua-single ninja-utils toolchain-funcs
inherit lua-single ninja-utils prefix toolchain-funcs
DESCRIPTION="A language server that offers Lua language support"
HOMEPAGE="https://github.com/sumneko/lua-language-server"
@ -39,7 +39,7 @@ src_prepare() {
sed -i "s/flags = \"-Wall -Werror\"/flags = \"-Wall ${CXXFLAGS}\"/" \
make/code_format.lua || die
sed "s/EPREFIX/${EPREFIX}/g" "${FILESDIR}"/wrapper-r1.sh.in > wrapper.sh || die
prefixify_ro "${FILESDIR}"/wrapper.sh
default
}
@ -50,7 +50,7 @@ src_compile() {
}
src_install() {
newbin wrapper.sh ${PN}
newbin "${T}"/wrapper.sh ${PN}
into /opt/${PN}
dobin bin/${PN}