commit: f1da839f23938b2559d7d51349382861e8ab91f0
parent 3ecb7ee883bbeb1fa5fc00f26439f650b767ed10
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 6 Oct 2023 19:09:18 +0200
dev-nodejs/balanced-match: add 3.0.0, drop 2.0.0
Diffstat:
3 files changed, 27 insertions(+), 26 deletions(-)
diff --git a/dev-nodejs/balanced-match/Manifest b/dev-nodejs/balanced-match/Manifest
@@ -1 +1 @@
-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
diff --git a/dev-nodejs/balanced-match/balanced-match-2.0.0.ebuild b/dev-nodejs/balanced-match/balanced-match-2.0.0.ebuild
@@ -1,25 +0,0 @@
-# Copyright 2022 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 )"
-#DEPEND="test? (
-# dev-nodejs/at_c4312_matcha
-# dev-nodejs/np
-# dev-nodejs/prettier-standard
-# dev-nodejs/standard
-# dev-nodejs/tape
-#)"
-
-RESTRICT="test"
diff --git a/dev-nodejs/balanced-match/balanced-match-3.0.0.ebuild b/dev-nodejs/balanced-match/balanced-match-3.0.0.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="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
+}