commit:     e762433533d9d78082a023574b90470ebd7e4c29
Author:     Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Thu Dec 29 10:22:36 2022 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Thu Dec 29 10:22:36 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e7624335

dev-util/bash-language-server: add 4.1.3

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>

 dev-util/bash-language-server/Manifest             |  2 +
 .../bash-language-server-4.1.3.ebuild              | 51 ++++++++++++++++++++++
 2 files changed, 53 insertions(+)

diff --git a/dev-util/bash-language-server/Manifest 
b/dev-util/bash-language-server/Manifest
index 5d8425b21..a5cd5a3dd 100644
--- a/dev-util/bash-language-server/Manifest
+++ b/dev-util/bash-language-server/Manifest
@@ -2,3 +2,5 @@ DIST bash-language-server-3.3.1-deps.tar.xz 3557556 BLAKE2B 
4c231bcb7d21951d5244
 DIST bash-language-server-3.3.1.tgz 142732 BLAKE2B 
40d60cf875c0c60c49a3600c6b3488c95c16cb1088f07d3a35c46ab78fd077db5de71ddd321b7b8cb2d03867fb2a8ffa8f4e2179f0dd1d1d469cfebf979b3e4e
 SHA512 
f774eceab41310ff2bbc66775cf4b2d74e4633842ceb2bc8b8252f4620c8c7480c2c57a6b1c0a4bf2aeb8a10c43249a36f44f74da459c855e0a1993911af1b97
 DIST bash-language-server-4.0.1-deps.tar.xz 2160812 BLAKE2B 
bbf8f1d88c4be377c650bd379d557a67fdfcf560149b639f402c7682152c12ea00fa19f127574d26f6cf72ceee160894ccc35ca119fe9c8fde7cafe4725d5e9c
 SHA512 
f87219c7df50d0062e8babbef100ce4a547c9b3d390daedbc37571e06ca0d8586d6c2e67f4cd369f4eb20932d641ffa78365742ba5cda628213b67832f8214c4
 DIST bash-language-server-4.0.1.tgz 151418 BLAKE2B 
93989871476092a7e7fd244fb9237811f84c1eb80dbd25138292006c160991a85c49df1f91d85460b5ec78ee689a58c87956b3c1f8c61e77a6fda1404ed1d7ad
 SHA512 
c40b384edaa55e7395e81aa33397c64761601524a32f218bbf3dc51095deddddaf11a336a4e8022dfa07ca843720852d64a6442f4d9d367f26aff21f8698fbe2
+DIST bash-language-server-4.1.3-deps.tar.xz 2189212 BLAKE2B 
dc0b9bd2f38f382e6f80f9fa7cbce40d7bf71a539be84b37fe0bbe977fcb2fdffc7f19b37c1c34535145cfd392cd0f6f601c2e0219d91b9d453486f7fe3912b0
 SHA512 
d84a252b220537a20177979502024b013c2218e5a52b81a9dd5a521d45d8092170abc7c4a47e8de8a4f3bd3029b9c3fc4ff5b4627719f7f561c8f4984298d60f
+DIST bash-language-server-4.1.3.tgz 162303 BLAKE2B 
a42851ac516c935e15ee8c2891c9637b0d0f87341455c53e69a217bb327d653100fc5dd9397e5456601f6f03539c8bd39a13d00f79d887d0eaaa5f5fb9f59684
 SHA512 
43c867bd9a088ad2a99ff41c1ec7f08b705d6842f73f79a53121e89f1fdbdb35ea0de6458783b47cc5013d09ae9eaf791f0333e462bb92fecc9cd086af5ac14f

diff --git a/dev-util/bash-language-server/bash-language-server-4.1.3.ebuild 
b/dev-util/bash-language-server/bash-language-server-4.1.3.ebuild
new file mode 100644
index 000000000..f1b458f5b
--- /dev/null
+++ b/dev-util/bash-language-server/bash-language-server-4.1.3.ebuild
@@ -0,0 +1,51 @@
+# Copyright 2022 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
+       https://tastytea.de/files/gentoo/${P}-deps.tar.xz
+"
+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="
+       Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT-with-advertising
+       || ( public-domain Unlicense )
+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="net-libs/nodejs"
+BDEPEND="net-libs/nodejs[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"
+
+       einstalldocs
+}
+
+pkg_postinst() {
+       optfeature "linting support" dev-util/shellcheck dev-util/shellcheck-bin
+}

Reply via email to