Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: volta-0.7.0
@ 2020-01-21 14:49 voidlinux-github
  2020-01-28  9:07 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (14 more replies)
  0 siblings, 15 replies; 30+ messages in thread
From: voidlinux-github @ 2020-01-21 14:49 UTC (permalink / raw)
  To: ml

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

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

https://github.com/atk/void-packages feat-volta
https://github.com/void-linux/void-packages/pull/18446

New package: volta-0.7.0
Volta is a JavaScript utility version handling tool written in rust; unfortunately, binaries are only available for openssl, so it needs to be compiled for libressl. The original is supposed to be installed to a hidden directory, but since that does not fit into the workflow, I changed the installation to put the binaries into /usr/bin and the scripts into /etc/volta (where you can source them from your .bashrc or .zshrc).

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-feat-volta-18446.patch --]
[-- Type: text/x-diff, Size: 2282 bytes --]

From 366142efd4e4fc7b0f76c4394cbe57d66cd4203f Mon Sep 17 00:00:00 2001
From: Alex Lohr <alexloh@T490.fritz.box>
Date: Tue, 21 Jan 2020 15:49:52 +0100
Subject: [PATCH] New package: volta-0.7.0

---
 .../patches/openssl-sys-fix-version.patch     | 11 +++++++
 srcpkgs/volta/template                        | 31 +++++++++++++++++++
 2 files changed, 42 insertions(+)
 create mode 100644 srcpkgs/volta/patches/openssl-sys-fix-version.patch
 create mode 100644 srcpkgs/volta/template

diff --git a/srcpkgs/volta/patches/openssl-sys-fix-version.patch b/srcpkgs/volta/patches/openssl-sys-fix-version.patch
new file mode 100644
index 00000000000..7f89a2a632f
--- /dev/null
+++ b/srcpkgs/volta/patches/openssl-sys-fix-version.patch
@@ -0,0 +1,11 @@
+--- Cargo.toml
++++ Cargo.toml
+@@ -39,6 +39,7 @@ structopt = "0.2.14"
+ rand = "0.5"
+ cfg-if = "0.1"
+ mockito = { version = "0.14.0", optional = true }
++openssl-sys = { version = "0.9.53" }
+ test-support = { path = "crates/test-support" }
+ textwrap = "0.11.0"
+ which = "2.0.1"
+ 
\ No newline at end of file
diff --git a/srcpkgs/volta/template b/srcpkgs/volta/template
new file mode 100644
index 00000000000..7a9280dd96a
--- /dev/null
+++ b/srcpkgs/volta/template
@@ -0,0 +1,31 @@
+# Template file for 'volta'
+pkgname=volta
+version=0.7.0
+revision=1
+build_helper="rust"
+short_desc="JavaScript tool version sync helper"
+maintainer="Alex Lohr <alex.lohr@logmein.com>"
+license="BSD-2-Clause"
+homepage="https://volta.sh/"
+hostmakedepends="cargo pkg-config"
+makedepends="libressl-devel"
+depends=""
+distfiles="https://github.com/volta-cli/${pkgname}/archive/v${version}.tar.gz"
+checksum=74b97e0488d53b570be745e5380c829ddb59fbc04d0f9ec2e40af612746a05d6
+
+do_build() {
+  cargo build --release --target ${RUST_TARGET} 
+}
+
+do_install() {
+  vinstall target/${RUST_TARGET}/release/volta 755 usr/bin
+  vinstall target/${RUST_TARGET}/release/volta-shim 755 usr/bin
+  vinstall target/${RUST_TARGET}/release/volta-migrate 755 usr/bin
+  
+  vmkdir etc/volta 755
+  vinstall shell/unix/load.bash 755 etc/volta
+  vinstall shell/unix/load.sh 755 etc/volta
+  vinstall shell/unix/load.fish 755 etc/volta
+
+  echo "To use volta automatically, you need to source the correct shell script in /etc/volta"
+}
\ No newline at end of file

^ permalink raw reply	[flat|nested] 30+ messages in thread
* [PR PATCH] New package: volta-0.7.1
@ 2020-02-03 10:11 voidlinux-github
  2020-02-03 15:31 ` voidlinux-github
                   ` (13 more replies)
  0 siblings, 14 replies; 30+ messages in thread
From: voidlinux-github @ 2020-02-03 10:11 UTC (permalink / raw)
  To: ml

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

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

https://github.com/atk/void-packages feat-volta
https://github.com/void-linux/void-packages/pull/18756

