logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 62e1dd72ac5af4a1625125625f990a909514a15d
parent 6e4a2043ea209c26ce8e99156de7cb059b2321ec
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sat,  7 Oct 2023 08:02:44 +0200

dev-nodejs/balanced-match-3.0.0: Fix slot

Diffstat:

Mdev-nodejs/balanced-match/Manifest2+-
Ddev-nodejs/balanced-match/balanced-match-3.0.0-r1.ebuild29-----------------------------
Adev-nodejs/balanced-match/balanced-match-3.0.1.ebuild26++++++++++++++++++++++++++
3 files changed, 27 insertions(+), 30 deletions(-)

diff --git a/dev-nodejs/balanced-match/Manifest b/dev-nodejs/balanced-match/Manifest @@ -1,2 +1,2 @@ DIST balanced-match-2.0.0.tar.gz 152519 BLAKE2B bd31e33fa1564fb2147c3407b43a9d770521450effbc757e89b6c63e9446dced76be905ff394e9dd17bb654f6eb89f72f71c90d85abc3f1fbeccbe6124bac85c SHA512 bd176c2a27357d9d5e616cb3a3ace79f001e156cd1a5ea00eb76ae6adfa529dea616787efd3f6dc4645abd419465a9c0edbeb1e5a1efdf76200ea3a1381d6479 -DIST balanced-match-3.0.0.tar.gz 144401 BLAKE2B 0407d3a806c2f2349226ce75065b8ebc911f73e7476c00c93da98073adfbce779cf51b60e28ee3ed653f5d6fb2a86217be07c3cb6ff8c136ce7c0c06dea58132 SHA512 54423ec9a94f3f571cc84f89ddb3418032de72cf9a6a4352acf062fd70481da589b0f356f421c8a82f40c6bf7e30c12a92ba129324075b038141d2b0ba342ddc +DIST balanced-match-3.0.1.tar.gz 146193 BLAKE2B c9db44afc3c39d59f2524671f2614c99d4f2e492ce4cb651e4b19aecaa5b268c0effe2239016ada04e060db6e9530814e74fe75f0f759f64f66804eb0bcddba9 SHA512 12918a80ff02f8f3b473719b40cb47996fe03bd383e00e18cb46fcdc2aae03891c69d2680913bc62dce5fdc412efe2b0820de3652e66b0eadb2ca18726220763 diff --git a/dev-nodejs/balanced-match/balanced-match-3.0.0-r1.ebuild b/dev-nodejs/balanced-match/balanced-match-3.0.0-r1.ebuild @@ -1,29 +0,0 @@ -# Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me> -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit nodejs - -DESCRIPTION="Match balanced character pairs, like { and }" -HOMEPAGE="https://github.com/juliangruber/balanced-match" -SRC_URI="https://github.com/juliangruber/balanced-match/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64" -IUSE="test" - -RESTRICT="!test? ( test )" - -src_prepare() { - default - - # standard: linter; no need in a distro package - sed -i 's;"test": "standard --fix && node--test;"test": "node --test;' package.json || die - - # 'test' is just a port of 'node:test' from NodeJS 18+ - sed -i "s;import test from 'test';import test from 'node:test';" test/test.js || die - - # https://github.com/juliangruber/balanced-match/pull/50 - sed -i 's!"main": "index.js"!"exports": "./index.js"!' package.json || die -} diff --git a/dev-nodejs/balanced-match/balanced-match-3.0.1.ebuild b/dev-nodejs/balanced-match/balanced-match-3.0.1.ebuild @@ -0,0 +1,26 @@ +# Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit nodejs + +DESCRIPTION="Match balanced character pairs, like { and }" +HOMEPAGE="https://github.com/juliangruber/balanced-match" +SRC_URI="https://github.com/juliangruber/balanced-match/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" +SLOT="3" +KEYWORDS="~amd64" +IUSE="test" + +RESTRICT="!test? ( test )" + +src_prepare() { + default + + # standard: linter; no need in a distro package + sed -i 's;"test": "standard --fix && node--test;"test": "node --test;' package.json || die + + # 'test' is just a port of 'node:test' from NodeJS 18+ + sed -i "s;import test from 'test';import test from 'node:test';" test/test.js || die +}