dev-util/lua-language-server: use prefix eclass for wrapper
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
parent
b6d015047f
commit
643bf03fdc
|
@ -5,8 +5,8 @@ DATAPATH="${XDG_DATA_HOME:-${HOME}/.local/share}/lua-language-server"
|
||||||
STATEPATH="${XDG_STATE_HOME:-${HOME}/.local/state}/lua-language-server"
|
STATEPATH="${XDG_STATE_HOME:-${HOME}/.local/state}/lua-language-server"
|
||||||
mkdir --parents ${DATAPATH} ${STATEPATH}
|
mkdir --parents ${DATAPATH} ${STATEPATH}
|
||||||
|
|
||||||
exec EPREFIX/opt/lua-language-server/bin/lua-language-server \
|
exec @GENTOO_PORTAGE_EPREFIX@/opt/lua-language-server/bin/lua-language-server \
|
||||||
-E EPREFIX/opt/lua-language-server/main.lua \
|
-E @GENTOO_PORTAGE_EPREFIX@/opt/lua-language-server/main.lua \
|
||||||
--logpath="${STATEPATH}/log" \
|
--logpath="${STATEPATH}/log" \
|
||||||
--metapath="${DATAPATH}/meta" \
|
--metapath="${DATAPATH}/meta" \
|
||||||
"$@"
|
"$@"
|
|
@ -7,7 +7,7 @@ EAPI=8
|
||||||
|
|
||||||
LUA_COMPAT=( lua{5-{1,3,4},jit} )
|
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"
|
DESCRIPTION="A language server that offers Lua language support"
|
||||||
HOMEPAGE="https://github.com/sumneko/lua-language-server"
|
HOMEPAGE="https://github.com/sumneko/lua-language-server"
|
||||||
|
@ -39,7 +39,7 @@ src_prepare() {
|
||||||
sed -i "s/flags = \"-Wall -Werror\"/flags = \"-Wall ${CXXFLAGS}\"/" \
|
sed -i "s/flags = \"-Wall -Werror\"/flags = \"-Wall ${CXXFLAGS}\"/" \
|
||||||
make/code_format.lua || die
|
make/code_format.lua || die
|
||||||
|
|
||||||
sed "s/EPREFIX/${EPREFIX}/g" "${FILESDIR}"/wrapper-r1.sh.in > wrapper.sh || die
|
prefixify_ro "${FILESDIR}"/wrapper.sh
|
||||||
|
|
||||||
default
|
default
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ src_compile() {
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
newbin wrapper.sh ${PN}
|
newbin "${T}"/wrapper.sh ${PN}
|
||||||
|
|
||||||
into /opt/${PN}
|
into /opt/${PN}
|
||||||
dobin bin/${PN}
|
dobin bin/${PN}
|
||||||
|
|
Reference in New Issue
Block a user