Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: pnpm-5.8.0
@ 2020-10-03 15:45 reback00
  2021-04-05  0:56 ` kwshi
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: reback00 @ 2020-10-03 15:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]

There is a new pull request by reback00 against master on the void-packages repository

https://github.com/reback00/void-packages pnpm-branch
https://github.com/void-linux/void-packages/pull/25315

New package: pnpm-5.8.0
Fast, disk space efficient package manager for nodejs. One of the highlight features: saves a package once and symlinks on individual projects resulting in a great savings of disk space. Hope it's useful!

[website](https://pnpm.js.org/)

A patch file from https://github.com/void-linux/void-packages/pull/25315.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pnpm-branch-25315.patch --]
[-- Type: text/x-diff, Size: 1786 bytes --]

From 053585994154a7b4191025258cb1280096e9b924 Mon Sep 17 00:00:00 2001
From: reback00 <reback00@protonmail.com>
Date: Sat, 3 Oct 2020 21:40:52 +0600
Subject: [PATCH] New package: pnpm-5.8.0

---
 srcpkgs/pnpm/template | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 srcpkgs/pnpm/template

diff --git a/srcpkgs/pnpm/template b/srcpkgs/pnpm/template
new file mode 100644
index 00000000000..8395db1b641
--- /dev/null
+++ b/srcpkgs/pnpm/template
@@ -0,0 +1,35 @@
+# Template file for 'pnpm'
+pkgname=pnpm
+version=5.8.0
+revision=1
+# We won't use wrksrc, but it's needed to silence "cannot access wrksrc directory" error
+create_wrksrc=yes
+build_style=meta
+hostmakedepends="nodejs jq"
+depends="nodejs>=10.14"
+short_desc="Fast, disk space efficient package manager"
+maintainer="reback00 <reback00@protonmail.com>"
+license="MIT"
+homepage="https://pnpm.js.org/"
+distfiles="https://registry.npmjs.org/${pkgname}/-/${pkgname}-${version}.tgz"
+checksum=c1c6316f337aef60b984818bd4e99a609e43a58e574bf42e1ecc5a74cea2c572
+skip_extraction="${pkgname}-${version}.tgz"
+python_version=3
+
+do_install() {
+	npm install -g --user root --prefix "${DESTDIR}/usr" "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.tgz"
+	local _npmdir="${DESTDIR}/usr/lib/node_modules/${pkgname}"
+
+	# Sort and cleanup package.json
+	local tmppackage="$(mktemp)"
+	jq '.|=with_entries(select(.key|test("_.+")|not))' "$_npmdir/package.json" > "$tmppackage"
+	mv "$tmppackage" "$_npmdir/package.json"
+	chmod 644 "$_npmdir/package.json"
+
+	# Delete JS SourceMaps
+	find "${DESTDIR}/usr/lib" -depth -name '*.map' -delete
+
+	vlicense "$_npmdir/LICENSE"
+	vdoc "$_npmdir/README.md"
+	rm -rf "${DESTDIR}/usr/etc" "$_npmdir/LICENSE" "$_npmdir/README.md"
+}

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: New package: pnpm-5.8.0
  2020-10-03 15:45 [PR PATCH] New package: pnpm-5.8.0 reback00
@ 2021-04-05  0:56 ` kwshi
  2021-04-05  1:19 ` [PR REVIEW] " ericonr
                   ` (12 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: kwshi @ 2021-04-05  0:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 221 bytes --]

New comment by kwshi on void-packages repository

https://github.com/void-linux/void-packages/pull/25315#issuecomment-813130004

Comment:
I'd like this--can this be merged?  (Is there anything I can do to help it merge?)

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] New package: pnpm-5.8.0
  2020-10-03 15:45 [PR PATCH] New package: pnpm-5.8.0 reback00
  2021-04-05  0:56 ` kwshi
@ 2021-04-05  1:19 ` ericonr
  2021-04-06 18:30 ` Chocimier
                   ` (11 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: ericonr @ 2021-04-05  1:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 187 bytes --]

New review comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/25315#discussion_r606879053

Comment:
This version constraint isn't necessary.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] New package: pnpm-5.8.0
  2020-10-03 15:45 [PR PATCH] New package: pnpm-5.8.0 reback00
  2021-04-05  0:56 ` kwshi
  2021-04-05  1:19 ` [PR REVIEW] " ericonr
