public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Saad Abdullah" <ingenarelitems@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-util/lua-language-server/
Date: Mon, 17 Feb 2025 13:15:58 +0000 (UTC)	[thread overview]
Message-ID: <1739798001.97506b1ddcd60c6e34d51ddf13d78a907115c6e0.ingenarelitems@gentoo> (raw)

commit:     97506b1ddcd60c6e34d51ddf13d78a907115c6e0
Author:     ingenarel <ingenarelitems <AT> gmail <DOT> com>
AuthorDate: Mon Feb 17 13:13:21 2025 +0000
Commit:     Saad Abdullah <ingenarelitems <AT> gmail <DOT> com>
CommitDate: Mon Feb 17 13:13:21 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=97506b1d

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

Signed-off-by: ingenarel <ingenarelitems <AT> gmail.com>

 dev-util/lua-language-server/Manifest              |  1 +
 .../lua-language-server-3.13.6.ebuild              | 90 ++++++++++++++++++++++
 2 files changed, 91 insertions(+)

diff --git a/dev-util/lua-language-server/Manifest b/dev-util/lua-language-server/Manifest
index 373e3da4a..1ad9679ea 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.13.6.zip 31470994 BLAKE2B 69a603ac5b9db7d9b193348e225db8ad7e4dc9fd9624b517f4ff728966beb4028acd75ba6cb28e70e7cc18eda8f9c3e43154ceeec3d34c9247891c75eeb0bd27 SHA512 e6de99e76734deeb38b4c84b1800f7e665512d26ade88021db91c30040ca4ead5e55af09ce2aa375a79e482ccd9d3a2d54c8c704338ada795bb5885ffd749579
 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.6.ebuild b/dev-util/lua-language-server/lua-language-server-3.13.6.ebuild
new file mode 100644
index 000000000..4aacac153
--- /dev/null
+++ b/dev-util/lua-language-server/lua-language-server-3.13.6.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
+}


             reply	other threads:[~2025-02-17 13:16 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-17 13:15 Saad Abdullah [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-12-31 21:58 [gentoo-commits] repo/proj/guru:dev commit in: dev-util/lua-language-server/ Brahmajit Das
2024-12-31 21:54 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=1739798001.97506b1ddcd60c6e34d51ddf13d78a907115c6e0.ingenarelitems@gentoo \
    --to=ingenarelitems@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