logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: ad9f6a166951ede414039c40ac57f1dc6b08d244
parent df486a2d9285e6dd1e047a3d771164619d7a9389
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 14 Aug 2022 13:39:35 +0200

dev-nodejs/lru-cache: new package, add 7.13.2

Diffstat:

Adev-nodejs/lru-cache/Manifest1+
Adev-nodejs/lru-cache/lru-cache-7.13.2.ebuild30++++++++++++++++++++++++++++++
2 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/dev-nodejs/lru-cache/Manifest b/dev-nodejs/lru-cache/Manifest @@ -0,0 +1 @@ +DIST lru-cache-7.13.2.tar.gz 119352 BLAKE2B 28760658b69cbe61d08132117c32e39cc1a317fed3c6c56ee16c509a4af33ddffdb40051b6401571e5b81e4cdc1e09c272e77cca9230da051aad2419e61fae39 SHA512 0aad888bf65308299ba96573ae946231b725e28c2913865aa70339cf24d7116c4f572aa7edbdb657f5d7ca8ca7424a2959301716fb2c1882fb5971de9ff48c6f diff --git a/dev-nodejs/lru-cache/lru-cache-7.13.2.ebuild b/dev-nodejs/lru-cache/lru-cache-7.13.2.ebuild @@ -0,0 +1,30 @@ +# Copyright 2022 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit nodejs + +DESCRIPTION="cache object that deletes the least-recently-used items" +HOMEPAGE="https://github.com/isaacs/node-lru-cache" +SRC_URI="https://github.com/isaacs/node-lru-cache/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/node-${P}" +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" + +#IUSE="test" +#RESTRICT="!test? ( test )" +#DEPEND="test? ( dev-nodejs/tap )" + +RESTRICT="test" + +src_install() { + insinto "${NODEJS_SITELIB}${PN}" + doins package.json + + cat package.json | jq -r .files[] | while read pkg + do + doins -r "$pkg" + done +}