blob: b3f5e4173b04d89ee0a66a87762b2d27f9281403 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Copyright 2022-2024 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.19.15
"
BDEPEND="
>=net-libs/nodejs-18.19.15[npm]
>=dev-lang/typescript-5.3.3
"
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
}
|