@ 2021-04-06 18:30 ` Chocimier
  2021-04-06 18:30 ` Chocimier
                   ` (10 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Chocimier @ 2021-04-06 18:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 262 bytes --]

New review comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/25315#discussion_r608078254

Comment:
This isn't accurate, wrksrc is used as cwd of do_install, even if archive isn't extracted, please remove comment.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] New package: pnpm-5.8.0
  2020-10-03 15:45 [PR PATCH] New package: pnpm-5.8.0 reback00
                   ` (3 preceding siblings ...)
  2021-04-06 18:30 ` Chocimier
@ 2021-04-06 18:30 ` Chocimier
  2021-04-11 17:27 ` [PR PATCH] [Updated] " reback00
                   ` (8 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Chocimier @ 2021-04-06 18:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 257 bytes --]

New review comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/25315#discussion_r608078840

Comment:
Please use build_style=fetch , and remove skip_extraction. build_style=meta would allow package to be empty.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] New package: pnpm-5.8.0
  2020-10-03 15:45 [PR PATCH] New package: pnpm-5.8.0 reback00
                   ` (2 preceding siblings ...)
  2021-04-06 18:30 ` Chocimier
@ 2021-04-06 18:30 ` Chocimier
  2021-04-06 18:30 ` Chocimier
                   ` (9 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: Chocimier @ 2021-04-06 18:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 173 bytes --]

New review comment by Chocimier on void-packages repository

https://github.com/void-linux/void-packages/pull/25315#discussion_r608080013

Comment:
Why not create in-place?

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Updated] New package: pnpm-5.8.0
  2020-10-03 15:45 [PR PATCH] New package: pnpm-5.8.0 reback00
                   ` (4 preceding siblings ...)
  2021-04-06 18:30 ` Chocimier
@ 2021-04-11 17:27 ` reback00
  2021-04-11 17:43 ` [PR REVIEW] New package: pnpm-6.0.1 reback00
                   ` (7 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: reback00 @ 2021-04-11 17:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 558 bytes --]

There is an updated pull request by reback00 against master on the void-packages repository

https://github.com/reback00/void-packages pnpm-branch
https://github.com/void-linux/void-packages/pull/25315

New package: pnpm-5.8.0
Fast, disk space efficient package manager for nodejs. One of the highlight features: saves a package once and symlinks on individual projects resulting in a great savings of disk space. Hope it's useful!

[website](https://pnpm.js.org/)

A patch file from https://github.com/void-linux/void-packages/pull/25315.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pnpm-branch-25315.patch --]
[-- Type: text/x-diff, Size: 1579 bytes --]

From 724b4bbad76ed0de86f27fe59e9170d24448aca6 Mon Sep 17 00:00:00 2001
From: reback00 <reback00@protonmail.com>
Date: Sat, 3 Oct 2020 21:40:52 +0600
Subject: [PATCH] New package: pnpm-6.0.1

---
 srcpkgs/pnpm/template | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 srcpkgs/pnpm/template

diff --git a/srcpkgs/pnpm/template b/srcpkgs/pnpm/template
new file mode 100644
index 000000000000..066b9a414d32
--- /dev/null
+++ b/srcpkgs/pnpm/template
@@ -0,0 +1,31 @@
+# Template file for 'pnpm'
+pkgname=pnpm
+version=6.0.1
+revision=1
+create_wrksrc=yes
+build_style=fetch
+hostmakedepends="nodejs jq"
+depends="nodejs"
+short_desc="Fast, disk space efficient package manager"
+maintainer="reback00 <reback00@protonmail.com>"
+license="MIT"
+homepage="https://pnpm.js.org/"
+distfiles="https://registry.npmjs.org/${pkgname}/-/${pkgname}-${version}.tgz"
+checksum=6e390217ab6250f85d28cb0135620e3b0526a849dda7fb7c54f092c1b6bd465c
+python_version=3
+
+do_install() {
+	npm install -g --user root --prefix "${DESTDIR}/usr" "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.tgz"
+	local _npmdir="${DESTDIR}/usr/lib/node_modules/${pkgname}"
+
+	# Sort and cleanup package.json
+	jq '.|=with_entries(select(.key|test("_.+")|not))' "$_npmdir/package.json" > "$_npmdir/package.json"
+	chmod 644 "$_npmdir/package.json"
+
+	# Delete JS SourceMaps
+	find "${DESTDIR}/usr/lib" -depth -name '*.map' -delete
+
+	vlicense "$_npmdir/LICENSE"
+	vdoc "$_npmdir/README.md"
+	rm -rf "${DESTDIR}/usr/etc" "$_npmdir/LICENSE" "$_npmdir/README.md"
+}

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] New package: pnpm-6.0.1
  2020-10-03 15:45 [PR PATCH] New package: pnpm-5.8.0 reback00
                   ` (5 preceding siblings ...)
  2021-04-11 17:27 ` [PR PATCH] [Updated] " reback00
