public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: dev-ruby/chruby/, dev-ruby/chruby/files/
@ 2021-10-30  2:44 Alexey Zapparov
  0 siblings, 0 replies; only message in thread
From: Alexey Zapparov @ 2021-10-30  2:44 UTC (permalink / raw
  To: gentoo-commits

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>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-30  2:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-30  2:44 [gentoo-commits] repo/proj/guru:dev commit in: dev-ruby/chruby/, dev-ruby/chruby/files/ Alexey Zapparov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox