logo

overlay

My own overlay for experimentations, use with caution, no support is provided git clone https://hacktivis.me/git/overlay.git
commit: 870d60edd0f0dfb585a2efcdb32aef1663903ac7
parent c9d49eea06051fc168b372230bfd3198e8e8c772
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 28 Aug 2023 21:52:47 +0200

dev-nodejs/ws: new package, add 8.13.0

Diffstat:

Adev-nodejs/ws/Manifest1+
Adev-nodejs/ws/ws-8.13.0.ebuild36++++++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/dev-nodejs/ws/Manifest b/dev-nodejs/ws/Manifest @@ -0,0 +1 @@ +DIST ws-8.13.0.tar.gz 80456 BLAKE2B c41ddf07309b7710cc025635837b894d6572cc4a358655ed80fd976d3313eb003e32b770461485b741c0c4a02ba3e9ab4ab9102e58a0c8d42c0c7208cde6d4f4 SHA512 5772257ebdf7a21e0bf451db3e8e82f05d61ff5f1359ccd8c94a48dd8880ee1c1fbcd6ac29b9a04e2c3a5c283717c96e3470e51249d222d1704e312b9411c0ae diff --git a/dev-nodejs/ws/ws-8.13.0.ebuild b/dev-nodejs/ws/ws-8.13.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 2022-2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me> +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit nodejs optfeature + +DESCRIPTION="Simple to use, blazing fast and thoroughly tested WebSocket client and server for Node.js" +HOMEPAGE="https://github.com/websockets/ws" +SRC_URI="https://github.com/websockets/ws/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="test" + +src_install() { + einstalldocs + dodoc -r doc/* examples + + insinto "${NODEJS_SITELIB}${PN}" + doins package.json + + # Taken from package.json .files manually due to lib/*.js + doins -r browser.js index.js lib/*.js wrapper.mjs +} + +pkg_postinst() { + if has_version '<dev-lang/nodejs-18.14.0'; then + optfeature "(<nodejs-18.14.0) efficiently check if a message contains valid UTF-8" \ + dev-nodejs/utf-8-validate + fi + + optfeature "efficiently perform operations such as masking and unmasking" \ + dev-nodejs/bufferutil +}