logo

overlay

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

dev-nodejs/color-name: new package, add 1.1.4

Diffstat:

Adev-nodejs/color-name/Manifest1+
Adev-nodejs/color-name/color-name-1.1.4.ebuild28++++++++++++++++++++++++++++
2 files changed, 29 insertions(+), 0 deletions(-)

diff --git a/dev-nodejs/color-name/Manifest b/dev-nodejs/color-name/Manifest @@ -0,0 +1 @@ +DIST color-name-1.1.4.tar.gz 4137 BLAKE2B 43269ff5409a4f229632155ccf3b495d3a32e37e24823edebeb66ca3b0e6eeca20fdf9289ee5d0c91bd3efa5affc69430054dc11a0b3aa43f0c5e41489918920 SHA512 269fdeb1e4104781edec3551871d17ec70c6d61d82f70f70e5553be9e471da1bdb7233f03c6bac6eb8556cf0bfa4cddf6a23f2138a5d019f3684c796c6ceb095 diff --git a/dev-nodejs/color-name/color-name-1.1.4.ebuild b/dev-nodejs/color-name/color-name-1.1.4.ebuild @@ -0,0 +1,28 @@ +# Copyright 2022 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit nodejs + +DESCRIPTION="JSON with CSS color names and its values" +HOMEPAGE="https://github.com/colorjs/color-name" +SRC_URI="https://github.com/colorjs/color-name/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" + +src_test() { + node test.js || die +} + +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 +}