public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alexey Zapparov" <alexey@zapparov.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-ruby/chruby/, dev-ruby/chruby/files/
Date: Sat, 30 Oct 2021 02:44:29 +0000 (UTC)	[thread overview]
Message-ID: <1635561859.3d5614d5135903cbcf43d8ad2994517fff8a0279.alexey@gentoo> (raw)

commit:     3d5614d5135903cbcf43d8ad2994517fff8a0279
Author:     Alexey Zapparov <alexey <AT> zapparov <DOT> com>
AuthorDate: Sat Oct 30 02:44:19 2021 +0000
Commit:     Alexey Zapparov <alexey <AT> zapparov <DOT> com>
CommitDate: Sat Oct 30 02:44:19 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3d5614d5

dev-ruby/chruby: add 0.3.9

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Alexey Zapparov <alexey <AT> zapparov.com>

 dev-ruby/chruby/Manifest            |  1 +
 dev-ruby/chruby/chruby-0.3.9.ebuild | 22 ++++++++++++++++++++++
 dev-ruby/chruby/files/systemwide.sh |  7 +++++++
 dev-ruby/chruby/metadata.xml        | 13 +++++++++++++
 4 files changed, 43 insertions(+)

diff --git a/dev-ruby/chruby/Manifest b/dev-ruby/chruby/Manifest
new file mode 100644
index 000000000..44827c25a
--- /dev/null
+++ b/dev-ruby/chruby/Manifest
@@ -0,0 +1 @@
+DIST chruby-0.3.9.tar.gz 20911 BLAKE2B 4dd797b15987cca163dfdbbc755aef072b7f56069a4392080fc20c21eb9e9ba7e6f1d6e18e9d1fd45c789a79af29336be83c890c96d98cf58833eb035f929db4 SHA512 7d9565dc5285ba53d5c3a9e87a70079d16d7933353d31ea8eca9de21eb59f3bd5134f1883e72019e002bf2eaab5b562bdcd20a154663590fc97e8b8506956f3c

diff --git a/dev-ruby/chruby/chruby-0.3.9.ebuild b/dev-ruby/chruby/chruby-0.3.9.ebuild
new file mode 100644
index 000000000..bf9f43980
--- /dev/null
+++ b/dev-ruby/chruby/chruby-0.3.9.ebuild
@@ -0,0 +1,22 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Changes the current Ruby"
+HOMEPAGE="https://github.com/postmodern/chruby"
+SRC_URI="https://github.com/postmodern/chruby/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="|| ( >=app-shells/bash-3.0:* app-shells/zsh )"
+RDEPEND="${DEPEND}"
+
+src_install() {
+	emake DESTDIR="${D}" install
+
+	insinto "/etc/profile.d"
+	newins "${FILESDIR}/systemwide.sh" "chruby.sh"
+}

diff --git a/dev-ruby/chruby/files/systemwide.sh b/dev-ruby/chruby/files/systemwide.sh
new file mode 100644
index 000000000..be5f9bd1d
--- /dev/null
+++ b/dev-ruby/chruby/files/systemwide.sh
@@ -0,0 +1,7 @@
+if [ -n "$BASH_VERSION" ] || [ -n "$ZSH_VERSION" ]; then
+  source /usr/local/share/chruby/chruby.sh
+
+  # If you want chruby to auto-switch the `.ruby-version` of Ruby when you
+  # cd between your different projects, uncomment following line:
+  #source /usr/local/share/chruby/auto.sh
+fi

diff --git a/dev-ruby/chruby/metadata.xml b/dev-ruby/chruby/metadata.xml
new file mode 100644
index 000000000..5f6d2b404
--- /dev/null
+++ b/dev-ruby/chruby/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>alexey@zapparov.com</email>
+		<name>Alexey Zapparov</name>
+	</maintainer>
+	<upstream>
+		<bugs-to>https://github.com/postmodern/chruby/issues</bugs-to>
+		<changelog>https://github.com/postmodern/chruby/blob/master/ChangeLog.md</changelog>
+		<remote-id type="github">postmodern/chruby</remote-id>
+	</upstream>
+</pkgmetadata>


                 reply	other threads:[~2021-10-30  2:44 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1635561859.3d5614d5135903cbcf43d8ad2994517fff8a0279.alexey@gentoo \
    --to=alexey@zapparov.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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