logo

overlay

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

dev-nodejs/wrappy: new package, add 1.0.2

Diffstat:

Adev-nodejs/wrappy/Manifest1+
Adev-nodejs/wrappy/wrappy-1.0.2.ebuild29+++++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/dev-nodejs/wrappy/Manifest b/dev-nodejs/wrappy/Manifest @@ -0,0 +1 @@ +DIST wrappy-1.0.2.tar.gz 2338 BLAKE2B 0f01ba9140e32702cf4139385e8ee83e0bb45bce557d3e9665f5a222a94bd6a4bbf4ad23a913197ce6d0b1576d60c0c126e74f88352e40761720e4420a0ee812 SHA512 d7c4f7de526398f941d4c5ee3dfa112f35746abae242b9ae46069d2784d38b2f28b7e3a86acdae7738db2a81d9d39ef582707c0012de660cc264e89d9bd3ada7 diff --git a/dev-nodejs/wrappy/wrappy-1.0.2.ebuild b/dev-nodejs/wrappy/wrappy-1.0.2.ebuild @@ -0,0 +1,29 @@ +# Copyright 2022 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit nodejs + +DESCRIPTION="Callback wrapping utility" +HOMEPAGE="https://github.com/npm/wrappy" +SRC_URI="https://github.com/npm/wrappy/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 )" + +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 +}