Github messages for voidlinux
 help / color / mirror / Atom feed
From: b-l-a-i-n-e <b-l-a-i-n-e@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New packages: rbenv-1.2.0, ruby-build-20211203
Date: Mon, 13 Dec 2021 22:01:15 +0100	[thread overview]
Message-ID: <20211213210115.XKGQvt4wsdywpy_nB1N_d-OO4reWOYU2m9luYWWHdWo@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-34504@inbox.vuxu.org>

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

There is an updated pull request by b-l-a-i-n-e against master on the void-packages repository

https://github.com/b-l-a-i-n-e/void-packages rbenv
https://github.com/void-linux/void-packages/pull/34504

New packages: rbenv-1.2.0, ruby-build-20211203
#### Testing the changes
- I tested the changes in this PR: **YES**

#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**

#### Local build testing
- I built this PR locally for my native architecture, (x86_64-GLIBC)


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

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

From 582c82eb4842684e5d9cad2811b6557b5578769f Mon Sep 17 00:00:00 2001
From: b-l-a-i-n-e <blaine.gilbreth@gmail.com>
Date: Sun, 12 Dec 2021 17:34:12 -0800
Subject: [PATCH 1/4] New package: ruby-build-20211203

---
 srcpkgs/ruby-build/template | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 srcpkgs/ruby-build/template

