guru/dev-util/typescript-language-server/typescript-language-server-4.1.2.ebuild
tastytea 19310a35e0
dev-util/typescript-language-server: add 4.1.2
Signed-off-by: tastytea <gentoo@tastytea.de>
2023-11-15 22:14:41 +01:00

41 lines
805 B
Bash

# Copyright 2022-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="TypeScript & JavaScript Language Server"
HOMEPAGE="https://www.npmjs.com/package/typescript-language-server"
SRC_URI="mirror://npm/${PN}/-/${P}.tgz"
S="${WORKDIR}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
>=net-libs/nodejs-18
"
BDEPEND="
>=net-libs/nodejs-18[npm]
>=dev-lang/typescript-5.2.2
"
src_unpack() {
: # npm uses the archive directly
}
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
}