logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: ca3bec22d1d4630604c0d042f670c25a19496a8a
parent 2ee1f054700daeaef1f317d7291f5b1a22e9bb3f
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 30 Aug 2023 18:52:07 +0200

dev-nodejs/which: add 4.0.0

Diffstat:

Mdev-nodejs/which/Manifest1+
Adev-nodejs/which/which-4.0.0.ebuild41+++++++++++++++++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 0 deletions(-)

diff --git a/dev-nodejs/which/Manifest b/dev-nodejs/which/Manifest @@ -1 +1,2 @@ DIST which-2.0.2.tar.gz 35404 BLAKE2B 2e1b156ceae27e9b4e3bc5ae3c27c59e06a699ee82fb5aabdf581a23941a19d0d3345ddd9a2235874226ad6eedba87d00a1000fd970d314e3e4a8550718cc1d6 SHA512 69ea43103fffaf1e732bb8214a9d7d36e32a60b6af4be85e02231350bc028ab3a0a8a410e61b191e98363a8dffc9d1772c605d814bee050659a77b3347659bd6 +DIST which-4.0.0.tar.gz 16964 BLAKE2B a3bb59075177c520c31ac2e21bb93d7ef69dfd2136131b1518066994587e3febd4f1f52c7617669da94a270a586e30869133413da9e3e91c5d0b24a7f15a7148 SHA512 8cf4c4360fb0ed3d4d2a9bcbc74747d2e792f6797425830579226f65d7bf3dd7073b686e5f16a756a7a652cca71c1451303a93b221bbb06b9277cc1fb24a3f51 diff --git a/dev-nodejs/which/which-4.0.0.ebuild b/dev-nodejs/which/which-4.0.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 2022 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit nodejs + +DESCRIPTION="Like which(1) unix command. Find the first instance of an executable in the PATH." +HOMEPAGE="https://github.com/isaacs/node-which" +SRC_URI="https://github.com/isaacs/node-which/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/node-which-${PV}" +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" + +#IUSE="test" + +RDEPEND="dev-nodejs/isexe" +DEPEND="${RDEPEND}" +#test? ( +# dev-nodejs/mkdirp +# dev-nodejs/rimraf +# dev-nodejs/tap +#)" +#RESTRICT="!test? ( test )" + +RESTRICT="test" + +src_install() { + insinto "${NODEJS_SITELIB}${PN}" + doins package.json + + cat package.json | jq -r .files[] | while read pkg + do + insinto "${NODEJS_SITELIB}${PN}/$(dirname "$pkg")" + doins -r "$pkg" + done + + fperms 755 "${NODEJS_SITELIB}${PN}/bin/node-which" + dosym "${NODEJS_SITELIB}${PN}/bin/node-which" "${EPREFIX}/usr/bin/node-which" +}