commit: 6a93cb35c4966238c1ef2827241afdfc5af6cb99
parent 33629616d2eab13951bc2dcba858382c6fad8f9c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 14 Aug 2022 13:11:16 +0200
dev-nodejs/fs-realpath: new package, add 1.0.0
Diffstat:
2 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/dev-nodejs/fs-realpath/Manifest b/dev-nodejs/fs-realpath/Manifest
@@ -0,0 +1 @@
+DIST fs-realpath-1.0.0.tar.gz 5149 BLAKE2B 49efeeb98f86f98cee406349c8afd0c440a691ab02383762b2ba053f5a8cedf22386c4d19666cf4d93043e13cab0c2d917eb5d568494de34a6619d6a9f04b047 SHA512 d305f9a642c1113529c5a66928ed10ccd66996fa89fb35c1f619bcfd27738e0e6014ab37074c8cad22aead8878401574d39fb357028430ad66c73677cf58dcfa
diff --git a/dev-nodejs/fs-realpath/fs-realpath-1.0.0.ebuild b/dev-nodejs/fs-realpath/fs-realpath-1.0.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 2022 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit nodejs
+
+MY_P=fs.realpath-${PV}
+
+DESCRIPTION="Use node's fs.realpath, but fall back to the JS implementation if the native one fails"
+HOMEPAGE="https://github.com/isaacs/fs.realpath"
+SRC_URI="https://github.com/isaacs/fs.realpath/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MY_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
+}