dev-util/bash-language-server - 5.4.3 (guru)

Search

Install

Install this version:

emerge -a =dev-util/bash-language-server-5.4.3

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-util/bash-language-server-5.4.3

Or alternatively:

emerge --autounmask-write -a =dev-util/bash-language-server-5.4.3

Package Information

Description:
A language server for Bash
Homepage:
https://github.com/bash-lsp/bash-language-server
License:
BSD-2 ISC MIT

Ebuild Details

Version EAPI Keywords Slot
5.4.3 8 ~amd64 0
View Raw Ebuild
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

#@formatter:off
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://github.com/ingenarel/guru-depfiles/releases/download/0.1/bash-language-server-${PV}-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="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
}

Inherited Eclasses

Applicable Mirrors

Mirror Name URLs
npm

Dependencies

RDEPEND

>=net-libs/nodejs-18.19.30

BDEPEND

>=net-libs/nodejs-18.19.30[npm]

Manifest for 5.4.3

Type File Size Source URLs
DIST bash-language-server-5.4.3-deps.tar.xz 3553232 bytes https://github.com/ingenarel/guru-depfiles/releases/download/0.1/bash-language-server-5.4.3-deps.tar.xz
DIST bash-language-server-5.4.3.tgz 329590 bytes mirror://npm/bash-language-server/-/bash-language-server-5.4.3.tgz