dev-util/yaml-language-server: new package, add 1.10.0

Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
tastytea 2022-09-05 17:52:56 +02:00
parent c3c4fa0c58
commit 216e8a1c2f
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
3 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,2 @@
DIST yaml-language-server-1.10.0-deps.tar.xz 4684544 BLAKE2B e11723488096740fe4de641479c08593e43db9acd6e1fcc7a71ff5d55d02ccf36254edc0916f76526facef9aad2384f09d9521523289771e941f1953cef4ecd6 SHA512 6022c56ed169ec663d6d590b589d60a5b64f2346a17c35b411fae3abae9fa2024a3fed7e72aecd3455b3c09f3b7ceebbcb4dd373540415f9ee604e6b5f62512d
DIST yaml-language-server-1.10.0.tgz 542896 BLAKE2B 69a44dc4b1778e04847d65ca1d251291935c02e85a6fc2c056145bd726d95b64f5a649ed085a20c059242c7a1f3846c60a1d54b493156552ef71ba2341e01594 SHA512 6c613994e6dcf0f0570d0f10284594545c3ce7f8354774d56ed2cfb30358f985d1d9f2dbd5117a3d6dc228d23482c8574d22a57b2c21032391ad78bb7e3c29ce

View File

@ -0,0 +1,8 @@
<?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>
</pkgmetadata>

View File

@ -0,0 +1,42 @@
# Copyright 2022 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://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-2 ISC MIT-with-advertising"
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
}