commit: ffe0fbb9782bca9f7511fa9654865c4b2d0523a6 Author: tastytea <gentoo <AT> tastytea <DOT> de> AuthorDate: Wed May 8 17:02:10 2024 +0000 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> CommitDate: Wed May 8 17:04:46 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ffe0fbb9
dev-util/vscode-langservers-extracted: add 4.10.0 Signed-off-by: tastytea <gentoo <AT> tastytea.de> dev-util/vscode-langservers-extracted/Manifest | 2 + .../vscode-langservers-extracted-4.10.0.ebuild | 43 ++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/dev-util/vscode-langservers-extracted/Manifest b/dev-util/vscode-langservers-extracted/Manifest index b2bb3707f0..8d3096a98a 100644 --- a/dev-util/vscode-langservers-extracted/Manifest +++ b/dev-util/vscode-langservers-extracted/Manifest @@ -1,3 +1,5 @@ +DIST vscode-langservers-extracted-4.10.0-deps.tar.xz 15955680 BLAKE2B 6d741200c0f0f6e7cb7b3377cc3bc07882ab4de2b05e8f1a4c8725712c8d960f35696faf728267d94023cfb144f4d87b4f8e4720162707bc6c9142581dbd9122 SHA512 077aea82e1916cd3ac5585cd836f824d6ac8a3eef1d90586df2c96d4b83f08b483fe18ad145866dc0d4005602a5b327265ec9d402cb55cd2e288a608baee3739 +DIST vscode-langservers-extracted-4.10.0.tgz 135843 BLAKE2B 32c53dcf3106ca53d4afc46827a00f84767c588f7d4d39a65ed3ecae506673dbe5c9410b9480547b369722bfc0accc3caf811119b2651ce69fe79964f49c87cb SHA512 1057fdb9023874029bccc4058c3bd59b5c49ab50d7010bc112e11f3c6acaff1cdfb0be715937c8b91afdd0d81f9aac0ef8812deaf2d99bd10e8fa47aeb12227e DIST vscode-langservers-extracted-4.7.0-deps.tar.xz 14980900 BLAKE2B 0d57554d6626eeceeb511620cadbbfc539739848417de461f1b253f22e3e02c01fd9f33bf58c94bf99d7bd1a589628c44f63bcf3fce56510d33ac23474f9ad5d SHA512 e06a19e7fea23b1190d9065f9b31889968b726f9ff309c904d1ad8b0dc8164f47c68a53a5502bc4819984ae3a44623c474feda0c3da0e6322db37cfb9e9e446a DIST vscode-langservers-extracted-4.7.0.tgz 135310 BLAKE2B a312b8848b110aaf7744d857f712d727d2742c5bdbb93e2926566af686c62b2c534658fdb1779ae80223a69d5937d1fcc2d7e9b81f78f2b190962ae6b307d8f9 SHA512 3995a0adecaf08a74a5784df0465ebc62255693d38d529281374f3414092fc49cae79ccc18cd5fab51e85ed14b32fa9ab44b956123c5da5cb0ac08f601cd2669 DIST vscode-langservers-extracted-4.8.0-deps.tar.xz 15514920 BLAKE2B 1360a59e37197bd5f4ebf52daa79a0e0761701fbc1393d74d8d13b7e44320c9ab94e69055f34d9d2e5b8a9680645111657758cbf63a391ce57740d38cfec01f3 SHA512 65eb26afe70f50313c4f98ab80c92461ab57b4f81bbf84e17093895e6fea871d8895240edee353fa830e203cf5105560d0d465d52ce59b4443b95251a7d0d48b diff --git a/dev-util/vscode-langservers-extracted/vscode-langservers-extracted-4.10.0.ebuild b/dev-util/vscode-langservers-extracted/vscode-langservers-extracted-4.10.0.ebuild new file mode 100644 index 0000000000..0b51d2ecda --- /dev/null +++ b/dev-util/vscode-langservers-extracted/vscode-langservers-extracted-4.10.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="HTML/CSS/JSON/ESLint/Markdown language servers extracted from vscode." +HOMEPAGE="https://github.com/hrsh7th/vscode-langservers-extracted" +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 BSD-2 MIT-with-advertising" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND="net-libs/nodejs" +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 +}