dev-util/vscode-langservers-extracted: new package, add 4.4.0
continuous-integration/drone/push Build is failing Details

Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
tastytea 2022-08-21 17:14:46 +02:00
parent 0a98e0c754
commit 35fa1b6152
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
3 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,2 @@
DIST vscode-langservers-extracted-4.4.0-deps.tar.xz 14579232 BLAKE2B d9a4e4cc02773c033930f3ad6682c2fd9671887bebdf47e67130dfa697a87460a7b7f28944c95ba7dc3682cf7333dc77081c67c861646029f24be561dd6ea3e0 SHA512 88d1e11be6a9235adcb1fda075e5c6096b9b9760f6f3131c68592b745bc0c4668548ab8e1698484bed34c08e7bdbb347665e2e3357fc01641feca36fa6528ac1
DIST vscode-langservers-extracted-4.4.0.tgz 776439 BLAKE2B 0cd2dc9cb4fe6fc6a5b1d6fd2e38fc3b9bf0ab3ec5610b6226ffcd629bc3d7435957b28c2fd9b48b66cca7818919cca2ac160fc1a16f8c017d403ef4a58953e0 SHA512 b165c316602f5cc52117913eeafe1eefb4b08553d2bdd2f11867e43b3d792e602c7caa1a98a3275bb680467bba99158eceacf784a26a5593788670a976fb4b2a

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,45 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="HTML/CSS/JSON/ESLint/Markdown language servers extracted from vscode."
HOMEPAGE="https://github.com/hrsh7th/vscode-langservers-extracted"
SRC_URI="
https://registry.npmjs.org/${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 ISC MIT"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="net-libs/nodejs[npm]"
RDEPEND="${DEPEND}"
BDEPEND="${DEPEND}"
src_unpack() {
unpack ${P}-deps.tar.xz
mv npm-cache "${T}"/ || die "Could not move npm cache"
}
src_compile() {
npm --offline --verbose --cache "${T}"/npm-cache \
install "${DISTDIR}"/${P}.tgz \
|| die "Compilation failed"
}
src_install() {
insinto opt/${PN}
doins -r node_modules
for serv in css eslint html json markdown; do
local path=/opt/${PN}/node_modules/${PN}/bin/vscode-${serv}-language-server
chmod +x "${ED}"/${path} || die
dosym -r ${path} /usr/bin/vscode-${serv}-language-server
done
einstalldocs
}