From 5a6dfc594a103d58ea39330783a554ef6ed294c1 Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Wed, 18 Aug 2021 16:38:57 +0530 Subject: [PATCH 1/5] lua-language-server: build from tag --- packages/lua-language-server/build.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/lua-language-server/build.sh b/packages/lua-language-server/build.sh index 0875d0393..ffe4ec3da 100644 --- a/packages/lua-language-server/build.sh +++ b/packages/lua-language-server/build.sh @@ -2,13 +2,12 @@ TERMUX_PKG_HOMEPAGE="https://github.com/sumneko/lua-language-server" TERMUX_PKG_DESCRIPTION="Sumneko Lua Language Server coded in Lua" TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_MAINTAINER="@MrAdityaAlok " -TERMUX_PKG_VERSION=2.3.4 +TERMUX_PKG_VERSION=2.3.6 TERMUX_PKG_SRCURL=https://github.com/sumneko/lua-language-server.git -TERMUX_PKG_GIT_BRANCH="master" +TERMUX_PKG_GIT_BRANCH="${TERMUX_PKG_VERSION}" TERMUX_PKG_BUILD_DEPENDS="libandroid-spawn" TERMUX_PKG_HOSTBUILD=true - termux_step_host_build() { termux_setup_ninja From 940ab97821b6b4b1eba19978ebf40ba632cca347 Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Sun, 3 Oct 2021 01:02:24 +0530 Subject: [PATCH 2/5] lua-language-server: update to 2.4.1 --- packages/lua-language-server/build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/lua-language-server/build.sh b/packages/lua-language-server/build.sh index ffe4ec3da..0a97fe545 100644 --- a/packages/lua-language-server/build.sh +++ b/packages/lua-language-server/build.sh @@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE="https://github.com/sumneko/lua-language-server" TERMUX_PKG_DESCRIPTION="Sumneko Lua Language Server coded in Lua" TERMUX_PKG_LICENSE="MIT" TERMUX_PKG_MAINTAINER="@MrAdityaAlok " -TERMUX_PKG_VERSION=2.3.6 +TERMUX_PKG_VERSION=2.4.1 TERMUX_PKG_SRCURL=https://github.com/sumneko/lua-language-server.git TERMUX_PKG_GIT_BRANCH="${TERMUX_PKG_VERSION}" TERMUX_PKG_BUILD_DEPENDS="libandroid-spawn" @@ -25,7 +25,7 @@ termux_step_make_install() { local INSTALL_DIR="${TERMUX_PREFIX}/lib/lua-language-server" - cat > "lua-language-server" <<- EOF + cat >"lua-language-server" <<-EOF #!${TERMUX_PREFIX}/bin/bash if [ "\$1" = "--start-lsp" ]; then @@ -47,11 +47,11 @@ termux_step_make_install() { } termux_step_create_debscripts() { - cat > prerm <<- EOF + cat >prerm <<-EOF #!${TERMUX_PREFIX}/bin/bash if [ "$TERMUX_PACKAGE_FORMAT" != "pacman" ] && [ "\$1" != "remove" ]; then exit 0; fi - # since lsp creates log file, therefore not removed automatically + # log files created by lsp is not removed automatically rm -rf "${TERMUX_PREFIX}/lib/lua-language-server" EOF } From 645648fe3f565c7533a53cd47c3db020d40b2108 Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Sun, 3 Oct 2021 01:17:42 +0530 Subject: [PATCH 3/5] lua-language-server: remove `bee-tests.patch` --- packages/lua-language-server/bee-tests.patch | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 packages/lua-language-server/bee-tests.patch diff --git a/packages/lua-language-server/bee-tests.patch b/packages/lua-language-server/bee-tests.patch deleted file mode 100644 index 3b6ac9f06..000000000 --- a/packages/lua-language-server/bee-tests.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- lua-language-server/3rd/bee.lua/make.lua 2021-08-10 10:20:06.735907389 +0530 -+++ lua-language-server-patch/3rd/bee.lua/make.lua 2021-08-10 19:24:38.931999705 +0530 -@@ -23,9 +23,3 @@ - output = "$bin/main.lua", - deps = "bootstrap", - } -- --lm:build "test" { -- "$bin/bootstrap"..exe, "@test/test.lua", -- deps = { "bootstrap", "copy_script", "bee" }, -- pool = "console" --} From 6e96ee4017f7ac4ade6269f3d8a8f21c21180ffa Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Sun, 3 Oct 2021 01:53:49 +0530 Subject: [PATCH 4/5] lua-language-server: remove `unittest.patch` --- packages/lua-language-server/unittest.patch | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 packages/lua-language-server/unittest.patch diff --git a/packages/lua-language-server/unittest.patch b/packages/lua-language-server/unittest.patch deleted file mode 100644 index 721698b13..000000000 --- a/packages/lua-language-server/unittest.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- lua-language-server/make.lua 2021-08-10 10:19:09.365907411 +0530 -+++ lua-language-server-patch/make.lua 2021-08-10 19:21:14.691999783 +0530 -@@ -22,17 +22,3 @@ - 'bootstrap', - } - } -- --local fs = require 'bee.filesystem' --local pf = require 'bee.platform' --local exe = pf.OS == 'Windows' and ".exe" or "" --lm:build 'unittest' { -- fs.path 'bin' / pf.OS / ('lua-language-server' .. exe), 'test.lua', '-E', -- pool = "console", -- deps = { -- 'install', -- 'test', -- } --} -- --lm:default 'unittest' From 91f466e1459e252814d5ebac20004e510d57e5ad Mon Sep 17 00:00:00 2001 From: Aditya Alok Date: Mon, 4 Oct 2021 00:20:24 +0530 Subject: [PATCH 5/5] lua-language-server: add again and update `unittest.patch` --- packages/lua-language-server/unittests.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 packages/lua-language-server/unittests.patch diff --git a/packages/lua-language-server/unittests.patch b/packages/lua-language-server/unittests.patch new file mode 100644 index 000000000..afcb54ca1 --- /dev/null +++ b/packages/lua-language-server/unittests.patch @@ -0,0 +1,19 @@ +--- lua-language-server/make.lua 2021-10-04 00:13:48.079999941 +0530 ++++ lua-language-server-patch/make.lua 2021-10-04 00:18:30.059999834 +0530 +@@ -21,16 +21,3 @@ + 'bee', + } + } +- +-local fs = require 'bee.filesystem' +-local pf = require 'bee.platform' +-local exe = pf.OS == 'Windows' and ".exe" or "" +-lm:build 'unittest' { +- fs.path 'bin' / pf.OS / ('lua-language-server' .. exe), 'test.lua', '-E', +- pool = "console", +- deps = { +- 'install', +- } +-} +- +-lm:default 'unittest'