public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Roman" <davidroman96@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-util/lua-language-server/
Date: Tue, 25 Jun 2024 09:52:06 +0000 (UTC)	[thread overview]
Message-ID: <1719149321.a04a904c6357ad6fc92b9edf819f6727a62fbd13.davidroman@gentoo> (raw)

commit:     a04a904c6357ad6fc92b9edf819f6727a62fbd13
Author:     Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Sun Jun 23 13:28:41 2024 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sun Jun 23 13:28:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a04a904c

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

Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com>

 dev-util/lua-language-server/Manifest              |  1 +
 .../lua-language-server-3.9.3.ebuild               | 88 ++++++++++++++++++++++
 2 files changed, 89 insertions(+)

diff --git a/dev-util/lua-language-server/Manifest b/dev-util/lua-language-server/Manifest
index 0deeaf219..d84f03379 100644
--- a/dev-util/lua-language-server/Manifest
+++ b/dev-util/lua-language-server/Manifest
@@ -1 +1,2 @@
 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.9.3.ebuild b/dev-util/lua-language-server/lua-language-server-3.9.3.ebuild
new file mode 100644
index 000000000..5e90591cb
--- /dev/null
+++ b/dev-util/lua-language-server/lua-language-server-3.9.3.ebuild
@@ -0,0 +1,88 @@
+# 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
+}


             reply	other threads:[~2024-06-25  9:52 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-25  9:52 David Roman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-06-30  8:40 [gentoo-commits] repo/proj/guru:master commit in: dev-util/lua-language-server/ David Roman
2024-08-20 20:46 David Roman
2024-05-31  8:55 Julien Roy
2023-11-19  9:58 Viorel Munteanu
2023-09-03 12:27 Haelwenn Monnier
2023-07-29 15:04 Florian Schmaus
2023-07-16  6:18 Haelwenn Monnier
2023-05-27 12:20 Viorel Munteanu
2023-04-28 17:52 Arthur Zamarin
2023-04-28 17:52 Arthur Zamarin
2023-03-08  9:08 Florian Schmaus
2023-02-23  9:24 Viorel Munteanu
2023-01-22  8:21 Viorel Munteanu
2023-01-01 18:21 Florian Schmaus
2023-01-01 18:21 Florian Schmaus
2023-01-01 18:21 Florian Schmaus
2023-01-01 18:21 Florian Schmaus
2023-01-01 18:21 Florian Schmaus
2023-01-01 18:21 Florian Schmaus

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=1719149321.a04a904c6357ad6fc92b9edf819f6727a62fbd13.davidroman@gentoo \
    --to=davidroman96@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