logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 801243137f7df86569f4deba20def9d832e18ffa
parent 5f4c65aee5db13c17f475dd16810543f30ed2e76
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 29 Oct 2023 07:20:18 +0100

dev-nodejs/shell-quote: new package, add 1.8.1

Diffstat:

Adev-nodejs/shell-quote/Manifest1+
Adev-nodejs/shell-quote/shell-quote-1.8.1.ebuild30++++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/dev-nodejs/shell-quote/Manifest b/dev-nodejs/shell-quote/Manifest @@ -0,0 +1 @@ +DIST shell-quote-1.8.1.tar.gz 16929 BLAKE2B 54c81ff8c259a9162415b2bd5760634cedf1b7850fe896b237c33e39afbefcfcfab035f032ae191c4485494e1ee92743e6989665663a5bb7b6431358371308c1 SHA512 a0123325206b3fc4f0e4954c3e789d9ae06de21f8897efbf9db14101aff82649c24628524027ef067a3b6635aff8fa9ec08a585396340286b510aba59e30f2dc diff --git a/dev-nodejs/shell-quote/shell-quote-1.8.1.ebuild b/dev-nodejs/shell-quote/shell-quote-1.8.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit nodejs + +DESCRIPTION="quote and parse shell commands" +HOMEPAGE="https://github.com/ljharb/shell-quote" +SRC_URI="https://github.com/ljharb/shell-quote/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +RESTRICT="!test? ( test )" + +DEPEND="test? ( dev-nodejs/tape-lite )" +BDEPEND="dev-util/esbuild" + +src_prepare() { + default + + #sed -i '/"tests-only": /s;nyc tape;node --test;' package.json || die + sed -i "s;require('tape');require('tape-lite');;" test/*.js || die +} + +src_test() { + node --test test/*.js || die +}