This repository has been archived on 2024-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
overlay/dev-util/typescript-language-server/typescript-language-server-1.1.2.ebuild
tastytea 82582af39a
All checks were successful
continuous-integration/drone/push Build is passing
dev-util/*: Fix nodejs *DEPEND
Signed-off-by: tastytea <tastytea@tastytea.de>
2022-09-05 17:55:55 +02:00

46 lines
998 B
Bash

# Copyright 2022 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
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"
RDEPEND="
net-libs/nodejs
dev-lang/typescript
"
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
}