dev-util/lua-language-server: add 3.5.6

Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
tastytea 2022-09-16 10:51:46 +02:00
parent ede5ed3ec9
commit 238fc28a1c
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 66 additions and 0 deletions

View File

@ -1,2 +1,3 @@
DIST lua-language-server-3.5.4.zip 30638297 BLAKE2B 17e8e9f4aa489d98f3377e12b4306e426cd6552e2d795e3c27578e9d11742dd19fc559f27af429c6a53eb88b9918b07ed34e2179c14f87af14379ca905959cf9 SHA512 7b053badd1b531997e611e363d04c645f574780bc4aeb7f9fa593af46274dbf4a7899c988df156722997b3556e2826eb0320faf2fb5132657481045151f04c5e
DIST lua-language-server-3.5.5.zip 30638425 BLAKE2B b0e276e3635ed2e78d6a4660b9dee978d2066b804c9700287c8a11380a3756a56d9d3893fa02b9770c5a976233e539a933bda9466452d788767d0cc03e060ee0 SHA512 090227011b1c18f5d3aac36777db293f827663c5b075ac574b132b46d812b46aaf9078b6ab49a47528cc9c38d9a6e67768b5efa7fbaf4d09794cbca9ead14a57
DIST lua-language-server-3.5.6.zip 30682527 BLAKE2B e6ee427a7e1c3312c314c7f628d342dd525f757bcec798c82d8b4e521dbe62e0dbaccf57dd490ff26cb88201b3260fed3103e389fb05c698a9202dfd24023268 SHA512 afb02bfb87169863ebb29543a0bb2ad5dcbb7bcae2f226472ede6afffec5ba6547596ec0130c693daf52b40d9986da60405516d6ff85faee6c103573572139ec

View File

@ -0,0 +1,65 @@
# Copyright 2020-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# TODO: unbundle deps, set flags correctly, verbose luamake, less sed hacks
EAPI=8
LUA_COMPAT=( lua{5-{1,3,4},jit} )
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"
SRC_URI="https://github.com/sumneko/${PN}/releases/download/${PV}/${P}-submodules.zip -> ${P}.zip"
S="${WORKDIR}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
REQUIRED_USE="${LUA_REQUIRED_USE}"
RESTRICT="!test? ( test )"
DEPEND="${LUA_DEPS}"
RDEPEND="${DEPEND}"
BDEPEND="
app-arch/unzip
dev-util/ninja
"
QA_PREBUILT="/opt/lua-language-server/bin/lua-language-server"
src_prepare() {
sed -i "s/^cc = gcc$/cc = $(tc-getCC)/" \
3rd/luamake/compile/ninja/linux.ninja || die
sed -i "/require \"make.detect_platform\"/a lm.cc = '$(tc-getCC)'" \
make.lua || die
sed -i "s/flags = \"-Wall -Werror\"/flags = \"-Wall ${CXXFLAGS}\"/" \
make/code_format.lua || die
prefixify_ro "${FILESDIR}"/wrapper.sh
default
}
src_compile() {
eninja -C 3rd/luamake -f compile/ninja/linux.ninja $(usex test '' 'luamake')
./3rd/luamake/luamake $(usex test '' 'all') || die
}
src_install() {
newbin "${T}"/wrapper.sh ${PN}
into /opt/${PN}
dobin bin/${PN}
insinto /opt/${PN}/bin
doins bin/main.lua
insinto /opt/${PN}
doins -r debugger.lua main.lua locale meta script
einstalldocs
}