diff options
author | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-06-03 21:56:36 -0700 |
---|---|---|
committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2021-06-03 22:03:16 -0700 |
commit | 2918079af04c1ae635e0a7a82fddab1b2c2ebe62 (patch) | |
tree | 26f0ab1334abce2d5cf1dcc2cc3713bd2f73c8cc /dev-lang/typescript | |
parent | profiles/arch/amd64/x32: add typescript to nodejs mask list (diff) | |
download | gentoo-2918079af04c1ae635e0a7a82fddab1b2c2ebe62.tar.gz gentoo-2918079af04c1ae635e0a7a82fddab1b2c2ebe62.tar.bz2 gentoo-2918079af04c1ae635e0a7a82fddab1b2c2ebe62.zip |
dev-lang/typescript: initial import
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-lang/typescript')
-rw-r--r-- | dev-lang/typescript/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/typescript/metadata.xml | 11 | ||||
-rw-r--r-- | dev-lang/typescript/typescript-4.3.2.ebuild | 39 |
3 files changed, 51 insertions, 0 deletions
diff --git a/dev-lang/typescript/Manifest b/dev-lang/typescript/Manifest new file mode 100644 index 000000000000..8bf7068eda85 --- /dev/null +++ b/dev-lang/typescript/Manifest @@ -0,0 +1 @@ +DIST typescript-4.3.2.tgz 10624314 BLAKE2B b980fbabc60e143470d437a93247b874823353b7e7e9691b2a35abdfc2c5323fc7184f9ca8adca5211cebc329eac467900a7a54af8435e8955c8d76903a3f14a SHA512 cd9e214a19e69e8567007a551d6a5373176fedd58feb44b616cc9d40b57c5793db4b71627e3585151887496a4325a865cbcf0f472579b5e4d22e8ab8786ee62b diff --git a/dev-lang/typescript/metadata.xml b/dev-lang/typescript/metadata.xml new file mode 100644 index 000000000000..4690a60f1fb7 --- /dev/null +++ b/dev-lang/typescript/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>gyakovlev@gentoo.org</email> + <name>Georgy Yakovlev</name> + </maintainer> + <upstream> + <remote-id type="github">microsoft/TypeScript</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-lang/typescript/typescript-4.3.2.ebuild b/dev-lang/typescript/typescript-4.3.2.ebuild new file mode 100644 index 000000000000..c8e9c00de4d6 --- /dev/null +++ b/dev-lang/typescript/typescript-4.3.2.ebuild @@ -0,0 +1,39 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Superset of JavaScript with optional static typing, classes and interfaces" +HOMEPAGE="https://www.typescriptlang.org" +SRC_URI="https://registry.npmjs.org/${PN}/-/${P}.tgz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64" + +DEPEND="" +RDEPEND="net-libs/nodejs" +BDEPEND="net-libs/nodejs[npm]" + +S="${WORKDIR}/package" + +src_compile() { + # nothing to compile here + : +} + +src_install() { + npm \ + --audit false \ + --color false \ + --foreground-scripts \ + --global \ + --offline \ + --omit dev \ + --prefix "${ED}"/usr \ + --progress false \ + --verbose \ + install "${DISTDIR}/${P}".tgz || die "npm install failed" + + einstalldocs +} |