commit: 54827dba1774a168de2852d3b064fa742ec3e61e Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de> AuthorDate: Wed Sep 14 03:32:12 2022 +0000 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> CommitDate: Wed Sep 14 03:40:19 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=54827dba
dev-util/dockerfile-language-server: new package, add 0.9.0 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de> dev-util/dockerfile-language-server/Manifest | 2 + .../dockerfile-language-server-0.9.0.ebuild | 44 ++++++++++++++++++++++ dev-util/dockerfile-language-server/metadata.xml | 11 ++++++ 3 files changed, 57 insertions(+) diff --git a/dev-util/dockerfile-language-server/Manifest b/dev-util/dockerfile-language-server/Manifest new file mode 100644 index 000000000..8d466b8f8 --- /dev/null +++ b/dev-util/dockerfile-language-server/Manifest @@ -0,0 +1,2 @@ +DIST dockerfile-language-server-0.9.0-deps.tar.xz 947604 BLAKE2B 440d68131507f3e0b265ea117fda452f860233960ad5bccf41e9163c12ce62fedd643e067a074bb007031b041b16ee67379bb755931d0476e7e0399a67d72537 SHA512 6195007faa078319e4a67c1fbe8c33fe002f6f92f0dfd18f5393151cf78b27d1ff57e0d2916be45b4817b5a67c6da35843f4a5fd96d3c2f02301705f304caeb8 +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.9.0.ebuild b/dev-util/dockerfile-language-server/dockerfile-language-server-0.9.0.ebuild new file mode 100644 index 000000000..025449b22 --- /dev/null +++ b/dev-util/dockerfile-language-server/dockerfile-language-server-0.9.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 2022 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 +} diff --git a/dev-util/dockerfile-language-server/metadata.xml b/dev-util/dockerfile-language-server/metadata.xml new file mode 100644 index 000000000..faec6f526 --- /dev/null +++ b/dev-util/dockerfile-language-server/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>gen...@tastytea.de</email> + <name>Ronny (tastytea) Gutbrod</name> + </maintainer> + <upstream> + <remote-id type="github">rcjsuen/dockerfile-language-server-nodejs</remote-id> + </upstream> +</pkgmetadata>