logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 0b7eddd8ea61d13fa0df899b383c15094dec0593
parent 4ddb4df8b7d1d9e02872d1607cd7595aebd733d7
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 14 Aug 2022 13:00:17 +0200

dev-nodejs/once: new package, add 1.4.0

Diffstat:

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

diff --git a/dev-nodejs/once/Manifest b/dev-nodejs/once/Manifest @@ -0,0 +1 @@ +DIST once-1.4.0.tar.gz 2629 BLAKE2B d3956d263639838e441ba7e7df417bfaa47dd6a74af67c3c27a5f369c948b6608d279763fcafed9767129455f9f74b02aa19b2a3e52ba090b4b4e8a1935196e1 SHA512 f9fbdde6226e80b9e45cd400b5e251e4c14b75a9b201859eafa01bde59fadee13c98eeeee8008509132b4c1ee2127cc7adabfdcdeda6552b1aaa96216cd6a272 diff --git a/dev-nodejs/once/once-1.4.0.ebuild b/dev-nodejs/once/once-1.4.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="Run a function exactly one time" +HOMEPAGE="https://github.com/isaacs/once" +SRC_URI="https://github.com/isaacs/once/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/wrappy" + +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 +}