commit: e00b29a55c4609972e2e8660b588e7f8b8adc284
parent 5ca8da7d2f8fde3e35fa89f2a34791a65ac3fd54
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 14 Aug 2022 10:32:44 +0200
dev-nodejs/mkdirp: New package, add 1.0.4
Diffstat:
2 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/dev-nodejs/mkdirp/Manifest b/dev-nodejs/mkdirp/Manifest
@@ -0,0 +1 @@
+DIST mkdirp-1.0.4.tar.gz 38981 BLAKE2B 2e8409922a52104de745c0b3829a247fdf9675294c744298f1e9cd575f2896915aea8465a4a350951a35ee0bb007454a6f2a9342d9a8692fde8c1ad4149ea67a SHA512 236203c95283dbe333d74e9522cde5af2c0c49fef207d23a80ef8b83f00c57ecb0a67bcc06c57f164e3d147293d7741df896d41d90f01a88bfb559d3dcbbff4c
diff --git a/dev-nodejs/mkdirp/mkdirp-1.0.4.ebuild b/dev-nodejs/mkdirp/mkdirp-1.0.4.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2022 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit nodejs
+
+DESCRIPTION="Recursively mkdir, like 'mkdir -p', but in node.js"
+HOMEPAGE="https://github.com/isaacs/node-mkdirp"
+SRC_URI="https://github.com/isaacs/node-mkdirp/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/node-mkdirp-${PV}"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+#IUSE="test"
+
+#RESTRICT="!test? ( test )"
+#DEPEND="test? (
+# dev-nodejs/tap
+# dev-nodejs/require-inject
+#)"
+
+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
+}