From: "Brahmajit Das" <brahmajit.xyz@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/lua-language-server/
Date: Tue, 31 Dec 2024 21:54:47 +0000 (UTC) [thread overview]
Message-ID: <1735682039.d2c0bf8cc1e2bc6a66753caa48b0d9fc99ee41e7.brahmajit.xyz@gentoo> (raw)
commit: d2c0bf8cc1e2bc6a66753caa48b0d9fc99ee41e7
Author: Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Tue Dec 31 21:53:59 2024 +0000
Commit: Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
CommitDate: Tue Dec 31 21:53:59 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d2c0bf8c
dev-util/lua-language-server: add 3.13.5
Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com>
dev-util/lua-language-server/Manifest | 1 +
.../lua-language-server-3.13.5.ebuild | 90 ++++++++++++++++++++++
2 files changed, 91 insertions(+)
diff --git a/dev-util/lua-language-server/Manifest b/dev-util/lua-language-server/Manifest
index 4eb965193..9c8538361 100644
--- a/dev-util/lua-language-server/Manifest
+++ b/dev-util/lua-language-server/Manifest
@@ -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
diff --git a/dev-util/lua-language-server/lua-language-server-3.13.5.ebuild b/dev-util/lua-language-server/lua-language-server-3.13.5.ebuild
new file mode 100644
index 000000000..4aacac153
--- /dev/null
+++ b/dev-util/lua-language-server/lua-language-server-3.13.5.ebuild
@@ -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
+}
next reply other threads:[~2024-12-31 21:54 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-31 21:54 Brahmajit Das [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-02-17 13:15 [gentoo-commits] repo/proj/guru:dev commit in: dev-util/lua-language-server/ Saad Abdullah
2024-12-31 21:58 Brahmajit Das
2024-08-19 20:29 Brahmajit Das
2024-06-23 13:28 Brahmajit Das
2024-05-31 8:55 [gentoo-commits] repo/proj/guru:master " Julien Roy
2024-05-31 8:36 ` [gentoo-commits] repo/proj/guru:dev " Julien Roy
2023-11-18 9:51 Mathis Winterer
2023-09-01 18:18 Mathis Winterer
2023-07-29 14:20 Mathis Winterer
2023-07-14 7:08 Mathis Winterer
2023-05-27 10:14 Mathis Winterer
2023-04-27 18:18 Viorel Munteanu
2023-04-27 18:07 Anna Vyalkova
2023-03-08 6:59 Anna Vyalkova
2023-02-21 15:18 Mathis Winterer
2023-01-20 16:33 Mathis Winterer
2023-01-01 12:33 Mathis Winterer
2022-12-31 17:34 Mathis Winterer
2022-12-31 16:24 Mathis Winterer
2022-12-31 16:10 Mathis Winterer
2022-12-31 16:10 Mathis Winterer
2022-12-31 12:59 Mathis Winterer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1735682039.d2c0bf8cc1e2bc6a66753caa48b0d9fc99ee41e7.brahmajit.xyz@gentoo \
--to=brahmajit.xyz@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox