diff options
author | Brahmajit Das <brahmajit.xyz@gmail.com> | 2024-05-30 04:30:31 +0530 |
---|---|---|
committer | Brahmajit Das <brahmajit.xyz@gmail.com> | 2024-05-30 04:30:31 +0530 |
commit | f3f33bb207fcc3db02a3388ae1073e2d200c3459 (patch) | |
tree | b86e1bf2e61ca33587143f8add7e53e2504f39f5 /dev-util | |
parent | sys-kernel/ugrd: Add 1.10.0 (diff) | |
download | guru-f3f33bb207fcc3db02a3388ae1073e2d200c3459.tar.gz guru-f3f33bb207fcc3db02a3388ae1073e2d200c3459.tar.bz2 guru-f3f33bb207fcc3db02a3388ae1073e2d200c3459.zip |
dev-util/lua-language-server: Drop 3.7.3
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Diffstat (limited to 'dev-util')
7 files changed, 19 insertions, 296 deletions
diff --git a/dev-util/lua-language-server/Manifest b/dev-util/lua-language-server/Manifest index 7c1f24262..0deeaf219 100644 --- a/dev-util/lua-language-server/Manifest +++ b/dev-util/lua-language-server/Manifest @@ -1,2 +1 @@ -DIST lua-language-server-3.7.3.zip 31522954 BLAKE2B 979f6de423d56b8781bfd3315d2d64cfe3082e3eecdf1203d7159d93f7bffa01f7330fe41c73949ece01fede8b987726cba54b884a07088d6ce6111802bede0a SHA512 db59d2987b09bb90fcdc362294d7b28b1652613414970856b54343c2a6ec791744dd524e505cb1495c0014c37288a8f5f5a849c64391a3e1a716bbe6788adcf2 DIST lua-language-server-3.9.1.zip 32595453 BLAKE2B 53e13639a6b60805c074b617c53503360388da3c6ee1c887845bff472dfea7048b5b8793968df068c747c925648feb3f851a2eca42c6a21e33b0f6242b1b80e7 SHA512 305b036d804d3864a0baecabf4cc9bf46f0bd9ffcf3cb5ced9f57b0b29b8d9231b7283970ef38bd1669be05da795f08627a56a5eb83a70d71e2768254cf497bc diff --git a/dev-util/lua-language-server/files/build.ninja.patch b/dev-util/lua-language-server/files/build.ninja.patch index bb9891e2d..5485c3186 100644 --- a/dev-util/lua-language-server/files/build.ninja.patch +++ b/dev-util/lua-language-server/files/build.ninja.patch @@ -1,4 +1,4 @@ ---- a/build/build.ninja +--- b/build/build.ninja +++ b/build/build.ninja @@ -14,7 +14,7 @@ make/code_format.lua @@ -35,21 +35,12 @@ description = Compile C++ $out deps = gcc depfile = $out.d -@@ -87,7 +87,7 @@ - 3rd/bee.lua/binding/lua_time.cpp +@@ -94,7 +94,7 @@ + 3rd/bee.lua/binding/luaref.cpp rule c_source_lua - command = $cc -MMD -MT $out -MF $out.d -std=c11 -O2 -Wall $ -- -fvisibility=hidden -DNDEBUG -fPIC -o $out -c $in -+ -fvisibility=hidden -DNDEBUG -fPIC -o $out -c $in CFLAGS - description = Compile C $out - deps = gcc - depfile = $out.d -@@ -95,7 +95,7 @@ - 3rd/bee.lua/3rd/lua/utf8_crt.c - rule c_source_lua_1 command = $cc -MMD -MT $out -MF $out.d -std=c11 -O2 -Wall -DMAKE_LIB $ -- -DLUA_USE_LINUX -DNDEBUG -Wno-maybe-uninitialized -fPIC -o $out -c $in -+ -DLUA_USE_LINUX -DNDEBUG -Wno-maybe-uninitialized -fPIC -o $out -c $in CFLAGS +- -DLUA_USE_LINUX -DNDEBUG -fPIC -Wno-maybe-uninitialized -o $out -c $in ++ -DLUA_USE_LINUX -DNDEBUG -fPIC -Wno-maybe-uninitialized -o $out -c $in CFLAGS description = Compile C $out deps = gcc depfile = $out.d diff --git a/dev-util/lua-language-server/files/build.ninja_v2.patch b/dev-util/lua-language-server/files/build.ninja_v2.patch deleted file mode 100644 index 5485c3186..000000000 --- a/dev-util/lua-language-server/files/build.ninja_v2.patch +++ /dev/null @@ -1,102 +0,0 @@ ---- b/build/build.ninja -+++ b/build/build.ninja -@@ -14,7 +14,7 @@ - make/code_format.lua - rule c_source_bee - command = $cc -MMD -MT $out -MF $out.d -std=c11 -O2 -Wall $ -- -fvisibility=hidden -I$builddir/lua54 -DNDEBUG -fPIC -o $out -c $in -+ -fvisibility=hidden -I$builddir/lua54 -DNDEBUG -fPIC -o $out -c $in CFLAGS - description = Compile C $out - deps = gcc - depfile = $out.d -@@ -22,14 +22,14 @@ - 3rd/bee.lua/3rd/lua-seri/lua-seri.c - rule cxx_source_bee - command = $cc -MMD -MT $out -MF $out.d -std=c++17 -fno-rtti -O2 -Wall $ -- -fvisibility=hidden -DNDEBUG -fPIC -o $out -c $in -+ -fvisibility=hidden -DNDEBUG -fPIC -o $out -c $in CXXFLAGS - description = Compile C++ $out - deps = gcc - depfile = $out.d - build $obj/source_bee/format.obj: cxx_source_bee 3rd/bee.lua/3rd/fmt/format.cc - rule cxx_source_bee_1 - command = $cc -MMD -MT $out -MF $out.d -std=c++17 -fno-rtti -O2 -Wall $ -- -fvisibility=hidden -I3rd/bee.lua -DNDEBUG -fPIC -o $out -c $in -+ -fvisibility=hidden -I3rd/bee.lua -DNDEBUG -fPIC -o $out -c $in CXXFLAGS - description = Compile C++ $out - deps = gcc - depfile = $out.d -@@ -65,7 +65,7 @@ - rule cxx_source_bee_2 - command = $cc -MMD -MT $out -MF $out.d -std=c++17 -fno-rtti -O2 -Wall $ - -fvisibility=hidden -I3rd/bee.lua -I$builddir/lua54 -DBEE_STATIC $ -- -DNDEBUG -fPIC -o $out -c $in -+ -DNDEBUG -fPIC -o $out -c $in CXXFLAGS - description = Compile C++ $out - deps = gcc - depfile = $out.d -@@ -94,7 +94,7 @@ - 3rd/bee.lua/binding/luaref.cpp - rule c_source_lua - command = $cc -MMD -MT $out -MF $out.d -std=c11 -O2 -Wall -DMAKE_LIB $ -- -DLUA_USE_LINUX -DNDEBUG -fPIC -Wno-maybe-uninitialized -o $out -c $in -+ -DLUA_USE_LINUX -DNDEBUG -fPIC -Wno-maybe-uninitialized -o $out -c $in CFLAGS - description = Compile C $out - deps = gcc - depfile = $out.d -@@ -104,7 +104,7 @@ - rule cxx_source_bootstrap - command = $cc -MMD -MT $out -MF $out.d -std=c++17 -fno-rtti -O2 -Wall $ - -fvisibility=hidden -I3rd/bee.lua/3rd/lua -I3rd/bee.lua -DLUA_USE_LINUX $ -- -DNDEBUG -fPIC -o $out -c $in -+ -DNDEBUG -fPIC -o $out -c $in CXXFLAGS - description = Compile C++ $out - deps = gcc - depfile = $out.d -@@ -112,7 +112,7 @@ - 3rd/bee.lua/bootstrap/main.cpp - rule link_bootstrap - command = $cc $in -o $out -Wl,-E -static-libgcc -lm -ldl -lstdc++fs $ -- -pthread -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -s -+ -pthread -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic LDFLAGS - description = Link Exe $out - build $bin/bootstrap: link_bootstrap $obj/source_bootstrap/main.obj $ - $obj/source_bee/lua-seri.obj $obj/source_bee/format.obj $ -@@ -155,8 +155,8 @@ - -fvisibility=hidden -I3rd/EmmyLuaCodeStyle/Util/include $ - -I3rd/EmmyLuaCodeStyle/CodeFormatCore/include $ - -I3rd/EmmyLuaCodeStyle/LuaParser/include -I3rd/bee.lua/3rd/lua $ -- -I3rd/EmmyLuaCodeStyle/3rd/wildcards/include -DNDEBUG -Wall -Werror -o $ -- $out -c $in -+ -I3rd/EmmyLuaCodeStyle/3rd/wildcards/include -DNDEBUG -Wall -o $ -+ $out -c $in CXXFLAGS - description = Compile C++ $out - deps = gcc - depfile = $out.d -@@ -259,7 +259,7 @@ - rule c_lpeglabel - command = $cc -MMD -MT $out -MF $out.d -std=c11 -O2 -Wall $ - -fvisibility=hidden -I3rd/bee.lua/3rd/lua -DMAXRECLEVEL=1000 -DNDEBUG $ -- -o $out -c $in -+ -o $out -c $in CFLAGS - description = Compile C $out - deps = gcc - depfile = $out.d -@@ -271,7 +271,7 @@ - rule cxx_lua_language_server - command = $cc -MMD -MT $out -MF $out.d -std=c++17 -O2 -Wall $ - -fvisibility=hidden -I3rd/bee.lua -I3rd/bee.lua/3rd/lua -DCODE_FORMAT $ -- -DNDEBUG -o $out -c $in -+ -DNDEBUG -o $out -c $in CXXFLAGS - description = Compile C++ $out - deps = gcc - depfile = $out.d -@@ -279,7 +279,7 @@ - make/modules.cpp - rule link_lua_language_server - command = $cc $in -o $out -lm -ldl -lstdc++fs -pthread -Wl,-Bstatic $ -- -lstdc++ -Wl,-Bdynamic -s -+ -lstdc++ -Wl,-Bdynamic LDFLAGS - description = Link Exe $out - build $bin/lua-language-server: link_lua_language_server $ - $obj/lua-language-server/modules.obj $obj/lpeglabel/lplcap.obj $ diff --git a/dev-util/lua-language-server/files/linux.ninja.patch b/dev-util/lua-language-server/files/linux.ninja.patch index 4fedbaccc..b4eba4b75 100644 --- a/dev-util/lua-language-server/files/linux.ninja.patch +++ b/dev-util/lua-language-server/files/linux.ninja.patch @@ -1,6 +1,6 @@ --- a/3rd/luamake/compile/ninja/linux.ninja +++ b/3rd/luamake/compile/ninja/linux.ninja -@@ -2,12 +2,12 @@ +@@ -2,12 +2,12 @@ ninja_required_version = 1.7 builddir = build/linux bin = $builddir/bin obj = $builddir/obj @@ -16,7 +16,7 @@ description = Compile C $out deps = gcc depfile = $out.d -@@ -15,14 +15,14 @@ +@@ -15,14 +15,14 @@ build $obj/source_bee/lua-seri.obj: c_source_bee $ bee.lua/3rd/lua-seri/lua-seri.c rule cxx_source_bee command = $cc -MMD -MT $out -MF $out.d -std=c++17 -fno-rtti -O2 -Wall $ @@ -33,7 +33,7 @@ description = Compile C++ $out deps = gcc depfile = $out.d -@@ -57,7 +57,7 @@ +@@ -58,7 +58,7 @@ build $obj/source_bee/version.obj: cxx_source_bee_1 bee.lua/bee/version.cpp rule cxx_source_bee_2 command = $cc -MMD -MT $out -MF $out.d -std=c++17 -fno-rtti -O2 -Wall $ -fvisibility=hidden -Ibee.lua -Itools/lua54 -DBEE_STATIC -DNDEBUG -fPIC $ @@ -42,30 +42,21 @@ description = Compile C++ $out deps = gcc depfile = $out.d -@@ -80,14 +80,14 @@ +@@ -88,7 +88,7 @@ build $obj/source_bee/luaref.obj: cxx_source_bee_2 bee.lua/binding/luaref.cpp rule c_source_lua - command = $cc -MMD -MT $out -MF $out.d -std=c11 -O2 -Wall $ - -fvisibility=hidden -DNDEBUG -fPIC -o $out -c $in -- description = Compile C $out -+ description = Compile C $out CFLAGS - deps = gcc - depfile = $out.d - build $obj/source_lua/utf8_crt.obj: c_source_lua bee.lua/3rd/lua/utf8_crt.c - rule c_source_lua_1 command = $cc -MMD -MT $out -MF $out.d -std=c11 -O2 -Wall -DMAKE_LIB $ - -DLUA_USE_LINUX -DNDEBUG -Wno-maybe-uninitialized -fPIC -o $out -c $in + -DLUA_USE_LINUX -DNDEBUG -fPIC -Wno-maybe-uninitialized -o $out -c $in - description = Compile C $out + description = Compile C $out CFLAGS deps = gcc depfile = $out.d - build $obj/source_lua/linit.obj: c_source_lua_1 bee.lua/3rd/lua/linit.c -@@ -95,15 +95,15 @@ - rule cxx_source_bootstrap + build $obj/source_lua/linit.obj: c_source_lua bee.lua/3rd/lua/linit.c +@@ -97,14 +97,14 @@ rule cxx_source_bootstrap command = $cc -MMD -MT $out -MF $out.d -std=c++17 -fno-rtti -O2 -Wall $ -fvisibility=hidden -Ibee.lua/3rd/lua -Ibee.lua -DLUA_USE_LINUX $ -- -DNDEBUG -fPIC -o $out -c $in -+ -DNDEBUG -fPIC -o $out -c $in CXXFLAGS - description = Compile C++ $out + -DNDEBUG -fPIC -o $out -c $in +- description = Compile C++ $out ++ description = Compile C++ $out CXXFLAGS deps = gcc depfile = $out.d build $obj/source_bootstrap/main.obj: cxx_source_bootstrap $ @@ -76,5 +67,5 @@ + command = $cc $in -o $out -Wl,-E -static-libgcc -lm -ldl $ + -pthread -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic LDFLAGS description = Link Exe $out - build $bin/bootstrap: link_bootstrap $obj/source_bootstrap/main.obj $ - $obj/source_bee/lua-seri.obj $obj/source_bee/format.obj $ + rule copy + command = cp -fv $in$input $out 1>/dev/null diff --git a/dev-util/lua-language-server/files/linux.ninja_v2.patch b/dev-util/lua-language-server/files/linux.ninja_v2.patch deleted file mode 100644 index b4eba4b75..000000000 --- a/dev-util/lua-language-server/files/linux.ninja_v2.patch +++ /dev/null @@ -1,71 +0,0 @@ ---- a/3rd/luamake/compile/ninja/linux.ninja -+++ b/3rd/luamake/compile/ninja/linux.ninja -@@ -2,12 +2,12 @@ ninja_required_version = 1.7 - builddir = build/linux - bin = $builddir/bin - obj = $builddir/obj --cc = gcc --ar = ar -+cc = REPLACE_ME -+ar = REPLACE_AR - luamake = luamake - rule c_source_bee - command = $cc -MMD -MT $out -MF $out.d -std=c11 -O2 -Wall $ -- -fvisibility=hidden -Itools/lua54 -DNDEBUG -fPIC -o $out -c $in -+ -fvisibility=hidden -Itools/lua54 -DNDEBUG -fPIC -o $out -c $in CFLAGS - description = Compile C $out - deps = gcc - depfile = $out.d -@@ -15,14 +15,14 @@ build $obj/source_bee/lua-seri.obj: c_source_bee $ - bee.lua/3rd/lua-seri/lua-seri.c - rule cxx_source_bee - command = $cc -MMD -MT $out -MF $out.d -std=c++17 -fno-rtti -O2 -Wall $ -- -fvisibility=hidden -DNDEBUG -fPIC -o $out -c $in -+ -fvisibility=hidden -DNDEBUG -fPIC -o $out -c $in CXXFLAGS - description = Compile C++ $out - deps = gcc - depfile = $out.d - build $obj/source_bee/format.obj: cxx_source_bee bee.lua/3rd/fmt/format.cc - rule cxx_source_bee_1 - command = $cc -MMD -MT $out -MF $out.d -std=c++17 -fno-rtti -O2 -Wall $ -- -fvisibility=hidden -Ibee.lua -DNDEBUG -fPIC -o $out -c $in -+ -fvisibility=hidden -Ibee.lua -DNDEBUG -fPIC -o $out -c $in CXXFLAGS - description = Compile C++ $out - deps = gcc - depfile = $out.d -@@ -58,7 +58,7 @@ build $obj/source_bee/version.obj: cxx_source_bee_1 bee.lua/bee/version.cpp - rule cxx_source_bee_2 - command = $cc -MMD -MT $out -MF $out.d -std=c++17 -fno-rtti -O2 -Wall $ - -fvisibility=hidden -Ibee.lua -Itools/lua54 -DBEE_STATIC -DNDEBUG -fPIC $ -- -o $out -c $in -+ -o $out -c $in CXXFLAGS - description = Compile C++ $out - deps = gcc - depfile = $out.d -@@ -88,7 +88,7 @@ build $obj/source_bee/luaref.obj: cxx_source_bee_2 bee.lua/binding/luaref.cpp - rule c_source_lua - command = $cc -MMD -MT $out -MF $out.d -std=c11 -O2 -Wall -DMAKE_LIB $ - -DLUA_USE_LINUX -DNDEBUG -fPIC -Wno-maybe-uninitialized -o $out -c $in -- description = Compile C $out -+ description = Compile C $out CFLAGS - deps = gcc - depfile = $out.d - build $obj/source_lua/linit.obj: c_source_lua bee.lua/3rd/lua/linit.c -@@ -97,14 +97,14 @@ rule cxx_source_bootstrap - command = $cc -MMD -MT $out -MF $out.d -std=c++17 -fno-rtti -O2 -Wall $ - -fvisibility=hidden -Ibee.lua/3rd/lua -Ibee.lua -DLUA_USE_LINUX $ - -DNDEBUG -fPIC -o $out -c $in -- description = Compile C++ $out -+ description = Compile C++ $out CXXFLAGS - deps = gcc - depfile = $out.d - build $obj/source_bootstrap/main.obj: cxx_source_bootstrap $ - bee.lua/bootstrap/main.cpp - rule link_bootstrap -- command = $cc $in -o $out -Wl,-E -static-libgcc -lm -ldl -lstdc++fs $ -- -pthread -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic -s -+ command = $cc $in -o $out -Wl,-E -static-libgcc -lm -ldl $ -+ -pthread -Wl,-Bstatic -lstdc++ -Wl,-Bdynamic LDFLAGS - description = Link Exe $out - rule copy - command = cp -fv $in$input $out 1>/dev/null diff --git a/dev-util/lua-language-server/lua-language-server-3.7.3.ebuild b/dev-util/lua-language-server/lua-language-server-3.7.3.ebuild deleted file mode 100644 index f7a6bd85c..000000000 --- a/dev-util/lua-language-server/lua-language-server-3.7.3.ebuild +++ /dev/null @@ -1,85 +0,0 @@ -# Copyright 2022-2024 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" ) - -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" - 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 -} diff --git a/dev-util/lua-language-server/lua-language-server-3.9.1.ebuild b/dev-util/lua-language-server/lua-language-server-3.9.1.ebuild index a70ce930c..5e90591cb 100644 --- a/dev-util/lua-language-server/lua-language-server-3.9.1.ebuild +++ b/dev-util/lua-language-server/lua-language-server-3.9.1.ebuild @@ -37,7 +37,7 @@ src_prepare() { sed -i "s/CC = gcc/ CC = ${tc-getCC}/" \ 3rd/lpeglabel/makefile || die # Shipped file doesn't respect CFLAGS/CXXFLAGS/LDFLAGS - eapply "${FILESDIR}/linux.ninja_v2.patch" + 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)/" \ @@ -59,7 +59,7 @@ src_compile() { -e "s/^ar =.*./ar = REPLACE_AR/" \ build/build.ninja || die - eapply "${FILESDIR}/build.ninja_v2.patch" + eapply "${FILESDIR}/build.ninja.patch" sed -i -e "s/REPLACE_ME/$(tc-getCC)/" \ -e "s/REPLACE_AR/$(tc-getAR)/" \ -e "s|LUAMAKE_PATH|${S}/3rd/luamake/luamake|" \ |