@ 2021-04-11 17:43 ` reback00
  2021-04-11 17:43 ` reback00
                   ` (6 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: reback00 @ 2021-04-11 17:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 155 bytes --]

New review comment by reback00 on void-packages repository

https://github.com/void-linux/void-packages/pull/25315#discussion_r611222223

Comment:
Removed

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] New package: pnpm-6.0.1
  2020-10-03 15:45 [PR PATCH] New package: pnpm-5.8.0 reback00
                   ` (6 preceding siblings ...)
  2021-04-11 17:43 ` [PR REVIEW] New package: pnpm-6.0.1 reback00
@ 2021-04-11 17:43 ` reback00
  2021-04-11 17:44 ` reback00
                   ` (5 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: reback00 @ 2021-04-11 17:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 156 bytes --]

New review comment by reback00 on void-packages repository

https://github.com/void-linux/void-packages/pull/25315#discussion_r611222272

Comment:
Removed.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] New package: pnpm-6.0.1
  2020-10-03 15:45 [PR PATCH] New package: pnpm-5.8.0 reback00
                   ` (7 preceding siblings ...)
  2021-04-11 17:43 ` reback00
@ 2021-04-11 17:44 ` reback00
  2021-04-11 17:47 ` reback00
                   ` (4 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: reback00 @ 2021-04-11 17:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 183 bytes --]

New review comment by reback00 on void-packages repository

https://github.com/void-linux/void-packages/pull/25315#discussion_r611222365

Comment:
Changed this. Now creates in place.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] New package: pnpm-6.0.1
  2020-10-03 15:45 [PR PATCH] New package: pnpm-5.8.0 reback00
                   ` (8 preceding siblings ...)
  2021-04-11 17:44 ` reback00
@ 2021-04-11 17:47 ` reback00
  2021-04-11 17:49 ` reback00
                   ` (3 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: reback00 @ 2021-04-11 17:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 292 bytes --]

New review comment by reback00 on void-packages repository

https://github.com/void-linux/void-packages/pull/25315#discussion_r611222777

Comment:
Changed to fetch and removed skip_extraction.

Should I remove `create_wrksrc=yes`? It seems not needed anymore. The error is no longer there.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: New package: pnpm-6.0.1
  2020-10-03 15:45 [PR PATCH] New package: pnpm-5.8.0 reback00
                   ` (9 preceding siblings ...)
  2021-04-11 17:47 ` reback00
@ 2021-04-11 17:49 ` reback00
  2021-04-12  4:44 ` [PR PATCH] [Updated] " reback00
                   ` (2 subsequent siblings)
  13 siblings, 0 replies; 15+ messages in thread
From: reback00 @ 2021-04-11 17:49 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 277 bytes --]

New comment by reback00 on void-packages repository

https://github.com/void-linux/void-packages/pull/25315#issuecomment-817345441

Comment:
> Checked, works. 5.18.9 is out, and 6.0 for newer nodejs.

I've updated to 6.0.1. Done some basic testing. Seems to be working fine.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Updated] New package: pnpm-6.0.1
  2020-10-03 15:45 [PR PATCH] New package: pnpm-5.8.0 reback00
                   ` (10 preceding siblings ...)
  2021-04-11 17:49 ` reback00
@ 2021-04-12  4:44 ` reback00
  2021-04-12  4:48 ` [PR REVIEW] " reback00
  2021-04-12 17:05 ` [PR PATCH] [Merged]: " Chocimier
  13 siblings, 0 replies; 15+ messages in thread
From: reback00 @ 2021-04-12  4:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 558 bytes --]

There is an updated pull request by reback00 against master on the void-packages repository

https://github.com/reback00/void-packages pnpm-branch
https://github.com/void-linux/void-packages/pull/25315

New package: pnpm-6.0.1
Fast, disk space efficient package manager for nodejs. One of the highlight features: saves a package once and symlinks on individual projects resulting in a great savings of disk space. Hope it's useful!

