From d2db2a52517cd974644c04fea991131457661f1d Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Thu, 22 Sep 2022 15:17:28 +0200 Subject: dev-lang/typescript: update to EAPI 8; misc tweaks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- dev-lang/typescript/typescript-4.5.4-r1.ebuild | 39 ++++++++++++++++++++++++++ dev-lang/typescript/typescript-4.5.4.ebuild | 39 -------------------------- dev-lang/typescript/typescript-4.8.3-r1.ebuild | 39 ++++++++++++++++++++++++++ dev-lang/typescript/typescript-4.8.3.ebuild | 39 -------------------------- 4 files changed, 78 insertions(+), 78 deletions(-) create mode 100644 dev-lang/typescript/typescript-4.5.4-r1.ebuild delete mode 100644 dev-lang/typescript/typescript-4.5.4.ebuild create mode 100644 dev-lang/typescript/typescript-4.8.3-r1.ebuild delete mode 100644 dev-lang/typescript/typescript-4.8.3.ebuild diff --git a/dev-lang/typescript/typescript-4.5.4-r1.ebuild b/dev-lang/typescript/typescript-4.5.4-r1.ebuild new file mode 100644 index 000000000000..02196457057b --- /dev/null +++ b/dev-lang/typescript/typescript-4.5.4-r1.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 +} diff --git a/dev-lang/typescript/typescript-4.5.4.ebuild b/dev-lang/typescript/typescript-4.5.4.ebuild deleted file mode 100644 index dcbc71b38d89..000000000000 --- a/dev-lang/typescript/typescript-4.5.4.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# 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-16[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 -} diff --git a/dev-lang/typescript/typescript-4.8.3-r1.ebuild b/dev-lang/typescript/typescript-4.8.3-r1.ebuild new file mode 100644 index 000000000000..02196457057b --- /dev/null +++ b/dev-lang/typescript/typescript-4.8.3-r1.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 +} diff --git a/dev-lang/typescript/typescript-4.8.3.ebuild b/dev-lang/typescript/typescript-4.8.3.ebuild deleted file mode 100644 index 647f4a120aee..000000000000 --- a/dev-lang/typescript/typescript-4.8.3.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 2021-2022 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-16[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 -} -- cgit v1.2.3-65-gdbad