logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: d961c4ea17b67250bec1fbd78ccaae5b601326ac
parent e18ae66db40f69b762d9f485e23141754ca409a4
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 14 Aug 2022 11:09:40 +0200

dev-nodejs/nopt: new package, add 6.0.0

Diffstat:

Adev-nodejs/nopt/Manifest1+
Adev-nodejs/nopt/nopt-6.0.0.ebuild31+++++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/dev-nodejs/nopt/Manifest b/dev-nodejs/nopt/Manifest @@ -0,0 +1 @@ +DIST nopt-6.0.0.tar.gz 16408 BLAKE2B 9397daafb23c917beda3cbcef3ffd6123fc374b93856e89e7cff73dc7336646a12d23552ce46bd6656e75716400b108c9b5ac908edb6447402237da44f1d549d SHA512 b558c02a3862102ea59bab8afdf20a88371f453f5ea9ba5b0969cf76d64a2f35883aa0085ba99ff70fccc033dff4e258ab5c1d9dd0a2e5f0d3a531a9bef18500 diff --git a/dev-nodejs/nopt/nopt-6.0.0.ebuild b/dev-nodejs/nopt/nopt-6.0.0.ebuild @@ -0,0 +1,31 @@ +# Copyright 2022 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit nodejs + +DESCRIPTION="ion parsing for Node, supporting types, shorthands, etc" +HOMEPAGE="https://github.com/npm/nopt" +SRC_URI="https://github.com/npm/nopt/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +#RESTRICT="!test? ( test )" +#DEPEND="test? ( dev-nodejs/tap )" + +RDEPEND="dev-nodejs/abbrev" + +RESTRICT="test" + +src_install() { + insinto "${NODEJS_SITELIB}${PN}" + doins package.json + + cat package.json | jq -r .files[] | while read pkg + do + doins -r "$pkg" + done +}