logo

overlay

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

dev-nodejs/graceful-fs: new package, add 4.2.10

Diffstat:

Adev-nodejs/graceful-fs/Manifest1+
Adev-nodejs/graceful-fs/graceful-fs-4.2.10.ebuild42++++++++++++++++++++++++++++++++++++++++++
2 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/dev-nodejs/graceful-fs/Manifest b/dev-nodejs/graceful-fs/Manifest @@ -0,0 +1 @@ +DIST graceful-fs-4.2.10.tar.gz 60654 BLAKE2B 11aa98d7c0c632e424e37f0d90f44a552bc37e81477077ac92a011b2604b60915f3fe990cfca074317ead172d1ac37134f0f930b7d36a6e5b2e9e639d2c1c970 SHA512 8e261bee2be4eb9b32cf2e25c8512593e3686696093e9b28e2740d2d9ef97406091d60f9de403d0317d3e914e40041c6265c0ed67ec521e518dccb5e25c161f4 diff --git a/dev-nodejs/graceful-fs/graceful-fs-4.2.10.ebuild b/dev-nodejs/graceful-fs/graceful-fs-4.2.10.ebuild @@ -0,0 +1,42 @@ +# Copyright 2022 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit nodejs + +DESCRIPTION="drop-in replacement for fs, making various improvements" +HOMEPAGE="https://github.com/isaacs/node-graceful-fs" +SRC_URI="https://github.com/isaacs/node-graceful-fs/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/node-${P}" +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" + +#IUSE="test" + +#RESTRICT="!test? ( test )" +#DEPEND="test? ( +# dev-nodejs/import-fresh +# dev-nodejs/mkdirp +# dev-nodejs/rimraf +# dev-nodejs/tap +#)" + +RESTRICT="test" + +src_prepare() { + default + + sed -i '/fs.js/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 +}