mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-17 23:18:52 -04:00
dev-util/lua-language-server: add 3.13.5
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
This commit is contained in:
parent
96715f1583
commit
d2c0bf8cc1
@ -1,3 +1,4 @@
|
||||
DIST lua-language-server-3.10.5.zip 31421439 BLAKE2B 1f2c0adc941eff92bf5e5a0d559ee5c271c870dafa63632427ed0100587259acdee9e40a29f44956e5761a1139b31b7f2e1cd5ec150172905b52ee142f8ccdc5 SHA512 9197382d1fa7ae213134415a7e09847977b06752b63c942948fc6d2bc11d3a8532e318a3ed547bec9763c6f74753ba422e3029d6ca328252ea9ba01892ec41e6
|
||||
DIST lua-language-server-3.13.5.zip 31467376 BLAKE2B 0912eca36a80b4a384c8ca3001aa7105cee5959134315db96c0d72383375a2930c5a5586839fd24a94f34af30bce05ab1dcc1574f5afe80ce83ee35e2db3d2ce SHA512 45135de2ae88e5305e0c62d573cbeb1c59b1fe43fa72acd43bd865028b920f00edcfc6143c3e9a4835be75bfa11afb00dafedcafc2f7cda2970072e28d8b588d
|
||||
DIST lua-language-server-3.9.1.zip 32595453 BLAKE2B 53e13639a6b60805c074b617c53503360388da3c6ee1c887845bff472dfea7048b5b8793968df068c747c925648feb3f851a2eca42c6a21e33b0f6242b1b80e7 SHA512 305b036d804d3864a0baecabf4cc9bf46f0bd9ffcf3cb5ced9f57b0b29b8d9231b7283970ef38bd1669be05da795f08627a56a5eb83a70d71e2768254cf497bc
|
||||
DIST lua-language-server-3.9.3.zip 32597071 BLAKE2B aa7bf85304e0dafda3b573f8569961e05b99849a513799d4f295346d4dd6d27e9ddd53dccf30facf71549199fd46b989a402768e35f1381ab382a3c2c1a607f6 SHA512 40c5dbdfc05c7ab65524f3dd8f238a77c1be2a9631877a8a83a137b3005d91e266e42526a59856d0c8b40d69b7345e6780c368e10e0d54252b01f5889b334a8c
|
||||
|
@ -0,0 +1,90 @@
|
||||
# Copyright 2022-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LUA_COMPAT=( lua{5-{1,3,4},jit} )
|
||||
|
||||
inherit ninja-utils toolchain-funcs lua-single prefix
|
||||
|
||||
DESCRIPTION="Lua language server"
|
||||
HOMEPAGE="https://github.com/LuaLS/lua-language-server"
|
||||
SRC_URI="https://github.com/LuaLS/lua-language-server/releases/download/${PV}/${P}-submodules.zip -> ${P}.zip"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="test"
|
||||
REQUIRE_USE="${LUA_REQUIRED_USE}"
|
||||
|
||||
DEPEND="${LUA_DEPS}"
|
||||
RDEPEND="${DEPEND}"
|
||||
BDEPEND="
|
||||
app-alternatives/ninja
|
||||
app-arch/unzip
|
||||
"
|
||||
RESTRICT="!test? ( test )"
|
||||
PATCHES=(
|
||||
"${FILESDIR}/linux.ninja.patch"
|
||||
"${FILESDIR}/build.ninja.patch"
|
||||
"${FILESDIR}/${PN}-3.10.5-uint32_t-fix.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# Remove hardcoded gcc references
|
||||
sed -i "/lm.cxx/a lm.cc = '$(tc-getCC)'" \
|
||||
make.lua || die
|
||||
sed -i "s/CC = gcc/ CC = ${tc-getCC}/" \
|
||||
3rd/lpeglabel/makefile || die
|
||||
# Shipped file doesn't respect CFLAGS/CXXFLAGS/LDFLAGS
|
||||
eapply "${FILESDIR}/linux.ninja.patch"
|
||||
eapply_user
|
||||
sed -i -e "s/^cc = REPLACE_ME/cc = $(tc-getCC)/" \
|
||||
-e "s/^ar = REPLACE_AR/ar = $(tc-getAR)/" \
|
||||
-e "s/CFLAGS/${CFLAGS}/" \
|
||||
-e "s/CXXFLAGS/${CXXFLAGS}/" \
|
||||
-e "s/LDFLAGS/${LDFLAGS}/" \
|
||||
3rd/luamake/compile/ninja/linux.ninja || die
|
||||
|
||||
prefixify_ro "${FILESDIR}/wrapper.sh"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
eninja -C 3rd/luamake -f compile/ninja/linux.ninja "$(usex test "test" "luamake")"
|
||||
use test && eninja -C 3rd/luamake -f compile/ninja/linux.ninja luamake
|
||||
./3rd/luamake/luamake init || die
|
||||
|
||||
# Generated file doesn't respect CFLAGS/CXXFLAGS/LDFLAGS
|
||||
sed -i -e "s/^cc =.*./cc = REPLACE_ME/" \
|
||||
-e "s/^ar =.*./ar = REPLACE_AR/" \
|
||||
build/build.ninja || die
|
||||
|
||||
eapply "${FILESDIR}/build.ninja.patch"
|
||||
eapply "${FILESDIR}/${PN}-3.10.5-uint32_t-fix.patch"
|
||||
sed -i -e "s/REPLACE_ME/$(tc-getCC)/" \
|
||||
-e "s/REPLACE_AR/$(tc-getAR)/" \
|
||||
-e "s|LUAMAKE_PATH|${S}/3rd/luamake/luamake|" \
|
||||
-e "s/CFLAGS/${CFLAGS}/" \
|
||||
-e "s/CXXFLAGS/${CXXFLAGS}/" \
|
||||
-e "s/LDFLAGS/${LDFLAGS}/" \
|
||||
build/build.ninja || die
|
||||
|
||||
use test && eninja -f build/build.ninja || eninja -f build/build.ninja all
|
||||
rm -rf meta/198256b1
|
||||
}
|
||||
|
||||
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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user