logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 21f2f9af3b7ffac17dee0e4fa62eeee0595522c8
parent b27152c3c0015c731119e8438867575e5e8e149b
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 30 Oct 2023 04:57:51 +0100

dev-nodejs/minimist: new package, add 1.2.8

Diffstat:

Adev-nodejs/minimist/Manifest1+
Adev-nodejs/minimist/minimist-1.2.8.ebuild27+++++++++++++++++++++++++++
2 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/dev-nodejs/minimist/Manifest b/dev-nodejs/minimist/Manifest @@ -0,0 +1 @@ +DIST minimist-1.2.8.tar.gz 16445 BLAKE2B 84f030ef9ba04eed17cafc26fb15957b0e05b3bfd7ab67c0591d0552fa432ec57ce4af133c07e7e95324dc4d59b958c2a8a53ba4752759e2cd1e0c8da151052d SHA512 375b4478a7a1ac2b4b70ceca1ec00f4cfb47a35b4e288a956ade508bba4020ce1bacfb86ec3ee0c332644f9c43aab068512e4139bcb0c6ba53a736894df43af7 diff --git a/dev-nodejs/minimist/minimist-1.2.8.ebuild b/dev-nodejs/minimist/minimist-1.2.8.ebuild @@ -0,0 +1,27 @@ +# Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit nodejs + +DESCRIPTION="parse argument options" +HOMEPAGE="https://github.com/minimistjs/minimist" +SRC_URI="https://github.com/minimistjs/minimist/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 )" + +src_prepare() { + default + + sed -i "s;require('tape');require('tape-lite');;" test/*.js || die +} + +src_test() { + node --test test/*.js || die +}