dev-util/yaml-language-server - 1.21.0 (bennypowers)

Search

Install

Install this version:

emerge -a =dev-util/yaml-language-server-1.21.0

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

autounmask =dev-util/yaml-language-server-1.21.0

Or alternatively:

emerge --autounmask-write -a =dev-util/yaml-language-server-1.21.0

Package Information

Description:
Language Server for YAML Files
Homepage:
https://github.com/redhat-developer/yaml-language-server
License:
0BSD Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT

Ebuild Details

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

EAPI=8

DESCRIPTION="Language Server for YAML Files"
HOMEPAGE="https://github.com/redhat-developer/yaml-language-server"
SRC_URI="
	mirror://npm/${PN}/-/${P}.tgz
	https://github.com/bennypowers/gentoo-overlay/releases/download/${P}/${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="0BSD Apache-2.0 BSD BSD-2 CC0-1.0 ISC MIT"
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"

	cd "${ED}"/usr/$(get_libdir)/node_modules/${PN} || die "cd failed"
	einstalldocs
}

Dependencies

RDEPEND

net-libs/nodejs

BDEPEND

net-libs/nodejs[npm]

Manifest for 1.21.0

Type File Size Source URLs
DIST yaml-language-server-1.21.0-deps.tar.xz 4379256 bytes https://github.com/bennypowers/gentoo-overlay/releases/download/yaml-language-server-1.21.0/yaml-language-server-1.21.0-deps.tar.xz
DIST yaml-language-server-1.21.0.tgz 583768 bytes mirror://npm/yaml-language-server/-/yaml-language-server-1.21.0.tgz