From dbbd52c56a7bfcbda9687a70b5d1bab6bce1bab9 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 11 Jun 2023 13:11:37 +0200 Subject: dev-util/dockerfile-language-server: add 0.10.2 Signed-off-by: tastytea --- dev-util/dockerfile-language-server/Manifest | 2 + .../dockerfile-language-server-0.10.2.ebuild | 44 ++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 dev-util/dockerfile-language-server/dockerfile-language-server-0.10.2.ebuild (limited to 'dev-util') diff --git a/dev-util/dockerfile-language-server/Manifest b/dev-util/dockerfile-language-server/Manifest index 8d466b8f8..efbca53a0 100644 --- a/dev-util/dockerfile-language-server/Manifest +++ b/dev-util/dockerfile-language-server/Manifest @@ -1,2 +1,4 @@ +DIST dockerfile-language-server-0.10.2-deps.tar.xz 995476 BLAKE2B 8673bf2a780528a431b141f5633b75b3a9e7ba7ffe7267df9a8cf93fae82f82818bc65741f403bf0780e6fb3f1854d52e8715fd2d738b531cc8e8fff98a8069e SHA512 020f2f8a358e9ac6003f6224fa4484d9579dca0e03dfe30c0946dee763016d915a27c686353f9a004a002b02edf43f621462d6771e27dcd32931dd29852dd6cc DIST dockerfile-language-server-0.9.0-deps.tar.xz 947604 BLAKE2B 440d68131507f3e0b265ea117fda452f860233960ad5bccf41e9163c12ce62fedd643e067a074bb007031b041b16ee67379bb755931d0476e7e0399a67d72537 SHA512 6195007faa078319e4a67c1fbe8c33fe002f6f92f0dfd18f5393151cf78b27d1ff57e0d2916be45b4817b5a67c6da35843f4a5fd96d3c2f02301705f304caeb8 +DIST dockerfile-language-server-nodejs-0.10.2.tgz 19882 BLAKE2B 90f1b5387df2c9db9a302e36f8df59d53c8235b69abd9b74d273e5bfd2f77f8045d7ed4a4f0b4328ec4c8d3b5234d8ef9790d26eb7ca8f0b3a078ed4d266f0c0 SHA512 bcb6da798bf88775c4ceb67d24e84fe9b0f578bcdbcc6cc5145d3717739f77a921f4f536686052fcb56377fc35a260b2355d8b1ef8855f46461c83665ac658cb DIST dockerfile-language-server-nodejs-0.9.0.tgz 19571 BLAKE2B 0b75afcdb2238b4c28799b27642ea4f26cc60c4615b3636bc875e183911c70ec65234d8a7131a5d9e327e9c8d29973ea52524995117735c9ec142373a813e4d2 SHA512 40f59c5316db35369669142b24a5019825c8ea213c97b7fcd5b0956998b3088915838a72ff8a369a1a3e00a94b52c65c0a6979b2cf0c909db9ed2155d816560a diff --git a/dev-util/dockerfile-language-server/dockerfile-language-server-0.10.2.ebuild b/dev-util/dockerfile-language-server/dockerfile-language-server-0.10.2.ebuild new file mode 100644 index 000000000..ee629a78d --- /dev/null +++ b/dev-util/dockerfile-language-server/dockerfile-language-server-0.10.2.ebuild @@ -0,0 +1,44 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_P="${PN}-nodejs-${PV}" + +DESCRIPTION="A language server for Dockerfiles" +HOMEPAGE="https://github.com/rcjsuen/dockerfile-language-server-nodejs" +SRC_URI=" + mirror://npm/${PN}-nodejs/-/${MY_P}.tgz + https://tastytea.de/files/gentoo/${P}-deps.tar.xz +" +S="${WORKDIR}" + +# NOTE: to generate the dependency tarball: +# npm --cache "$(realpath ./npm-cache)" install $(portageq envvar DISTDIR)/${MY_P}.tgz +# tar -caf ${P}-deps.tar.xz npm-cache + +LICENSE="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}"/${MY_P}.tgz || die "npm install failed" + + einstalldocs +} -- cgit v1.2.3-65-gdbad