logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 6eb459033848aaa8e51ee5690562cd753178f3ff
parent 825de2163044b3f64b8586dffbe8eff4a9775ea4
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 14 Aug 2022 10:35:01 +0200

dev-nodejs/abbrev: New package, add 1.1.1

Diffstat:

Adev-nodejs/abbrev/Manifest1+
Adev-nodejs/abbrev/abbrev-1.1.1.ebuild30++++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/dev-nodejs/abbrev/Manifest b/dev-nodejs/abbrev/Manifest @@ -0,0 +1 @@ +DIST abbrev-1.1.1.tar.gz 3156 BLAKE2B 8333a22eec2d49843fc5ab2a3efb2c874dafdd78fd6f426f5d632b0110dd531d81bb567b3d8468c61f4d58853a4cffe6de57a601c3af75378cd9c880f40ec2d8 SHA512 c86a868b59debac10b851d8f1956785b74da030634b279ae5aa303878bef8e8d6a552e4c1e0870dd746190fcc37be327b4b8b69422b7c2b9f478647d985a51f7 diff --git a/dev-nodejs/abbrev/abbrev-1.1.1.ebuild b/dev-nodejs/abbrev/abbrev-1.1.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 2022 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit nodejs + +DESCRIPTION="Get unique abbreviations for a set of strings" +HOMEPAGE="https://github.com/npm/abbrev-js" +SRC_URI="https://github.com/npm/abbrev-js/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/abbrev-js-${PV}" +LICENSE="ISC" # ISC OR MIT +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +#RESTRICT="!test? ( test )" +#DEPEND="test? ( dev-nodejs/tap )" + +RESTRICT="test" + +src_install() { + insinto "${NODEJS_SITELIB}${PN}" + doins package.json + + cat package.json | jq -r .files[] | while read pkg + do + doins "$pkg" + done +}