dev-util/bash-language-server: new package, add 3.1.0

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
Ronny (tastytea) Gutbrod
2022-09-07 03:52:10 +02:00
parent f5e0a0d48f
commit e18d1fdb8b
3 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
DIST bash-language-server-3.1.0-deps.tar.xz 3304768 BLAKE2B daf65f274b96f7e53dedb2fe2c4152d73cf4f78e00ecab516657f1e18265807a430a71d8c8dd4b9be1f0bbad3318977a7ecddce65247d2fae926948f089adc00 SHA512 4a083882aea9c203d887af6f0d4f7912a0bf0706364c72665013a8833d780add18e9cecbb06100a739215ee689c681558fd6bfd282838c6c8cbdc9fd2b28eb28
DIST bash-language-server-3.1.0.tgz 140577 BLAKE2B df87268f0e2b381e637396eee6ad0462b6a39ce83bfbd04adc936d06dad1a4769fc840f7aff4b8f6146d790a39383dcef8c040858217d3b5ceece22dd1bd2a37 SHA512 0da4e5643eb44b7665740921721e681f5bf1527f23a1e170ef720e9f03309994a56d072d683ae73fb0dd0cf455aeb437ba151095a68e18f7890ac63f6be57aa6

View File

@@ -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 "$(realpath ./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
}

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>gentoo@tastytea.de</email>
<name>Ronny (tastytea) Gutbrod</name>
</maintainer>
<longdescription lang="en">
Bash language server implementation based on Tree Sitter and its grammar
for Bash and supports explainshell and shellcheck.
</longdescription>
<upstream>
<remote-id type="github">bash-lsp/bash-language-server</remote-id>
</upstream>
</pkgmetadata>