commit: 5de640b578b350bf7731ed27ed0013061516f14e Author: tastytea <gentoo <AT> tastytea <DOT> de> AuthorDate: Thu Apr 25 11:05:35 2024 +0000 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> CommitDate: Thu Apr 25 11:05:35 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5de640b5
dev-util/bash-language-server: add 5.2.0 Signed-off-by: tastytea <gentoo <AT> tastytea.de> dev-util/bash-language-server/Manifest | 1 + .../bash-language-server-5.2.0.ebuild | 48 ++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/dev-util/bash-language-server/Manifest b/dev-util/bash-language-server/Manifest index 481ae69c8a..5aa4630f08 100644 --- a/dev-util/bash-language-server/Manifest +++ b/dev-util/bash-language-server/Manifest @@ -2,3 +2,4 @@ DIST bash-language-server-5.0.0-deps.tar.xz 2215800 BLAKE2B 745abb2362062e5eff4c DIST bash-language-server-5.0.0.tgz 189362 BLAKE2B 088af07ab06106624bbdf25dd414c275cb039a128d80d3cc774d41a1927a12b74dd68676d5d2dec450d70c0ea24d346aa1f879701b59b0e085e0b84a8c39ea89 SHA512 d52e4f3103b83f05c32223c7504e9d61df2f645d4d66a6f78b802cb5ded45c3e254969d2a3bd4ca92993a53b3f75361cbe8dbff73d88ca66cd3cfca7fd5b8cdb DIST bash-language-server-5.1.2-deps.tar.xz 2260220 BLAKE2B ebc5e7995d66e487cdb5bd7055e91d5225f0040dfd9001aa1d0d0da304790d1d9f9e80fa978ebe2df5d2c626d835aea22bb0cc21140fca131e4065965819a0b2 SHA512 109e533d7f644f2f69a8574b4d91062a88ce65cfa8df8073fe76d59cd9050fc2141f601b952d4274b4ca323d3ace0f2992d3c699eac7a3941b75fd51865f9752 DIST bash-language-server-5.1.2.tgz 211254 BLAKE2B 81195bbc88e4a6e5037620c64489cf3d2036cedc11c709120bfa7473b931f0818942e02c8ecdef2f47e483d7ce7fc623d78f76ce48683f5eba7268a133f440e5 SHA512 85780def5556555da74151357a3eec7001d51af440c68621b362b0cef26afa54aaa78550eb433409f7f543324a24cfdc4f22d636369b6fdf1b0c66600cc321da +DIST bash-language-server-5.2.0.tgz 326709 BLAKE2B ce6fe83417363d86ad38e3be71d5321107ffddfb1c4d23fb45a9aebf1c412dfa262b26bb90c31857a9eda84f2b50c94bcdaa45f3ba59a5a6af7e9e5b6427154e SHA512 8442c359ce5691dbcd6adfddbffa676eb79b33173c52d4a68ec635fc44792bbf8b284e817330b51d9419feb31334e78581a1927b290beb79034d4151226c5758 diff --git a/dev-util/bash-language-server/bash-language-server-5.2.0.ebuild b/dev-util/bash-language-server/bash-language-server-5.2.0.ebuild new file mode 100644 index 0000000000..fcb4129d34 --- /dev/null +++ b/dev-util/bash-language-server/bash-language-server-5.2.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit optfeature + +DESCRIPTION="A language server for Bash" +HOMEPAGE="https://github.com/bash-lsp/bash-language-server" +SRC_URI=" + mirror://npm/${PN}/-/${P}.tgz +" +S="${WORKDIR}" + +# NOTE: to generate the dependency tarball: +# npm --cache ./npm-cache install $(portageq envvar DISTDIR)/${P}.tgz +# tar -caf ${P}-deps.tar.xz npm-cache + +LICENSE="BSD-2 ISC MIT" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=">=net-libs/nodejs-18.19.30" +BDEPEND=">=net-libs/nodejs-18.19.30[npm]" + +src_unpack() { + cd "${T}" || die "Could not cd to temporary directory" + unpack ${P}-deps.tar.xz +} + +src_install() { + npm \ + --offline \ + --verbose \ + --progress false \ + --foreground-scripts \ + --global \ + --prefix "${ED}"/usr \ + --cache "${T}"/npm-cache \ + install "${DISTDIR}"/${P}.tgz || die "npm install failed" + + cd "${ED}"/usr/$(get_libdir)/node_modules/${PN} || die "cd failed" + einstalldocs +} + +pkg_postinst() { + optfeature "linting support" dev-util/shellcheck dev-util/shellcheck-bin +}