dev-util/vscode-langservers-extracted: fix install path
continuous-integration/drone/push Build is passing Details

Signed-off-by: tastytea <tastytea@tastytea.de>
This commit is contained in:
tastytea 2022-09-04 06:10:06 +02:00
parent 73a9100f7e
commit 1a112d3444
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,43 @@
# 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="
mirror://npm/${PN}/-/${PN}-4.4.0.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() {
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 "Compilation failed"
einstalldocs
}