* [PR PATCH] New package: lua-language-server-3.3.1
@ 2022-06-26 15:28 icp1994
2022-06-27 7:25 ` [PR PATCH] [Updated] " icp1994
` (15 more replies)
0 siblings, 16 replies; 17+ messages in thread
From: icp1994 @ 2022-06-26 15:28 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 996 bytes --]
There is a new pull request by icp1994 against master on the void-packages repository
https://github.com/icp1994/void-packages lua-language-server
https://github.com/void-linux/void-packages/pull/37694
New package: lua-language-server-3.3.1
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, x86_64
Fixes https://github.com/void-linux/void-packages/issues/34436. I couldn't figure out a predefined `build-style` that would work for this. So it's likely missing flags required for cross-compilation as there is no `do_configure()`. I didn't put a separate `do_test()` since the tests seem to be running during the build phase itself. I tested via `lspconfig` in neovim and it works as expected.
A patch file from https://github.com/void-linux/void-packages/pull/37694.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-lua-language-server-37694.patch --]
[-- Type: text/x-diff, Size: 2321 bytes --]
From 2f29cc91d3e3c58f7135029b9b20de51a49e0b4a Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Sun, 26 Jun 2022 20:46:46 +0530
Subject: [PATCH] New package: lua-language-server-3.3.1
---
.../files/lua-language-server | 6 ++++
srcpkgs/lua-language-server/template | 33 +++++++++++++++++++
2 files changed, 39 insertions(+)
create mode 100644 srcpkgs/lua-language-server/files/lua-language-server
create mode 100644 srcpkgs/lua-language-server/template
diff --git a/srcpkgs/lua-language-server/files/lua-language-server b/srcpkgs/lua-language-server/files/lua-language-server
new file mode 100644
index 000000000000..e14e3b04a353
--- /dev/null
+++ b/srcpkgs/lua-language-server/files/lua-language-server
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+
+STATE_PATH=${XDG_STATE_HOME:-$HOME/.local/state}/lua-language-server
+
+exec /usr/lib/lua-language-server/bin/lua-language-server /usr/lib/lua-language-server/main.lua \
+ --logpath="$STATE_PATH/log" --metapath="$STATE_PATH/meta" "$@"
diff --git a/srcpkgs/lua-language-server/template b/srcpkgs/lua-language-server/template
new file mode 100644
index 000000000000..49002047d26d
--- /dev/null
+++ b/srcpkgs/lua-language-server/template
@@ -0,0 +1,33 @@
+# Template file for 'lua-language-server'
+pkgname=lua-language-server
+version=3.3.1
+revision=1
+create_wrksrc=yes
+hostmakedepends="ninja"
+short_desc="Lua Language Server coded by Lua"
+maintainer="icp <pangolin@vivaldi.net>"
+license="MIT"
+homepage="https://github.com/sumneko/lua-language-server"
+changelog="https://github.com/sumneko/lua-language-server/blob/master/changelog.md"
+distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}-submodules.zip"
+checksum=141716d786dd120cf0ec6ecba70d4c4842c942005dc670a11b7a1ddb69e24eef
+
+do_build() {
+ ninja -C 3rd/luamake -f compile/ninja/linux.ninja
+ ./3rd/luamake/luamake rebuild
+}
+
+do_install() {
+ vinstall main.lua 644 usr/lib/${pkgname}
+ vinstall debugger.lua 644 usr/lib/${pkgname}
+ vinstall changelog.md 644 usr/lib/${pkgname}
+ vinstall bin/main.lua 644 usr/lib/${pkgname}/bin
+ vinstall bin/$pkgname 755 usr/lib/${pkgname}/bin
+
+ vcopy meta usr/lib/${pkgname}
+ vcopy locale usr/lib/${pkgname}
+ vcopy script usr/lib/${pkgname}
+
+ vbin ${FILESDIR}/lua-language-server
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR PATCH] [Updated] New package: lua-language-server-3.3.1
2022-06-26 15:28 [PR PATCH] New package: lua-language-server-3.3.1 icp1994
@ 2022-06-27 7:25 ` icp1994
2022-06-28 5:17 ` icp1994
` (14 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: icp1994 @ 2022-06-27 7:25 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]
There is an updated pull request by icp1994 against master on the void-packages repository
https://github.com/icp1994/void-packages lua-language-server
https://github.com/void-linux/void-packages/pull/37694
New package: lua-language-server-3.3.1
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, x86_64
Fixes https://github.com/void-linux/void-packages/issues/34436. I couldn't figure out a predefined `build-style` that would work for this. So it's likely missing flags required for cross-compilation as there is no `do_configure()`. I didn't put a separate `do_test()` since the tests seem to be running during the build phase itself. I tested via `lspconfig` in neovim and it works as expected.
A patch file from https://github.com/void-linux/void-packages/pull/37694.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-lua-language-server-37694.patch --]
[-- Type: text/x-diff, Size: 2441 bytes --]
From 2b3e1d6b5dce1f95664c8c9b4d17b6e8fa2a0027 Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Sun, 26 Jun 2022 20:46:46 +0530
Subject: [PATCH] New package: lua-language-server-3.3.1
---
.../files/lua-language-server | 6 ++++
srcpkgs/lua-language-server/template | 36 +++++++++++++++++++
2 files changed, 42 insertions(+)
create mode 100644 srcpkgs/lua-language-server/files/lua-language-server
create mode 100644 srcpkgs/lua-language-server/template
diff --git a/srcpkgs/lua-language-server/files/lua-language-server b/srcpkgs/lua-language-server/files/lua-language-server
new file mode 100644
index 000000000000..e14e3b04a353
--- /dev/null
+++ b/srcpkgs/lua-language-server/files/lua-language-server
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+
+STATE_PATH=${XDG_STATE_HOME:-$HOME/.local/state}/lua-language-server
+
+exec /usr/lib/lua-language-server/bin/lua-language-server /usr/lib/lua-language-server/main.lua \
+ --logpath="$STATE_PATH/log" --metapath="$STATE_PATH/meta" "$@"
diff --git a/srcpkgs/lua-language-server/template b/srcpkgs/lua-language-server/template
new file mode 100644
index 000000000000..823e2edd02eb
--- /dev/null
+++ b/srcpkgs/lua-language-server/template
@@ -0,0 +1,36 @@
+# Template file for 'lua-language-server'
+pkgname=lua-language-server
+version=3.3.1
+revision=1
+create_wrksrc=yes
+hostmakedepends="ninja"
+short_desc="Lua Language Server coded by Lua"
+maintainer="icp <pangolin@vivaldi.net>"
+license="MIT"
+homepage="https://github.com/sumneko/lua-language-server"
+changelog="https://github.com/sumneko/lua-language-server/blob/master/changelog.md"
+distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}-submodules.zip"
+checksum=141716d786dd120cf0ec6ecba70d4c4842c942005dc670a11b7a1ddb69e24eef
+
+do_build() {
+ ninja -C 3rd/luamake -f compile/ninja/linux.ninja
+ case "$XBPS_TARGET_MACHINE" in
+ aarch64*|arm*) ./3rd/luamake/luamake -platform linux-arm64 rebuild;;
+ *) ./3rd/luamake/luamake rebuild;;
+ esac
+}
+
+do_install() {
+ vinstall main.lua 644 usr/lib/${pkgname}
+ vinstall debugger.lua 644 usr/lib/${pkgname}
+ vinstall changelog.md 644 usr/lib/${pkgname}
+ vinstall bin/main.lua 644 usr/lib/${pkgname}/bin
+ vinstall bin/${pkgname} 755 usr/lib/${pkgname}/bin
+
+ vcopy meta usr/lib/${pkgname}
+ vcopy locale usr/lib/${pkgname}
+ vcopy script usr/lib/${pkgname}
+
+ vbin ${FILESDIR}/lua-language-server
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR PATCH] [Updated] New package: lua-language-server-3.3.1
2022-06-26 15:28 [PR PATCH] New package: lua-language-server-3.3.1 icp1994
2022-06-27 7:25 ` [PR PATCH] [Updated] " icp1994
@ 2022-06-28 5:17 ` icp1994
2022-06-28 5:21 ` icp1994
` (13 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: icp1994 @ 2022-06-28 5:17 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]
There is an updated pull request by icp1994 against master on the void-packages repository
https://github.com/icp1994/void-packages lua-language-server
https://github.com/void-linux/void-packages/pull/37694
New package: lua-language-server-3.3.1
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, x86_64
Fixes https://github.com/void-linux/void-packages/issues/34436. I couldn't figure out a predefined `build-style` that would work for this. So it's likely missing flags required for cross-compilation as there is no `do_configure()`. I didn't put a separate `do_test()` since the tests seem to be running during the build phase itself. I tested via `lspconfig` in neovim and it works as expected.
A patch file from https://github.com/void-linux/void-packages/pull/37694.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-lua-language-server-37694.patch --]
[-- Type: text/x-diff, Size: 3371 bytes --]
From f469c2c21df6d05c12582bb59a361d15adc7911c Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Sun, 26 Jun 2022 20:46:46 +0530
Subject: [PATCH] New package: lua-language-server-3.3.1
---
.../files/lua-language-server | 6 ++++
.../patches/enable-cross-compilation.patch | 16 +++++++++
srcpkgs/lua-language-server/template | 33 +++++++++++++++++++
3 files changed, 55 insertions(+)
create mode 100644 srcpkgs/lua-language-server/files/lua-language-server
create mode 100644 srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
create mode 100644 srcpkgs/lua-language-server/template
diff --git a/srcpkgs/lua-language-server/files/lua-language-server b/srcpkgs/lua-language-server/files/lua-language-server
new file mode 100644
index 000000000000..e14e3b04a353
--- /dev/null
+++ b/srcpkgs/lua-language-server/files/lua-language-server
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+
+STATE_PATH=${XDG_STATE_HOME:-$HOME/.local/state}/lua-language-server
+
+exec /usr/lib/lua-language-server/bin/lua-language-server /usr/lib/lua-language-server/main.lua \
+ --logpath="$STATE_PATH/log" --metapath="$STATE_PATH/meta" "$@"
diff --git a/srcpkgs/lua-language-server/patches/enable-cross-compilation.patch b/srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
new file mode 100644
index 000000000000..9cdd9784eb85
--- /dev/null
+++ b/srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
@@ -0,0 +1,16 @@
+diff --git a/make/detect_platform.lua b/make/detect_platform.lua
+index 8dba298..fe8ae3e 100644
+--- a/make/detect_platform.lua
++++ b/make/detect_platform.lua
+@@ -22,9 +22,8 @@ elseif platform.OS == 'Windows' then
+ end
+ elseif platform.OS == 'Linux' then
+ if lm.platform == nil then
+- elseif lm.platform == "linux-x64" then
+- elseif lm.platform == "linux-arm64" then
+- lm.cc = 'aarch64-linux-gnu-gcc'
++ elseif os.getenv("CC") then
++ lm.cc = os.getenv("CC")
+ else
+ error "unknown platform"
+ end
diff --git a/srcpkgs/lua-language-server/template b/srcpkgs/lua-language-server/template
new file mode 100644
index 000000000000..f102891cdff4
--- /dev/null
+++ b/srcpkgs/lua-language-server/template
@@ -0,0 +1,33 @@
+# Template file for 'lua-language-server'
+pkgname=lua-language-server
+version=3.3.1
+revision=1
+create_wrksrc=yes
+hostmakedepends="ninja"
+short_desc="Lua Language Server coded by Lua"
+maintainer="icp <pangolin@vivaldi.net>"
+license="MIT"
+homepage="https://github.com/sumneko/lua-language-server"
+changelog="https://github.com/sumneko/lua-language-server/blob/master/changelog.md"
+distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}-submodules.zip"
+checksum=141716d786dd120cf0ec6ecba70d4c4842c942005dc670a11b7a1ddb69e24eef
+
+do_build() {
+ ninja -C 3rd/luamake -f compile/ninja/linux.ninja
+ ./3rd/luamake/luamake -platform ${XBPS_TARGET_MACHINE} rebuild
+}
+
+do_install() {
+ vinstall main.lua 644 usr/lib/${pkgname}
+ vinstall debugger.lua 644 usr/lib/${pkgname}
+ vinstall changelog.md 644 usr/lib/${pkgname}
+ vinstall bin/main.lua 644 usr/lib/${pkgname}/bin
+ vinstall bin/${pkgname} 755 usr/lib/${pkgname}/bin
+
+ vcopy meta usr/lib/${pkgname}
+ vcopy locale usr/lib/${pkgname}
+ vcopy script usr/lib/${pkgname}
+
+ vbin ${FILESDIR}/lua-language-server
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: New package: lua-language-server-3.3.1
2022-06-26 15:28 [PR PATCH] New package: lua-language-server-3.3.1 icp1994
2022-06-27 7:25 ` [PR PATCH] [Updated] " icp1994
2022-06-28 5:17 ` icp1994
@ 2022-06-28 5:21 ` icp1994
2022-07-02 10:11 ` [PR PATCH] [Updated] " icp1994
` (12 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: icp1994 @ 2022-06-28 5:21 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 193 bytes --]
New comment by icp1994 on void-packages repository
https://github.com/void-linux/void-packages/pull/37694#issuecomment-1168236492
Comment:
Cross-compilation now seems to work with the patch!
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR PATCH] [Updated] New package: lua-language-server-3.3.1
2022-06-26 15:28 [PR PATCH] New package: lua-language-server-3.3.1 icp1994
` (2 preceding siblings ...)
2022-06-28 5:21 ` icp1994
@ 2022-07-02 10:11 ` icp1994
2022-07-06 9:49 ` [PR PATCH] [Updated] New package: lua-language-server-3.4.0 icp1994
` (11 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: icp1994 @ 2022-07-02 10:11 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]
There is an updated pull request by icp1994 against master on the void-packages repository
https://github.com/icp1994/void-packages lua-language-server
https://github.com/void-linux/void-packages/pull/37694
New package: lua-language-server-3.3.1
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, x86_64
Fixes https://github.com/void-linux/void-packages/issues/34436. I couldn't figure out a predefined `build-style` that would work for this. So it's likely missing flags required for cross-compilation as there is no `do_configure()`. I didn't put a separate `do_test()` since the tests seem to be running during the build phase itself. I tested via `lspconfig` in neovim and it works as expected.
A patch file from https://github.com/void-linux/void-packages/pull/37694.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-lua-language-server-37694.patch --]
[-- Type: text/x-diff, Size: 3376 bytes --]
From 20e410ba343d30064f9a9ad1c2ea2bf4b276e3a5 Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Sun, 26 Jun 2022 20:46:46 +0530
Subject: [PATCH] New package: lua-language-server-3.4.0
---
.../files/lua-language-server | 6 ++++
.../patches/enable-cross-compilation.patch | 16 +++++++++
srcpkgs/lua-language-server/template | 33 +++++++++++++++++++
3 files changed, 55 insertions(+)
create mode 100644 srcpkgs/lua-language-server/files/lua-language-server
create mode 100644 srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
create mode 100644 srcpkgs/lua-language-server/template
diff --git a/srcpkgs/lua-language-server/files/lua-language-server b/srcpkgs/lua-language-server/files/lua-language-server
new file mode 100644
index 000000000000..e14e3b04a353
--- /dev/null
+++ b/srcpkgs/lua-language-server/files/lua-language-server
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+
+STATE_PATH=${XDG_STATE_HOME:-$HOME/.local/state}/lua-language-server
+
+exec /usr/lib/lua-language-server/bin/lua-language-server /usr/lib/lua-language-server/main.lua \
+ --logpath="$STATE_PATH/log" --metapath="$STATE_PATH/meta" "$@"
diff --git a/srcpkgs/lua-language-server/patches/enable-cross-compilation.patch b/srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
new file mode 100644
index 000000000000..9cdd9784eb85
--- /dev/null
+++ b/srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
@@ -0,0 +1,16 @@
+diff --git a/make/detect_platform.lua b/make/detect_platform.lua
+index 8dba298..fe8ae3e 100644
+--- a/make/detect_platform.lua
++++ b/make/detect_platform.lua
+@@ -22,9 +22,8 @@ elseif platform.OS == 'Windows' then
+ end
+ elseif platform.OS == 'Linux' then
+ if lm.platform == nil then
+- elseif lm.platform == "linux-x64" then
+- elseif lm.platform == "linux-arm64" then
+- lm.cc = 'aarch64-linux-gnu-gcc'
++ elseif os.getenv("CC") then
++ lm.cc = os.getenv("CC")
+ else
+ error "unknown platform"
+ end
diff --git a/srcpkgs/lua-language-server/template b/srcpkgs/lua-language-server/template
new file mode 100644
index 000000000000..76f7b67591b6
--- /dev/null
+++ b/srcpkgs/lua-language-server/template
@@ -0,0 +1,33 @@
+# Template file for 'lua-language-server'
+pkgname=lua-language-server
+version=3.4.0
+revision=1
+create_wrksrc=yes
+hostmakedepends="ninja"
+short_desc="Lua LSP implementation written in Lua"
+maintainer="icp <pangolin@vivaldi.net>"
+license="MIT"
+homepage="https://github.com/sumneko/lua-language-server"
+changelog="https://github.com/sumneko/lua-language-server/blob/master/changelog.md"
+distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}-submodules.zip"
+checksum=d32a5c96169cd93b60a2d6dd079904f436eac2d5ba698d55a0f74d4c0c670f3e
+
+do_build() {
+ ninja -C 3rd/luamake -f compile/ninja/linux.ninja
+ ./3rd/luamake/luamake -platform ${XBPS_TARGET_MACHINE} rebuild
+}
+
+do_install() {
+ vinstall main.lua 644 usr/lib/${pkgname}
+ vinstall debugger.lua 644 usr/lib/${pkgname}
+ vinstall changelog.md 644 usr/lib/${pkgname}
+ vinstall bin/main.lua 644 usr/lib/${pkgname}/bin
+ vinstall bin/${pkgname} 755 usr/lib/${pkgname}/bin
+
+ vcopy meta usr/lib/${pkgname}
+ vcopy locale usr/lib/${pkgname}
+ vcopy script usr/lib/${pkgname}
+
+ vbin ${FILESDIR}/lua-language-server
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR PATCH] [Updated] New package: lua-language-server-3.4.0
2022-06-26 15:28 [PR PATCH] New package: lua-language-server-3.3.1 icp1994
` (3 preceding siblings ...)
2022-07-02 10:11 ` [PR PATCH] [Updated] " icp1994
@ 2022-07-06 9:49 ` icp1994
2022-07-20 19:02 ` New package: lua-language-server-3.4.2 motorto
` (10 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: icp1994 @ 2022-07-06 9:49 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]
There is an updated pull request by icp1994 against master on the void-packages repository
https://github.com/icp1994/void-packages lua-language-server
https://github.com/void-linux/void-packages/pull/37694
New package: lua-language-server-3.4.0
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, x86_64
Fixes https://github.com/void-linux/void-packages/issues/34436. I couldn't figure out a predefined `build-style` that would work for this. So it's likely missing flags required for cross-compilation as there is no `do_configure()`. I didn't put a separate `do_test()` since the tests seem to be running during the build phase itself. I tested via `lspconfig` in neovim and it works as expected.
A patch file from https://github.com/void-linux/void-packages/pull/37694.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-lua-language-server-37694.patch --]
[-- Type: text/x-diff, Size: 3376 bytes --]
From 72674154ce78d8061c0c8d2f092529cbd518e46c Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Sun, 26 Jun 2022 20:46:46 +0530
Subject: [PATCH] New package: lua-language-server-3.4.0
---
.../files/lua-language-server | 6 ++++
.../patches/enable-cross-compilation.patch | 16 +++++++++
srcpkgs/lua-language-server/template | 33 +++++++++++++++++++
3 files changed, 55 insertions(+)
create mode 100644 srcpkgs/lua-language-server/files/lua-language-server
create mode 100644 srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
create mode 100644 srcpkgs/lua-language-server/template
diff --git a/srcpkgs/lua-language-server/files/lua-language-server b/srcpkgs/lua-language-server/files/lua-language-server
new file mode 100644
index 000000000000..e14e3b04a353
--- /dev/null
+++ b/srcpkgs/lua-language-server/files/lua-language-server
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+
+STATE_PATH=${XDG_STATE_HOME:-$HOME/.local/state}/lua-language-server
+
+exec /usr/lib/lua-language-server/bin/lua-language-server /usr/lib/lua-language-server/main.lua \
+ --logpath="$STATE_PATH/log" --metapath="$STATE_PATH/meta" "$@"
diff --git a/srcpkgs/lua-language-server/patches/enable-cross-compilation.patch b/srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
new file mode 100644
index 000000000000..9cdd9784eb85
--- /dev/null
+++ b/srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
@@ -0,0 +1,16 @@
+diff --git a/make/detect_platform.lua b/make/detect_platform.lua
+index 8dba298..fe8ae3e 100644
+--- a/make/detect_platform.lua
++++ b/make/detect_platform.lua
+@@ -22,9 +22,8 @@ elseif platform.OS == 'Windows' then
+ end
+ elseif platform.OS == 'Linux' then
+ if lm.platform == nil then
+- elseif lm.platform == "linux-x64" then
+- elseif lm.platform == "linux-arm64" then
+- lm.cc = 'aarch64-linux-gnu-gcc'
++ elseif os.getenv("CC") then
++ lm.cc = os.getenv("CC")
+ else
+ error "unknown platform"
+ end
diff --git a/srcpkgs/lua-language-server/template b/srcpkgs/lua-language-server/template
new file mode 100644
index 000000000000..fb8876be2f6f
--- /dev/null
+++ b/srcpkgs/lua-language-server/template
@@ -0,0 +1,33 @@
+# Template file for 'lua-language-server'
+pkgname=lua-language-server
+version=3.4.2
+revision=1
+create_wrksrc=yes
+hostmakedepends="ninja"
+short_desc="Lua LSP implementation written in Lua"
+maintainer="icp <pangolin@vivaldi.net>"
+license="MIT"
+homepage="https://github.com/sumneko/lua-language-server"
+changelog="https://github.com/sumneko/lua-language-server/blob/master/changelog.md"
+distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}-submodules.zip"
+checksum=3a2cedaeb026890752398dfe88337f2e8d989b2f2e386fedd34e3fc639993314
+
+do_build() {
+ ninja -C 3rd/luamake -f compile/ninja/linux.ninja
+ ./3rd/luamake/luamake -platform ${XBPS_TARGET_MACHINE} rebuild
+}
+
+do_install() {
+ vinstall main.lua 644 usr/lib/${pkgname}
+ vinstall debugger.lua 644 usr/lib/${pkgname}
+ vinstall changelog.md 644 usr/lib/${pkgname}
+ vinstall bin/main.lua 644 usr/lib/${pkgname}/bin
+ vinstall bin/${pkgname} 755 usr/lib/${pkgname}/bin
+
+ vcopy meta usr/lib/${pkgname}
+ vcopy locale usr/lib/${pkgname}
+ vcopy script usr/lib/${pkgname}
+
+ vbin ${FILESDIR}/lua-language-server
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: New package: lua-language-server-3.4.2
2022-06-26 15:28 [PR PATCH] New package: lua-language-server-3.3.1 icp1994
` (4 preceding siblings ...)
2022-07-06 9:49 ` [PR PATCH] [Updated] New package: lua-language-server-3.4.0 icp1994
@ 2022-07-20 19:02 ` motorto
2022-07-20 19:03 ` motorto
` (9 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: motorto @ 2022-07-20 19:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 209 bytes --]
New comment by motorto on void-packages repository
https://github.com/void-linux/void-packages/pull/37694#issuecomment-1190646052
Comment:
Tested on x86_64-musl (bumped to 3.5.0) it compiles and runs fine !
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: New package: lua-language-server-3.4.2
2022-06-26 15:28 [PR PATCH] New package: lua-language-server-3.3.1 icp1994
` (5 preceding siblings ...)
2022-07-20 19:02 ` New package: lua-language-server-3.4.2 motorto
@ 2022-07-20 19:03 ` motorto
2022-07-22 18:46 ` [PR PATCH] [Updated] " icp1994
` (8 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: motorto @ 2022-07-20 19:03 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 209 bytes --]
New comment by motorto on void-packages repository
https://github.com/void-linux/void-packages/pull/37694#issuecomment-1190646052
Comment:
Tested on x86_64-musl (bumped to 3.5.0) it compiles and runs fine !
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR PATCH] [Updated] New package: lua-language-server-3.4.2
2022-06-26 15:28 [PR PATCH] New package: lua-language-server-3.3.1 icp1994
` (6 preceding siblings ...)
2022-07-20 19:03 ` motorto
@ 2022-07-22 18:46 ` icp1994
2022-07-22 19:08 ` icp1994
` (7 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: icp1994 @ 2022-07-22 18:46 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]
There is an updated pull request by icp1994 against master on the void-packages repository
https://github.com/icp1994/void-packages lua-language-server
https://github.com/void-linux/void-packages/pull/37694
New package: lua-language-server-3.4.2
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, x86_64
Fixes https://github.com/void-linux/void-packages/issues/34436. I couldn't figure out a predefined `build-style` that would work for this. So it's likely missing flags required for cross-compilation as there is no `do_configure()`. I didn't put a separate `do_test()` since the tests seem to be running during the build phase itself. I tested via `lspconfig` in neovim and it works as expected.
A patch file from https://github.com/void-linux/void-packages/pull/37694.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-lua-language-server-37694.patch --]
[-- Type: text/x-diff, Size: 3376 bytes --]
From 72674154ce78d8061c0c8d2f092529cbd518e46c Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Sun, 26 Jun 2022 20:46:46 +0530
Subject: [PATCH] New package: lua-language-server-3.4.0
---
.../files/lua-language-server | 6 ++++
.../patches/enable-cross-compilation.patch | 16 +++++++++
srcpkgs/lua-language-server/template | 33 +++++++++++++++++++
3 files changed, 55 insertions(+)
create mode 100644 srcpkgs/lua-language-server/files/lua-language-server
create mode 100644 srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
create mode 100644 srcpkgs/lua-language-server/template
diff --git a/srcpkgs/lua-language-server/files/lua-language-server b/srcpkgs/lua-language-server/files/lua-language-server
new file mode 100644
index 000000000000..e14e3b04a353
--- /dev/null
+++ b/srcpkgs/lua-language-server/files/lua-language-server
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+
+STATE_PATH=${XDG_STATE_HOME:-$HOME/.local/state}/lua-language-server
+
+exec /usr/lib/lua-language-server/bin/lua-language-server /usr/lib/lua-language-server/main.lua \
+ --logpath="$STATE_PATH/log" --metapath="$STATE_PATH/meta" "$@"
diff --git a/srcpkgs/lua-language-server/patches/enable-cross-compilation.patch b/srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
new file mode 100644
index 000000000000..9cdd9784eb85
--- /dev/null
+++ b/srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
@@ -0,0 +1,16 @@
+diff --git a/make/detect_platform.lua b/make/detect_platform.lua
+index 8dba298..fe8ae3e 100644
+--- a/make/detect_platform.lua
++++ b/make/detect_platform.lua
+@@ -22,9 +22,8 @@ elseif platform.OS == 'Windows' then
+ end
+ elseif platform.OS == 'Linux' then
+ if lm.platform == nil then
+- elseif lm.platform == "linux-x64" then
+- elseif lm.platform == "linux-arm64" then
+- lm.cc = 'aarch64-linux-gnu-gcc'
++ elseif os.getenv("CC") then
++ lm.cc = os.getenv("CC")
+ else
+ error "unknown platform"
+ end
diff --git a/srcpkgs/lua-language-server/template b/srcpkgs/lua-language-server/template
new file mode 100644
index 000000000000..fb8876be2f6f
--- /dev/null
+++ b/srcpkgs/lua-language-server/template
@@ -0,0 +1,33 @@
+# Template file for 'lua-language-server'
+pkgname=lua-language-server
+version=3.4.2
+revision=1
+create_wrksrc=yes
+hostmakedepends="ninja"
+short_desc="Lua LSP implementation written in Lua"
+maintainer="icp <pangolin@vivaldi.net>"
+license="MIT"
+homepage="https://github.com/sumneko/lua-language-server"
+changelog="https://github.com/sumneko/lua-language-server/blob/master/changelog.md"
+distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}-submodules.zip"
+checksum=3a2cedaeb026890752398dfe88337f2e8d989b2f2e386fedd34e3fc639993314
+
+do_build() {
+ ninja -C 3rd/luamake -f compile/ninja/linux.ninja
+ ./3rd/luamake/luamake -platform ${XBPS_TARGET_MACHINE} rebuild
+}
+
+do_install() {
+ vinstall main.lua 644 usr/lib/${pkgname}
+ vinstall debugger.lua 644 usr/lib/${pkgname}
+ vinstall changelog.md 644 usr/lib/${pkgname}
+ vinstall bin/main.lua 644 usr/lib/${pkgname}/bin
+ vinstall bin/${pkgname} 755 usr/lib/${pkgname}/bin
+
+ vcopy meta usr/lib/${pkgname}
+ vcopy locale usr/lib/${pkgname}
+ vcopy script usr/lib/${pkgname}
+
+ vbin ${FILESDIR}/lua-language-server
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR PATCH] [Updated] New package: lua-language-server-3.4.2
2022-06-26 15:28 [PR PATCH] New package: lua-language-server-3.3.1 icp1994
` (7 preceding siblings ...)
2022-07-22 18:46 ` [PR PATCH] [Updated] " icp1994
@ 2022-07-22 19:08 ` icp1994
2022-07-23 8:43 ` [PR REVIEW] New package: lua-language-server-3.5.0 tranzystorek-io
` (6 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: icp1994 @ 2022-07-22 19:08 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]
There is an updated pull request by icp1994 against master on the void-packages repository
https://github.com/icp1994/void-packages lua-language-server
https://github.com/void-linux/void-packages/pull/37694
New package: lua-language-server-3.4.2
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, x86_64
Fixes https://github.com/void-linux/void-packages/issues/34436. I couldn't figure out a predefined `build-style` that would work for this. So it's likely missing flags required for cross-compilation as there is no `do_configure()`. I didn't put a separate `do_test()` since the tests seem to be running during the build phase itself. I tested via `lspconfig` in neovim and it works as expected.
A patch file from https://github.com/void-linux/void-packages/pull/37694.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-lua-language-server-37694.patch --]
[-- Type: text/x-diff, Size: 3376 bytes --]
From fc5cf97883642b7076cc8d7342dad0e2adc130f9 Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Sat, 23 Jul 2022 00:36:17 +0530
Subject: [PATCH] New package: lua-language-server-3.5.0
---
.../files/lua-language-server | 6 ++++
.../patches/enable-cross-compilation.patch | 16 +++++++++
srcpkgs/lua-language-server/template | 33 +++++++++++++++++++
3 files changed, 55 insertions(+)
create mode 100644 srcpkgs/lua-language-server/files/lua-language-server
create mode 100644 srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
create mode 100644 srcpkgs/lua-language-server/template
diff --git a/srcpkgs/lua-language-server/files/lua-language-server b/srcpkgs/lua-language-server/files/lua-language-server
new file mode 100644
index 000000000000..e14e3b04a353
--- /dev/null
+++ b/srcpkgs/lua-language-server/files/lua-language-server
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+
+STATE_PATH=${XDG_STATE_HOME:-$HOME/.local/state}/lua-language-server
+
+exec /usr/lib/lua-language-server/bin/lua-language-server /usr/lib/lua-language-server/main.lua \
+ --logpath="$STATE_PATH/log" --metapath="$STATE_PATH/meta" "$@"
diff --git a/srcpkgs/lua-language-server/patches/enable-cross-compilation.patch b/srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
new file mode 100644
index 000000000000..9cdd9784eb85
--- /dev/null
+++ b/srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
@@ -0,0 +1,16 @@
+diff --git a/make/detect_platform.lua b/make/detect_platform.lua
+index 8dba298..fe8ae3e 100644
+--- a/make/detect_platform.lua
++++ b/make/detect_platform.lua
+@@ -22,9 +22,8 @@ elseif platform.OS == 'Windows' then
+ end
+ elseif platform.OS == 'Linux' then
+ if lm.platform == nil then
+- elseif lm.platform == "linux-x64" then
+- elseif lm.platform == "linux-arm64" then
+- lm.cc = 'aarch64-linux-gnu-gcc'
++ elseif os.getenv("CC") then
++ lm.cc = os.getenv("CC")
+ else
+ error "unknown platform"
+ end
diff --git a/srcpkgs/lua-language-server/template b/srcpkgs/lua-language-server/template
new file mode 100644
index 000000000000..56cefe547be9
--- /dev/null
+++ b/srcpkgs/lua-language-server/template
@@ -0,0 +1,33 @@
+# Template file for 'lua-language-server'
+pkgname=lua-language-server
+version=3.5.0
+revision=1
+create_wrksrc=yes
+hostmakedepends="ninja"
+short_desc="Lua LSP implementation written in Lua"
+maintainer="icp <pangolin@vivaldi.net>"
+license="MIT"
+homepage="https://github.com/sumneko/lua-language-server"
+changelog="https://github.com/sumneko/lua-language-server/blob/master/changelog.md"
+distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}-submodules.zip"
+checksum=b8dbbd7834fb338a36426b11f8f2cac7c995e7ccf846ac0a5a02b8c7d3b55344
+
+do_build() {
+ ninja -C 3rd/luamake -f compile/ninja/linux.ninja
+ ./3rd/luamake/luamake -platform ${XBPS_TARGET_MACHINE} rebuild
+}
+
+do_install() {
+ vinstall main.lua 644 usr/lib/${pkgname}
+ vinstall debugger.lua 644 usr/lib/${pkgname}
+ vinstall changelog.md 644 usr/lib/${pkgname}
+ vinstall bin/main.lua 644 usr/lib/${pkgname}/bin
+ vinstall bin/${pkgname} 755 usr/lib/${pkgname}/bin
+
+ vcopy meta usr/lib/${pkgname}
+ vcopy locale usr/lib/${pkgname}
+ vcopy script usr/lib/${pkgname}
+
+ vbin ${FILESDIR}/lua-language-server
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR REVIEW] New package: lua-language-server-3.5.0
2022-06-26 15:28 [PR PATCH] New package: lua-language-server-3.3.1 icp1994
` (8 preceding siblings ...)
2022-07-22 19:08 ` icp1994
@ 2022-07-23 8:43 ` tranzystorek-io
2022-07-23 8:53 ` classabbyamp
` (5 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: tranzystorek-io @ 2022-07-23 8:43 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 183 bytes --]
New review comment by tranzystorek-io on void-packages repository
https://github.com/void-linux/void-packages/pull/37694#discussion_r928097946
Comment:
Link to raw file is prefered
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR REVIEW] New package: lua-language-server-3.5.0
2022-06-26 15:28 [PR PATCH] New package: lua-language-server-3.3.1 icp1994
` (9 preceding siblings ...)
2022-07-23 8:43 ` [PR REVIEW] New package: lua-language-server-3.5.0 tranzystorek-io
@ 2022-07-23 8:53 ` classabbyamp
2022-07-23 8:54 ` classabbyamp
` (4 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: classabbyamp @ 2022-07-23 8:53 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 175 bytes --]
New review comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/37694#discussion_r928098842
Comment:
this should be `vdoc`ed
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR REVIEW] New package: lua-language-server-3.5.0
2022-06-26 15:28 [PR PATCH] New package: lua-language-server-3.3.1 icp1994
` (10 preceding siblings ...)
2022-07-23 8:53 ` classabbyamp
@ 2022-07-23 8:54 ` classabbyamp
2022-07-23 9:18 ` icp1994
` (3 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: classabbyamp @ 2022-07-23 8:54 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 184 bytes --]
New review comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/37694#discussion_r928098863
Comment:
required, really, when available
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR REVIEW] New package: lua-language-server-3.5.0
2022-06-26 15:28 [PR PATCH] New package: lua-language-server-3.3.1 icp1994
` (11 preceding siblings ...)
2022-07-23 8:54 ` classabbyamp
@ 2022-07-23 9:18 ` icp1994
2022-07-23 9:19 ` classabbyamp
` (2 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: icp1994 @ 2022-07-23 9:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 338 bytes --]
New review comment by icp1994 on void-packages repository
https://github.com/void-linux/void-packages/pull/37694#discussion_r928101103
Comment:
But the `changelog.md` is required to be in the lib dir to run the `lua-language-server --version` command.
https://github.com/sumneko/lua-language-server/blob/3.5.0/script/version.lua#L3-L7
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR REVIEW] New package: lua-language-server-3.5.0
2022-06-26 15:28 [PR PATCH] New package: lua-language-server-3.3.1 icp1994
` (12 preceding siblings ...)
2022-07-23 9:18 ` icp1994
@ 2022-07-23 9:19 ` classabbyamp
2022-07-23 9:23 ` [PR PATCH] [Updated] " icp1994
2022-07-23 9:30 ` [PR PATCH] [Merged]: " classabbyamp
15 siblings, 0 replies; 17+ messages in thread
From: classabbyamp @ 2022-07-23 9:19 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 170 bytes --]
New review comment by classabbyamp on void-packages repository
https://github.com/void-linux/void-packages/pull/37694#discussion_r928101232
Comment:
ok, nevermind then
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR PATCH] [Updated] New package: lua-language-server-3.5.0
2022-06-26 15:28 [PR PATCH] New package: lua-language-server-3.3.1 icp1994
` (13 preceding siblings ...)
2022-07-23 9:19 ` classabbyamp
@ 2022-07-23 9:23 ` icp1994
2022-07-23 9:30 ` [PR PATCH] [Merged]: " classabbyamp
15 siblings, 0 replies; 17+ messages in thread
From: icp1994 @ 2022-07-23 9:23 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]
There is an updated pull request by icp1994 against master on the void-packages repository
https://github.com/icp1994/void-packages lua-language-server
https://github.com/void-linux/void-packages/pull/37694
New package: lua-language-server-3.5.0
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, x86_64
Fixes https://github.com/void-linux/void-packages/issues/34436. I couldn't figure out a predefined `build-style` that would work for this. So it's likely missing flags required for cross-compilation as there is no `do_configure()`. I didn't put a separate `do_test()` since the tests seem to be running during the build phase itself. I tested via `lspconfig` in neovim and it works as expected.
A patch file from https://github.com/void-linux/void-packages/pull/37694.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-lua-language-server-37694.patch --]
[-- Type: text/x-diff, Size: 3386 bytes --]
From 6e3b76ae28352a7d25fdd7dc3ac61651743e310c Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Sat, 23 Jul 2022 00:36:17 +0530
Subject: [PATCH] New package: lua-language-server-3.5.0
---
.../files/lua-language-server | 6 ++++
.../patches/enable-cross-compilation.patch | 16 +++++++++
srcpkgs/lua-language-server/template | 33 +++++++++++++++++++
3 files changed, 55 insertions(+)
create mode 100644 srcpkgs/lua-language-server/files/lua-language-server
create mode 100644 srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
create mode 100644 srcpkgs/lua-language-server/template
diff --git a/srcpkgs/lua-language-server/files/lua-language-server b/srcpkgs/lua-language-server/files/lua-language-server
new file mode 100644
index 000000000000..e14e3b04a353
--- /dev/null
+++ b/srcpkgs/lua-language-server/files/lua-language-server
@@ -0,0 +1,6 @@
+#!/usr/bin/env sh
+
+STATE_PATH=${XDG_STATE_HOME:-$HOME/.local/state}/lua-language-server
+
+exec /usr/lib/lua-language-server/bin/lua-language-server /usr/lib/lua-language-server/main.lua \
+ --logpath="$STATE_PATH/log" --metapath="$STATE_PATH/meta" "$@"
diff --git a/srcpkgs/lua-language-server/patches/enable-cross-compilation.patch b/srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
new file mode 100644
index 000000000000..9cdd9784eb85
--- /dev/null
+++ b/srcpkgs/lua-language-server/patches/enable-cross-compilation.patch
@@ -0,0 +1,16 @@
+diff --git a/make/detect_platform.lua b/make/detect_platform.lua
+index 8dba298..fe8ae3e 100644
+--- a/make/detect_platform.lua
++++ b/make/detect_platform.lua
+@@ -22,9 +22,8 @@ elseif platform.OS == 'Windows' then
+ end
+ elseif platform.OS == 'Linux' then
+ if lm.platform == nil then
+- elseif lm.platform == "linux-x64" then
+- elseif lm.platform == "linux-arm64" then
+- lm.cc = 'aarch64-linux-gnu-gcc'
++ elseif os.getenv("CC") then
++ lm.cc = os.getenv("CC")
+ else
+ error "unknown platform"
+ end
diff --git a/srcpkgs/lua-language-server/template b/srcpkgs/lua-language-server/template
new file mode 100644
index 000000000000..b39ab4bfdaed
--- /dev/null
+++ b/srcpkgs/lua-language-server/template
@@ -0,0 +1,33 @@
+# Template file for 'lua-language-server'
+pkgname=lua-language-server
+version=3.5.0
+revision=1
+create_wrksrc=yes
+hostmakedepends="ninja"
+short_desc="Lua LSP implementation written in Lua"
+maintainer="icp <pangolin@vivaldi.net>"
+license="MIT"
+homepage="https://github.com/sumneko/lua-language-server"
+changelog="https://raw.githubusercontent.com/sumneko/lua-language-server/master/changelog.md"
+distfiles="${homepage}/releases/download/${version}/${pkgname}-${version}-submodules.zip"
+checksum=b8dbbd7834fb338a36426b11f8f2cac7c995e7ccf846ac0a5a02b8c7d3b55344
+
+do_build() {
+ ninja -C 3rd/luamake -f compile/ninja/linux.ninja
+ ./3rd/luamake/luamake -platform ${XBPS_TARGET_MACHINE} rebuild
+}
+
+do_install() {
+ vinstall main.lua 644 usr/lib/${pkgname}
+ vinstall debugger.lua 644 usr/lib/${pkgname}
+ vinstall changelog.md 644 usr/lib/${pkgname}
+ vinstall bin/main.lua 644 usr/lib/${pkgname}/bin
+ vinstall bin/${pkgname} 755 usr/lib/${pkgname}/bin
+
+ vcopy meta usr/lib/${pkgname}
+ vcopy locale usr/lib/${pkgname}
+ vcopy script usr/lib/${pkgname}
+
+ vbin ${FILESDIR}/lua-language-server
+ vlicense LICENSE
+}
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR PATCH] [Merged]: New package: lua-language-server-3.5.0
2022-06-26 15:28 [PR PATCH] New package: lua-language-server-3.3.1 icp1994
` (14 preceding siblings ...)
2022-07-23 9:23 ` [PR PATCH] [Updated] " icp1994
@ 2022-07-23 9:30 ` classabbyamp
15 siblings, 0 replies; 17+ messages in thread
From: classabbyamp @ 2022-07-23 9:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 833 bytes --]
There's a merged pull request on the void-packages repository
New package: lua-language-server-3.5.0
https://github.com/void-linux/void-packages/pull/37694
Description:
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**
#### Local build testing
- I built this PR locally for my native architecture, x86_64
Fixes https://github.com/void-linux/void-packages/issues/34436. I couldn't figure out a predefined `build-style` that would work for this. So it's likely missing flags required for cross-compilation as there is no `do_configure()`. I didn't put a separate `do_test()` since the tests seem to be running during the build phase itself. I tested via `lspconfig` in neovim and it works as expected.
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2022-07-23 9:30 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-26 15:28 [PR PATCH] New package: lua-language-server-3.3.1 icp1994
2022-06-27 7:25 ` [PR PATCH] [Updated] " icp1994
2022-06-28 5:17 ` icp1994
2022-06-28 5:21 ` icp1994
2022-07-02 10:11 ` [PR PATCH] [Updated] " icp1994
2022-07-06 9:49 ` [PR PATCH] [Updated] New package: lua-language-server-3.4.0 icp1994
2022-07-20 19:02 ` New package: lua-language-server-3.4.2 motorto
2022-07-20 19:03 ` motorto
2022-07-22 18:46 ` [PR PATCH] [Updated] " icp1994
2022-07-22 19:08 ` icp1994
2022-07-23 8:43 ` [PR REVIEW] New package: lua-language-server-3.5.0 tranzystorek-io
2022-07-23 8:53 ` classabbyamp
2022-07-23 8:54 ` classabbyamp
2022-07-23 9:18 ` icp1994
2022-07-23 9:19 ` classabbyamp
2022-07-23 9:23 ` [PR PATCH] [Updated] " icp1994
2022-07-23 9:30 ` [PR PATCH] [Merged]: " classabbyamp
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).