logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 85761da9c1131df9915d7a6f3e2d9f284a2e330d
parent a7687874331cff524c9945c8b320a44ac30b63c7
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 21 Sep 2023 13:01:47 +0200

dev-nodejs/brace-expansion: Use tape-lite for the testsuite

Diffstat:

Mdev-nodejs/brace-expansion/brace-expansion-2.0.1.ebuild23++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)

diff --git a/dev-nodejs/brace-expansion/brace-expansion-2.0.1.ebuild b/dev-nodejs/brace-expansion/brace-expansion-2.0.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Copyright 2022-2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me> # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -13,12 +13,21 @@ SLOT="0" KEYWORDS="~amd64" IUSE="test" -#RESTRICT="!test? ( test )" -#DEPEND="test? ( -# dev-nodejs/at-c4312-matcha -# dev-nodejs/test -#)" +RESTRICT="!test? ( test )" RDEPEND="dev-nodejs/balanced-match" +DEPEND=" + ${RDEPEND} + test? ( dev-nodejs/tape-lite ) +" -RESTRICT="test" +# Note: [PR60] switches to node:test, but doesn't cleanly applies on 2.0.1 +# PR60: https://github.com/juliangruber/brace-expansion/pull/60 + +src_prepare() { + default + + sed -i 's;tape test/\*.js;node --test;' package.json || die + sed -i "s;require('tape');require('tape-lite');" test/*.js || die + rm test/perf/bench.js || die +}