Gentoo Archives: gentoo-commits

From: Alexey Zapparov <alexey@××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-ruby/chruby/, dev-ruby/chruby/files/
Date: Sat, 30 Oct 2021 02:44:33
Message-Id: 1635561859.3d5614d5135903cbcf43d8ad2994517fff8a0279.alexey@gentoo
1 commit: 3d5614d5135903cbcf43d8ad2994517fff8a0279
2 Author: Alexey Zapparov <alexey <AT> zapparov <DOT> com>
3 AuthorDate: Sat Oct 30 02:44:19 2021 +0000
4 Commit: Alexey Zapparov <alexey <AT> zapparov <DOT> com>
5 CommitDate: Sat Oct 30 02:44:19 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=3d5614d5
7
8 dev-ruby/chruby: add 0.3.9
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Alexey Zapparov <alexey <AT> zapparov.com>
12
13 dev-ruby/chruby/Manifest | 1 +
14 dev-ruby/chruby/chruby-0.3.9.ebuild | 22 ++++++++++++++++++++++
15 dev-ruby/chruby/files/systemwide.sh | 7 +++++++
16 dev-ruby/chruby/metadata.xml | 13 +++++++++++++
17 4 files changed, 43 insertions(+)
18
19 diff --git a/dev-ruby/chruby/Manifest b/dev-ruby/chruby/Manifest
20 new file mode 100644
21 index 000000000..44827c25a
22 --- /dev/null
23 +++ b/dev-ruby/chruby/Manifest
24 @@ -0,0 +1 @@
25 +DIST chruby-0.3.9.tar.gz 20911 BLAKE2B 4dd797b15987cca163dfdbbc755aef072b7f56069a4392080fc20c21eb9e9ba7e6f1d6e18e9d1fd45c789a79af29336be83c890c96d98cf58833eb035f929db4 SHA512 7d9565dc5285ba53d5c3a9e87a70079d16d7933353d31ea8eca9de21eb59f3bd5134f1883e72019e002bf2eaab5b562bdcd20a154663590fc97e8b8506956f3c
26
27 diff --git a/dev-ruby/chruby/chruby-0.3.9.ebuild b/dev-ruby/chruby/chruby-0.3.9.ebuild
28 new file mode 100644
29 index 000000000..bf9f43980
30 --- /dev/null
31 +++ b/dev-ruby/chruby/chruby-0.3.9.ebuild
32 @@ -0,0 +1,22 @@
33 +# Copyright 2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +DESCRIPTION="Changes the current Ruby"
39 +HOMEPAGE="https://github.com/postmodern/chruby"
40 +SRC_URI="https://github.com/postmodern/chruby/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="MIT"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +
46 +DEPEND="|| ( >=app-shells/bash-3.0:* app-shells/zsh )"
47 +RDEPEND="${DEPEND}"
48 +
49 +src_install() {
50 + emake DESTDIR="${D}" install
51 +
52 + insinto "/etc/profile.d"
53 + newins "${FILESDIR}/systemwide.sh" "chruby.sh"
54 +}
55
56 diff --git a/dev-ruby/chruby/files/systemwide.sh b/dev-ruby/chruby/files/systemwide.sh
57 new file mode 100644
58 index 000000000..be5f9bd1d
59 --- /dev/null
60 +++ b/dev-ruby/chruby/files/systemwide.sh
61 @@ -0,0 +1,7 @@
62 +if [ -n "$BASH_VERSION" ] || [ -n "$ZSH_VERSION" ]; then
63 + source /usr/local/share/chruby/chruby.sh
64 +
65 + # If you want chruby to auto-switch the `.ruby-version` of Ruby when you
66 + # cd between your different projects, uncomment following line:
67 + #source /usr/local/share/chruby/auto.sh
68 +fi
69
70 diff --git a/dev-ruby/chruby/metadata.xml b/dev-ruby/chruby/metadata.xml
71 new file mode 100644
72 index 000000000..5f6d2b404
73 --- /dev/null
74 +++ b/dev-ruby/chruby/metadata.xml
75 @@ -0,0 +1,13 @@
76 +<?xml version="1.0" encoding="UTF-8"?>
77 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
78 +<pkgmetadata>
79 + <maintainer type="person">
80 + <email>alexey@××××××××.com</email>
81 + <name>Alexey Zapparov</name>
82 + </maintainer>
83 + <upstream>
84 + <bugs-to>https://github.com/postmodern/chruby/issues</bugs-to>
85 + <changelog>https://github.com/postmodern/chruby/blob/master/ChangeLog.md</changelog>
86 + <remote-id type="github">postmodern/chruby</remote-id>
87 + </upstream>
88 +</pkgmetadata>