gentoo/dev-lang/typescript/typescript-5.9.2.ebuild
Sam James d1c11b2e90
dev-lang/typescript: Stabilize 5.9.2 amd64, #962614
Signed-off-by: Sam James <sam@gentoo.org>
2025-09-13 02:25:29 +01:00

44 lines
834 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Superset of JavaScript with optional static typing, classes and interfaces"
HOMEPAGE="https://www.typescriptlang.org/
https://github.com/microsoft/TypeScript/"
SRC_URI="https://registry.npmjs.org/${PN}/-/${P}.tgz"
S="${WORKDIR}/package"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~ppc64"
RDEPEND="
net-libs/nodejs
"
BDEPEND="
>=net-libs/nodejs-16[npm]
"
src_compile() {
# Skip, nothing to compile here.
:
}
src_install() {
local -a myopts=(
--audit false
--color false
--foreground-scripts
--global
--offline
--omit dev
--prefix "${ED}/usr"
--progress false
--verbose
)
npm "${myopts[@]}" install "${DISTDIR}/${P}.tgz" || die "npm install failed"
dodoc *.md *.txt
}