diff --git a/srcpkgs/ruby-build/template b/srcpkgs/ruby-build/template
new file mode 100644
index 000000000000..52a872b0388a
--- /dev/null
+++ b/srcpkgs/ruby-build/template
@@ -0,0 +1,21 @@
+# Template file for 'ruby-build'
+pkgname=ruby-build
+version=20211203
+revision=1
+archs="x86_64"
+depends="bash"
+short_desc="Compile and install Ruby"
+maintainer="b-l-a-i-n-e <blaine.gilbreth@gmail.com>"
+homepage="https://github.com/rbenv/ruby-build"
+distfiles="https://github.com/rbenv/ruby-build/archive/refs/tags/v${version}.tar.gz"
+license="MIT"
+checksum=f6a9149b24c7452a512395bc43d9837171de5f43ef0cf191a4a24b013f6a2eed
+
+do_install() {
+	vinstall bin/ruby-build 755 /usr/bin
+	vinstall bin/rbenv-install 755 /usr/bin
+	vinstall bin/rbenv-uninstall 755 /usr/bin
+	vmkdir usr/share/ruby-build
+	vcopy share/ruby-build/* usr/share/ruby-build
+	vlicense LICENSE
+}

From a2794daf304bd5e0dd79bb935acdc2ac42b40552 Mon Sep 17 00:00:00 2001
From: b-l-a-i-n-e <blaine.gilbreth@gmail.com>
Date: Sun, 12 Dec 2021 17:35:09 -0800
Subject: [PATCH 2/4] New package: rbenv-1.2.0

---
 srcpkgs/rbenv/INSTALL.msg | 10 ++++++++++
 srcpkgs/rbenv/files/rbenv |  2 ++
 srcpkgs/rbenv/template    | 26 ++++++++++++++++++++++++++
 3 files changed, 38 insertions(+)
 create mode 100644 srcpkgs/rbenv/INSTALL.msg
 create mode 100644 srcpkgs/rbenv/files/rbenv
 create mode 100644 srcpkgs/rbenv/template

diff --git a/srcpkgs/rbenv/INSTALL.msg b/srcpkgs/rbenv/INSTALL.msg
new file mode 100644
index 000000000000..69fd6762df2f
--- /dev/null
+++ b/srcpkgs/rbenv/INSTALL.msg
@@ -0,0 +1,10 @@
+You may verify install with rbenv-doctor
+
+  $ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash
+
+Initialize as current user to create the ~/.rbenv file which holds the shims
+
+  $ rbenv init
+
+See readme for more info (https://github.com/rbenv/rbenv#readme)
+
diff --git a/srcpkgs/rbenv/files/rbenv b/srcpkgs/rbenv/files/rbenv
new file mode 100644
index 000000000000..b260c7334a01
--- /dev/null
+++ b/srcpkgs/rbenv/files/rbenv
@@ -0,0 +1,2 @@
+#!/bin/sh
+LD_LIBRARY_PATH=/usr/libexec/rbenv exec /usr/libexec/rbenv/rbenv "$@"
diff --git a/srcpkgs/rbenv/template b/srcpkgs/rbenv/template
new file mode 100644
index 000000000000..596c8a08bddd
--- /dev/null
+++ b/srcpkgs/rbenv/template
@@ -0,0 +1,26 @@
+# Template file for 'rbenv'
+pkgname=rbenv
+version=1.2.0
+revision=1
+archs="x86_64"
+depends="ruby-build"
+short_desc="Manage your app's Ruby environment"
+maintainer="b-l-a-i-n-e <blaine.gilbreth@gmail.com>"
+homepage="https://github.com/rbenv/rbenv"
+distfiles="https://github.com/rbenv/rbenv/archive/refs/tags/v${version}.tar.gz"
+license="MIT"
+checksum=3f3a31b8a73c174e3e877ccc1ea453d966b4d810a2aadcd4d8c460bc9ec85e0c
+
+do_build() {
+	src/configure && make -C src
+}
+
+do_install() {
+	vinstall "${FILESDIR}/rbenv" 755 /usr/bin
+	vmkdir usr/libexec/rbenv
+	vcopy libexec/* usr/libexec/rbenv
+	vmkdir /usr/share/bash-completion/completions/
+	vcopy completions/rbenv.bash /usr/share/bash-completion/completions/
+	vlicense LICENSE
+}
+

From eb519e0a82a2d16ba564975fd102faa7c61f61f8 Mon Sep 17 00:00:00 2001
From: b-l-a-i-n-e <blaine.gilbreth@gmail.com>
Date: Mon, 13 Dec 2021 12:55:20 -0800
Subject: [PATCH 3/4] Use vdoc and build_style=configure

---
 srcpkgs/rbenv/INSTALL.msg   | 10 ----------
 srcpkgs/rbenv/template      | 10 +++++-----
 srcpkgs/ruby-build/template |  2 +-
 3 files changed, 6 insertions(+), 16 deletions(-)
 delete mode 100644 srcpkgs/rbenv/INSTALL.msg

diff --git a/srcpkgs/rbenv/INSTALL.msg b/srcpkgs/rbenv/INSTALL.msg
deleted file mode 100644
index 69fd6762df2f..000000000000
--- a/srcpkgs/rbenv/INSTALL.msg
+++ /dev/null
@@ -1,10 +0,0 @@
-You may verify install with rbenv-doctor
-
-  $ curl -fsSL https://github.com/rbenv/rbenv-installer/raw/main/bin/rbenv-doctor | bash
-
-Initialize as current user to create the ~/.rbenv file which holds the shims
-
-  $ rbenv init
-
-See readme for more info (https://github.com/rbenv/rbenv#readme)
-
diff --git a/srcpkgs/rbenv/template b/srcpkgs/rbenv/template
index 596c8a08bddd..5bc368fa21c6 100644
--- a/srcpkgs/rbenv/template
+++ b/srcpkgs/rbenv/template
@@ -2,8 +2,11 @@
 pkgname=rbenv
 version=1.2.0
 revision=1
-archs="x86_64"
 depends="ruby-build"
+build_style="configure"
+configure_script="src/configure"
+make_build_args="-C"
+make_build_target="src"
 short_desc="Manage your app's Ruby environment"
 maintainer="b-l-a-i-n-e <blaine.gilbreth@gmail.com>"
 homepage="https://github.com/rbenv/rbenv"
@@ -11,10 +14,6 @@ distfiles="https://github.com/rbenv/rbenv/archive/refs/tags/v${version}.tar.gz"
 license="MIT"
 checksum=3f3a31b8a73c174e3e877ccc1ea453d966b4d810a2aadcd4d8c460bc9ec85e0c
 
-do_build() {
-	src/configure && make -C src
-}
-
 do_install() {
 	vinstall "${FILESDIR}/rbenv" 755 /usr/bin
 	vmkdir usr/libexec/rbenv
@@ -22,5 +21,6 @@ do_install() {
 	vmkdir /usr/share/bash-completion/completions/
 	vcopy completions/rbenv.bash /usr/share/bash-completion/completions/
 	vlicense LICENSE
+	vdoc README.md
 }
 
diff --git a/srcpkgs/ruby-build/template b/srcpkgs/ruby-build/template
index 52a872b0388a..b41726af69cd 100644
--- a/srcpkgs/ruby-build/template
+++ b/srcpkgs/ruby-build/template
@@ -2,7 +2,6 @@
 pkgname=ruby-build
 version=20211203
 revision=1
-archs="x86_64"
 depends="bash"
 short_desc="Compile and install Ruby"
 maintainer="b-l-a-i-n-e <blaine.gilbreth@gmail.com>"
@@ -18,4 +17,5 @@ do_install() {
 	vmkdir usr/share/ruby-build
 	vcopy share/ruby-build/* usr/share/ruby-build
 	vlicense LICENSE
+	vdoc README.md
 }

From f3cef8c6c54c2f804afcfd21918ca7cb50b465cf Mon Sep 17 00:00:00 2001
From: b-l-a-i-n-e <blaine.gilbreth@gmail.com>
Date: Mon, 13 Dec 2021 13:01:28 -0800
Subject: [PATCH 4/4] Fix linting errors

---
 srcpkgs/rbenv/template      | 4 ++--
 srcpkgs/ruby-build/template | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/rbenv/template b/srcpkgs/rbenv/template
index 5bc368fa21c6..924ebf52dac2 100644
--- a/srcpkgs/rbenv/template
+++ b/srcpkgs/rbenv/template
@@ -2,16 +2,16 @@
 pkgname=rbenv
 version=1.2.0
 revision=1
-depends="ruby-build"
 build_style="configure"
 configure_script="src/configure"
 make_build_args="-C"
 make_build_target="src"
+depends="ruby-build"
 short_desc="Manage your app's Ruby environment"
 maintainer="b-l-a-i-n-e <blaine.gilbreth@gmail.com>"
 homepage="https://github.com/rbenv/rbenv"
-distfiles="https://github.com/rbenv/rbenv/archive/refs/tags/v${version}.tar.gz"
 license="MIT"
+distfiles="https://github.com/rbenv/rbenv/archive/refs/tags/v${version}.tar.gz"
 checksum=3f3a31b8a73c174e3e877ccc1ea453d966b4d810a2aadcd4d8c460bc9ec85e0c
 
 do_install() {
diff --git a/srcpkgs/ruby-build/template b/srcpkgs/ruby-build/template
index b41726af69cd..987cccfe2c56 100644
--- a/srcpkgs/ruby-build/template
+++ b/srcpkgs/ruby-build/template
@@ -6,8 +6,8 @@ depends="bash"
 short_desc="Compile and install Ruby"
 maintainer="b-l-a-i-n-e <blaine.gilbreth@gmail.com>"
 homepage="https://github.com/rbenv/ruby-build"
-distfiles="https://github.com/rbenv/ruby-build/archive/refs/tags/v${version}.tar.gz"
 license="MIT"
+distfiles="https://github.com/rbenv/ruby-build/archive/refs/tags/v${version}.tar.gz"
 checksum=f6a9149b24c7452a512395bc43d9837171de5f43ef0cf191a4a24b013f6a2eed
 
 do_install() {

  parent reply	other threads:[~2021-12-13 21:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-13  3:27 [PR PATCH] " b-l-a-i-n-e
2021-12-13 19:44 ` [PR REVIEW] " Chocimier
2021-12-13 19:44 ` Chocimier
2021-12-13 19:58 ` Chocimier
2021-12-13 20:55 ` [PR PATCH] [Updated] " b-l-a-i-n-e
2021-12-13 21:01 ` b-l-a-i-n-e [this message]
2021-12-14 18:55 ` b-l-a-i-n-e
2021-12-14 20:30 ` b-l-a-i-n-e
2021-12-15 20:10 ` Chocimier
2021-12-15 21:35 ` [PR PATCH] [Updated] " b-l-a-i-n-e
2021-12-15 21:38 ` b-l-a-i-n-e
2021-12-15 22:42 ` [PR PATCH] [Merged]: " Chocimier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211213210115.XKGQvt4wsdywpy_nB1N_d-OO4reWOYU2m9luYWWHdWo@z \
    --to=b-l-a-i-n-e@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).