logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: b7b3cece1d2b565737e7e78cb89b6cc47a114239
parent 89b0784a80c7eac2cf63618d87f9b890308a9b02
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 14 Aug 2022 13:54:39 +0200

dev-nodejs/rimraf: new package, add 3.0.2

Diffstat:

Adev-nodejs/rimraf/Manifest1+
Adev-nodejs/rimraf/rimraf-3.0.2.ebuild37+++++++++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/dev-nodejs/rimraf/Manifest b/dev-nodejs/rimraf/Manifest @@ -0,0 +1 @@ +DIST rimraf-3.0.2.tar.gz 26331 BLAKE2B fb8dfd3b5f6ed9ac2bac13c291b81b807e40c8e9ae421650caebb014f2f99f26042c2a025967f467accb331098be4ced2417836daaf6f6bc97694d0b521db049 SHA512 a157a18706d8bc2978546a065b1eaa25c66e520d280765db9f90d1cee4a00d382f80a954094d8d404af268987df3f455ad70934ecf1fe961e96ea061dd8d10a3 diff --git a/dev-nodejs/rimraf/rimraf-3.0.2.ebuild b/dev-nodejs/rimraf/rimraf-3.0.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 2022 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit nodejs + +DESCRIPTION="deep deletion module for node (like 'rm -rf')" +HOMEPAGE="https://github.com/isaacs/rimraf" +SRC_URI="https://github.com/isaacs/rimraf/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 dev-nodejs/mkdirp )" + +RDEPEND="dev-nodejs/glob" + +RESTRICT="test" + +src_prepare() { + default + + sed -i -e '/LICENSE/d' -e '/README.md/d' package.json || die +} + +src_install() { + insinto "${NODEJS_SITELIB}${PN}" + doins package.json + + cat package.json | jq -r .files[] | while read pkg + do + doins -r "$pkg" + done +}