commit: a522f3f68dfe7237a7bb9bfa61cf90b0970725b1
parent 6eb459033848aaa8e51ee5690562cd753178f3ff
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sun, 14 Aug 2022 10:48:24 +0200
dev-nodejs/env-paths: new package, add 3.0.0
Diffstat:
2 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/dev-nodejs/env-paths/Manifest b/dev-nodejs/env-paths/Manifest
@@ -0,0 +1 @@
+DIST env-paths-3.0.0.tar.gz 4639 BLAKE2B 12ad6206ddc0b8cef67b3e029f7ff641618ffb7ac048736454bc7a316a0affea04bad1f1352419841633a9daf472a15d8456ee427907a1fb4ef4f811bb99811d SHA512 0f51dd9668735c37966021f2afc6f4228046d2fe8e5ca4b7ef0f45f844e7a8b26343ef5c3410f1e41ae0bcdad3e6db177568d6fd8ee6a6fd3f5928de05e82638
diff --git a/dev-nodejs/env-paths/env-paths-3.0.0.ebuild b/dev-nodejs/env-paths/env-paths-3.0.0.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="Get paths for storing things like data, config, cache, etc"
+HOMEPAGE="https://github.com/sindresorhus/env-paths"
+SRC_URI="https://github.com/sindresorhus/env-paths/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+#IUSE="test"
+
+#RESTRICT="!test? ( test )"
+#DEPEND="test? (
+# dev-nodejs/ava
+# dev-nodejs/tsd
+# dev-nodejs/xo
+#)"
+
+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
+}