From 6330245077f9f298a785e17756a8f59a843361a5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 18 Nov 2022 00:57:34 +0000 Subject: gentoo auto-resync : 18:11:2022 - 00:57:34 --- dev-lang/typescript/typescript-4.9.3.ebuild | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 dev-lang/typescript/typescript-4.9.3.ebuild (limited to 'dev-lang/typescript/typescript-4.9.3.ebuild') diff --git a/dev-lang/typescript/typescript-4.9.3.ebuild b/dev-lang/typescript/typescript-4.9.3.ebuild new file mode 100644 index 000000000000..02196457057b --- /dev/null +++ b/dev-lang/typescript/typescript-4.9.3.ebuild @@ -0,0 +1,39 @@ +# Copyright 2021-2022 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 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 +} -- cgit v1.2.3