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

Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
tastytea 2023-02-15 12:17:35 +01:00
parent acc9dbe4d0
commit cfba4a4530
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.6.10.zip 31998049 BLAKE2B 8c15c583c947cea7647d40fc82114c2f4ec4d1025377ce796b002f3761137e6499feccb934b5b5f0466d2f612b4801dc2ba7e6984027527b5c2174d6895d15ce SHA512 a49c28990e00115eaac83e615079192adfd39655436babc86dafe3660912c10346ab99c418272ac4a9c2113a98921b9b07c0c20bdf62fe633872417127247509
DIST lua-language-server-3.6.11.zip 32022639 BLAKE2B 9e5a33b12e40f8b9f7b3eb5a8b049e09e8a7f0b5a5569ee15d5aa2a2035a13a6e75036321aac439a97c56c401914908f878e2f02a136c1de9413f2a9879a56c1 SHA512 6474ad8c84af034002e124a802a28afccb7f7ea439b00b508639a4a20471b5eed995dacf12fe0c8cb2313530fba787fa1127712093402e4e67c7d72e5118ce59
DIST lua-language-server-3.6.8.zip 389244327 BLAKE2B 67299716586bd01f2fc48319b68319b48090b87d8f4c72b79c52022af39140490983edfd1145d88616c1fabcb7f6a62bed8defbab7a8f4fe3330176812994a58 SHA512 bf5633e7570fa44d62bb5a2e4414d4f0e197fcef3b1a9876ea90cf37a79ae17afaaecdc5d54917cc7fb44e01b7db34abd6329cef0df4e3207177a0a6a8ec54f2

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
}