commit:     cbfe85be0cb74ae1f90ec2f4ebf08bf40e9d3ac8
Author:     Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
AuthorDate: Thu Dec 29 10:59:01 2022 +0000
Commit:     Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
CommitDate: Thu Dec 29 10:59:01 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cbfe85be

dev-util/typescript-language-server: add 2.3.0

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>

 dev-util/typescript-language-server/Manifest       |  2 +
 .../typescript-language-server-2.3.0.ebuild        | 46 ++++++++++++++++++++++
 2 files changed, 48 insertions(+)

diff --git a/dev-util/typescript-language-server/Manifest 
b/dev-util/typescript-language-server/Manifest
index 30aecb200..ac5e73b06 100644
--- a/dev-util/typescript-language-server/Manifest
+++ b/dev-util/typescript-language-server/Manifest
@@ -2,3 +2,5 @@ DIST typescript-language-server-2.1.0-deps.tar.xz 1541348 
BLAKE2B b0f3e8a657fc47
 DIST typescript-language-server-2.1.0.tgz 156072 BLAKE2B 
230642988563df7b732b8387fbedcd2192808e26a607b12ad6674db4ba79feaf4b67cc0c43ac3b2d024f7d0f23dde958caa2b754eceb4b25606681915feb864a
 SHA512 
e25fe911c21ab9fe3c31ba23aa18acf872c7e361e916d35bad88176ef6838b84b3924de228a65ad727688f6aa4d72ebe069d51ab5f0476e6e2b711a1c23fdf94
 DIST typescript-language-server-2.2.0-deps.tar.xz 1566108 BLAKE2B 
132cfb7989d983c02e5458baf2db5642ca19088f71c1347054663b32daf96b889ab7c95031d1c8a841de7d99df0d100c4ce26e46445ddf94aad1b911cbf5658d
 SHA512 
353e5abd4edec07ca9e969680b426e4108b182511b02dee0e56492fb7668cfd0b4facab8baf2aec56c19ef29f95438a3796b443658640ebccd16e4f3caf56287
 DIST typescript-language-server-2.2.0.tgz 153396 BLAKE2B 
03b65a7c6fc5458fbad3b485033c19865ce8ecb23c5ecd99e27573aa19c269e6c63af417086e424f6c9853901dd842e768bbda06154bee209ee80c653c8fca05
 SHA512 
5473015f35d98b2ca99faad4b480bed54f28c2626ef5b8d521c78e4550d994977e9052d9e399a4e0e14814a1cdf1364de95adc3f27351289785876fb0aa1d686
+DIST typescript-language-server-2.3.0-deps.tar.xz 3054276 BLAKE2B 
55d2471f67585844e82df0ca6fa2b59396507fc1491dcd7074d616c54fb4d1ad89bf57b421974532265ef2c4f1c97295270cade15fadc332f39aa401109bddf3
 SHA512 
a08bb64bf1ea765dcae617684e9571ff35817f8f80898d31ce797b46efeba8db0ecc370f1e88630fa5c8a051ce5e332c21e7fac8a0c0581e3bb7632cbc7501b7
+DIST typescript-language-server-2.3.0.tgz 154055 BLAKE2B 
ebe0078c370e6b6ccf802804aebab0b85cb81e9df0a084440541fc8d141f32f2710c532bd34e305ab6a858d2386240f5afe3b7bbf37cfac93f06e380309c606f
 SHA512 
efdf36d3f2c4659c73cc42cae900ec816cf9f4be8718528eed6f421424d0030c5732291d1b0b85e2ef7fba8119d147a4621ef99554041f8c151594e446d6adf8

diff --git 
a/dev-util/typescript-language-server/typescript-language-server-2.3.0.ebuild 
b/dev-util/typescript-language-server/typescript-language-server-2.3.0.ebuild
new file mode 100644
index 000000000..5131687a0
--- /dev/null
+++ 
b/dev-util/typescript-language-server/typescript-language-server-2.3.0.ebuild
@@ -0,0 +1,46 @@
+# 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 ./npm-cache install $(portageq envvar DISTDIR)/${P}.tgz
+#       tar -caf ${P}-deps.tar.xz npm-cache
+
+LICENSE="Apache-2.0 ISC MIT-with-advertising"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       net-libs/nodejs
+       >=dev-lang/typescript-4.9.4
+"
+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"
+
+       cd "${ED}"/usr/$(get_libdir)/node_modules/${PN} || die "cd failed"
+       einstalldocs
+}

Reply via email to