[website](https://pnpm.js.org/)

A patch file from https://github.com/void-linux/void-packages/pull/25315.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pnpm-branch-25315.patch --]
[-- Type: text/x-diff, Size: 1560 bytes --]

From 100a550e8d95cc87b7afef2436b0a0078e19a3ed Mon Sep 17 00:00:00 2001
From: reback00 <reback00@protonmail.com>
Date: Mon, 12 Apr 2021 10:06:53 +0600
Subject: [PATCH] New package: pnpm-6.0.1

---
 srcpkgs/pnpm/template | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 srcpkgs/pnpm/template

diff --git a/srcpkgs/pnpm/template b/srcpkgs/pnpm/template
new file mode 100644
index 000000000000..6d7ecfe1ce8b
--- /dev/null
+++ b/srcpkgs/pnpm/template
@@ -0,0 +1,30 @@
+# Template file for 'pnpm'
+pkgname=pnpm
+version=6.0.1
+revision=1
+build_style=fetch
+hostmakedepends="nodejs jq"
+depends="nodejs"
+short_desc="Fast, disk space efficient package manager"
+maintainer="reback00 <reback00@protonmail.com>"
+license="MIT"
+homepage="https://pnpm.js.org/"
+distfiles="https://registry.npmjs.org/${pkgname}/-/${pkgname}-${version}.tgz"
+checksum=6e390217ab6250f85d28cb0135620e3b0526a849dda7fb7c54f092c1b6bd465c
+python_version=3
+
+do_install() {
+	npm install -g --user root --prefix "${DESTDIR}/usr" "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.tgz"
+	local _npmdir="${DESTDIR}/usr/lib/node_modules/${pkgname}"
+
+	# Sort and cleanup package.json
+	jq '.|=with_entries(select(.key|test("_.+")|not))' "$_npmdir/package.json" > "$_npmdir/package.json"
+	chmod 644 "$_npmdir/package.json"
+
+	# Delete JS SourceMaps
+	find "${DESTDIR}/usr/lib" -depth -name '*.map' -delete
+
+	vlicense "$_npmdir/LICENSE"
+	vdoc "$_npmdir/README.md"
+	rm -rf "${DESTDIR}/usr/etc" "$_npmdir/LICENSE" "$_npmdir/README.md"
+}

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR REVIEW] New package: pnpm-6.0.1
  2020-10-03 15:45 [PR PATCH] New package: pnpm-5.8.0 reback00
                   ` (11 preceding siblings ...)
  2021-04-12  4:44 ` [PR PATCH] [Updated] " reback00
@ 2021-04-12  4:48 ` reback00
  2021-04-12 17:05 ` [PR PATCH] [Merged]: " Chocimier
  13 siblings, 0 replies; 15+ messages in thread
From: reback00 @ 2021-04-12  4:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 201 bytes --]

New review comment by reback00 on void-packages repository

https://github.com/void-linux/void-packages/pull/25315#discussion_r611324693

Comment:
I've removed it, since there was no issue without it.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [PR PATCH] [Merged]: New package: pnpm-6.0.1
  2020-10-03 15:45 [PR PATCH] New package: pnpm-5.8.0 reback00
                   ` (12 preceding siblings ...)
  2021-04-12  4:48 ` [PR REVIEW] " reback00
@ 2021-04-12 17:05 ` Chocimier
  13 siblings, 0 replies; 15+ messages in thread
From: Chocimier @ 2021-04-12 17:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 396 bytes --]

There's a merged pull request on the void-packages repository

New package: pnpm-6.0.1
https://github.com/void-linux/void-packages/pull/25315

Description:
Fast, disk space efficient package manager for nodejs. One of the highlight features: saves a package once and symlinks on individual projects resulting in a great savings of disk space. Hope it's useful!

[website](https://pnpm.js.org/)

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2021-04-12 17:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-03 15:45 [PR PATCH] New package: pnpm-5.8.0 reback00
2021-04-05  0:56 ` kwshi
2021-04-05  1:19 ` [PR REVIEW] " ericonr
2021-04-06 18:30 ` Chocimier
2021-04-06 18:30 ` Chocimier
2021-04-06 18:30 ` Chocimier
2021-04-11 17:27 ` [PR PATCH] [Updated] " reback00
2021-04-11 17:43 ` [PR REVIEW] New package: pnpm-6.0.1 reback00
2021-04-11 17:43 ` reback00
2021-04-11 17:44 ` reback00
2021-04-11 17:47 ` reback00
2021-04-11 17:49 ` reback00
2021-04-12  4:44 ` [PR PATCH] [Updated] " reback00
2021-04-12  4:48 ` [PR REVIEW] " reback00
2021-04-12 17:05 ` [PR PATCH] [Merged]: " Chocimier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).