New package: volta-0.7.1
See https://github.com/void-linux/void-packages/pull/18446. Unfortunately, I was not able to reopen the PR due to the force push (my bad). The comments from this PR have been resolved.

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-feat-volta-18756.patch --]
[-- Type: text/x-diff, Size: 4948 bytes --]

From 8ddb24096a5890419f291330851e25a301e42e4c Mon Sep 17 00:00:00 2001
From: Alex Lohr <alexloh@T490.fritz.box>
Date: Tue, 21 Jan 2020 15:49:52 +0100
Subject: [PATCH] New package: volta-0.7.1

---
 srcpkgs/volta/files/install.sh     | 27 +++++++++++++++++++++
 srcpkgs/volta/patches/bindir.patch | 39 ++++++++++++++++++++++++++++++
 srcpkgs/volta/template             | 36 +++++++++++++++++++++++++++
 srcpkgs/volta/update               |  2 ++
 4 files changed, 104 insertions(+)
 create mode 100644 srcpkgs/volta/files/install.sh
 create mode 100644 srcpkgs/volta/patches/bindir.patch
 create mode 100644 srcpkgs/volta/template
 create mode 100644 srcpkgs/volta/update

diff --git a/srcpkgs/volta/files/install.sh b/srcpkgs/volta/files/install.sh
new file mode 100644
index 00000000000..61a1674c899
--- /dev/null
+++ b/srcpkgs/volta/files/install.sh
@@ -0,0 +1,27 @@
+createDir() {
+    if [ ! -d "$1" ]; then
+        mkdir "$1"
+    fi
+}
+
+installProfile() {
+    if [ -e "$1" ]; then
+        isInstalled=$(grep "$2" "$1")
+        if [ -z "$isInstalled" ]; then
+            echo "" >> "$1"
+            echo "export VOLTA_HOME=\"$HOME/.volta\"" >> "$1"
+            echo "export PATH=\"$HOME/.volta/bin:\$PATH\"" >> "$1"
+            echo "source $2" >> "$1"
+        fi
+    fi
+}
+
+# Create directories
+createDir "$HOME/.volta"
+createDir "$HOME/.volta/bin"
+
+# Install profile
+installProfile "$HOME/.bashrc" "/etc/volta/load.bash"
+installProfile "$HOME/.cshrc" "/etc/volta/load.sh"
+installProfile "$HOME/.config/fish/config.fish" "/etc/volta/load.fish"
+installProfile "$HOME/.zshrc" "/etc/volta/load.sh"
diff --git a/srcpkgs/volta/patches/bindir.patch b/srcpkgs/volta/patches/bindir.patch
new file mode 100644
index 00000000000..249a53eb13f
--- /dev/null
+++ b/srcpkgs/volta/patches/bindir.patch
@@ -0,0 +1,39 @@
+diff --git a/shell/unix/load.bash b/shell/unix/load.bash
+index 84a192a..0046266 100644
+--- a/shell/unix/load.bash
++++ b/shell/unix/load.bash
+@@ -75,7 +75,7 @@ volta() {
+     export VOLTA_POSTSCRIPT="${VOLTA_ROOT}/tmp/volta_tmp_$(dd if=/dev/urandom count=1 2> /dev/null | cksum | cut -f1 -d" ").sh"
+ 
+     # Forward the arguments to the Volta executable.
+-    VOLTA_SHELL=bash command "${VOLTA_ROOT}/volta" "$@"
++    VOLTA_SHELL=bash command volta "$@"
+     EXIT_CODE=$?
+ 
+     # Call the post-invocation script if it is present, then delete it.
+diff --git a/shell/unix/load.fish b/shell/unix/load.fish
+index b667d48..7b76a89 100644
+--- a/shell/unix/load.fish
++++ b/shell/unix/load.fish
+@@ -11,7 +11,7 @@ function volta
+     set -x VOLTA_POSTSCRIPT "$VOLTA_ROOT/tmp/volta_tmp_"(dd if=/dev/urandom count=1 2> /dev/null | cksum | cut -f1 -d" ")".fish"
+ 
+     # Forward the arguments to the Volta executable.
+-    env VOLTA_SHELL=fish "$VOLTA_ROOT/volta" $argv
++    env VOLTA_SHELL=fish volta $argv
+     set EXIT_CODE $status
+ 
+     # Call the post-invocation script if it is present, then delete it.
+diff --git a/shell/unix/load.sh b/shell/unix/load.sh
+index ed52fd0..9d3aef6 100644
+--- a/shell/unix/load.sh
++++ b/shell/unix/load.sh
+@@ -10,7 +10,7 @@ volta() {
+     export VOLTA_POSTSCRIPT="${VOLTA_ROOT}/tmp/volta_tmp_$(dd if=/dev/urandom count=1 2> /dev/null | cksum | cut -f1 -d" ").sh"
+ 
+     # Forward the arguments to the Volta executable.
+-    VOLTA_SHELL=bash command "${VOLTA_ROOT}/volta" "$@"
++    VOLTA_SHELL=bash command volta "$@"
+     EXIT_CODE=$?
+ 
+     # Call the post-invocation script if it is present, then delete it.
diff --git a/srcpkgs/volta/template b/srcpkgs/volta/template
new file mode 100644
index 00000000000..c5cfdf431a4
--- /dev/null
+++ b/srcpkgs/volta/template
@@ -0,0 +1,36 @@
+# Template file for 'volta'
+pkgname=volta
+version=0.7.1
+revision=1
+archs="x86_64 i686"
+build_helper="rust"
+hostmakedepends="cargo pkg-config"
+makedepends="libressl-devel"
+short_desc="JavaScript tool version sync helper"
+maintainer="Alex Lohr <alex.lohr@logmein.com>"
+license="BSD-2-Clause"
+homepage="https://volta.sh/"
+distfiles="https://github.com/volta-cli/${pkgname}/archive/v${version}.tar.gz"
+checksum=e53a07e167bb64103f36901423f5a377a2ea89ecfdd7a1343e69d659f99f9c1b
+
+pre_build() {
+	cargo update --package openssl-sys --precise 0.9.53
+}
+
+do_build() {
+	cargo build --release --target ${RUST_TARGET}
+}
+
+do_install() {
+	vlicense LICENSE
+
+	vbin target/${RUST_TARGET}/release/volta
+	vbin target/${RUST_TARGET}/release/volta-shim
+	vbin target/${RUST_TARGET}/release/volta-migrate
+
+	vmkdir etc/volta 755
+	vinstall shell/unix/load.bash 755 etc/volta
+	vinstall shell/unix/load.sh 755 etc/volta
+	vinstall shell/unix/load.fish 755 etc/volta
+	vinstall ${FILESDIR}/install.sh 755 etc/volta
+}
diff --git a/srcpkgs/volta/update b/srcpkgs/volta/update
new file mode 100644
index 00000000000..7e45e278a6c
--- /dev/null
+++ b/srcpkgs/volta/update
@@ -0,0 +1,2 @@
+site="https://github.com/volta-cli/volta/releases"
+pattern="\bv(\d+\.\d+\.\d+)\b"

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

end of thread, other threads:[~2020-02-07  3:32 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-21 14:49 [PR PATCH] New package: volta-0.7.0 voidlinux-github
2020-01-28  9:07 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-28 10:09 ` [PR PATCH] [Updated] New package: volta-0.7.1 voidlinux-github
2020-01-28 10:41 ` voidlinux-github
2020-01-28 19:03 ` [PR PATCH] [Updated] " voidlinux-github
2020-01-30  8:56 ` voidlinux-github
2020-01-31  8:38 ` voidlinux-github
2020-01-31  8:48 ` voidlinux-github
2020-01-31  9:25 ` voidlinux-github
2020-01-31  9:52 ` voidlinux-github
2020-02-01 13:05 ` voidlinux-github
2020-02-02  2:33 ` voidlinux-github
2020-02-02  2:33 ` voidlinux-github
2020-02-02  8:09 ` voidlinux-github
2020-02-02  8:09 ` [PR PATCH] [Closed]: " voidlinux-github
2020-02-03  9:04 ` voidlinux-github
2020-02-03 10:11 [PR PATCH] " voidlinux-github
2020-02-03 15:31 ` voidlinux-github
2020-02-03 15:31 ` voidlinux-github
2020-02-03 15:38 ` voidlinux-github
2020-02-03 19:59 ` voidlinux-github
2020-02-03 20:53 ` voidlinux-github
2020-02-03 20:57 ` voidlinux-github
2020-02-03 21:01 ` voidlinux-github
2020-02-04  6:05 ` voidlinux-github
2020-02-06  7:52 ` voidlinux-github
2020-02-06 15:01 ` voidlinux-github
2020-02-06 17:20 ` voidlinux-github
2020-02-06 17:37 ` voidlinux-github
2020-02-06 18:08 ` voidlinux-github
2020-02-07  3:32 ` voidlinux-github

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).