[gentoo-commits] repo/proj/guru:dev commit in: dev-ruby/chruby/

2021-12-25 Thread Alexey Zapparov
commit: 424d5e5f3ba113910a3748fdb4a0fdec43dd5f88
Author: Alexey Zapparov  zapparov  com>
AuthorDate: Sat Dec 25 16:39:17 2021 +
Commit: Alexey Zapparov  zapparov  com>
CommitDate: Sat Dec 25 18:21:33 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=424d5e5f

dev-ruby/chruby: add  (live) ebuild

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

 dev-ruby/chruby/chruby-.ebuild | 41 ++
 1 file changed, 41 insertions(+)

diff --git a/dev-ruby/chruby/chruby-.ebuild 
b/dev-ruby/chruby/chruby-.ebuild
new file mode 100644
index 0..bd7345d78
--- /dev/null
+++ b/dev-ruby/chruby/chruby-.ebuild
@@ -0,0 +1,41 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+if [[ ${PV} == * ]]; then
+   EGIT_REPO_URI="https://github.com/postmodern/chruby.git;
+   inherit git-r3
+else
+   SRC_URI="https://github.com/postmodern/chruby/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+   KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Changes the current Ruby"
+HOMEPAGE="https://github.com/postmodern/chruby;
+
+LICENSE="MIT"
+SLOT="0"
+RESTRICT="test"
+
+DEPEND="|| ( >=app-shells/bash-3.0:* app-shells/zsh )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+   default
+
+   sed -i Makefile -e "s/^VERSION=.\+$/VERSION=${PVR}/" \
+   || die "can't fix doc location to follow Gentoo/FHS guidelines"
+}
+
+src_install() {
+   local emakeargs=(
+   DESTDIR="$D"
+   PREFIX="/usr"
+   )
+
+   emake "${emakeargs[@]}" install
+
+   insinto "/etc/profile.d"
+   newins "${FILESDIR}/systemwide.sh" "chruby.sh"
+}



[gentoo-commits] repo/proj/guru:dev commit in: dev-ruby/chruby/

2021-11-22 Thread Alexey Zapparov
commit: 1c5e721ffb3af2c815d96bde5cc31959196cfb2c
Author: Alexey Zapparov  zapparov  com>
AuthorDate: Tue Nov 23 00:46:41 2021 +
Commit: Alexey Zapparov  zapparov  com>
CommitDate: Tue Nov 23 00:46:41 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1c5e721f

dev-ruby/chruby: add chruby-0.3.9-r3

Address QA failure report.

Closes: https://bugs.gentoo.org/825450
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Alexey Zapparov  zapparov.com>

 .../chruby/{chruby-0.3.9-r2.ebuild => chruby-0.3.9-r3.ebuild}| 9 +
 1 file changed, 9 insertions(+)

diff --git a/dev-ruby/chruby/chruby-0.3.9-r2.ebuild 
b/dev-ruby/chruby/chruby-0.3.9-r3.ebuild
similarity index 77%
rename from dev-ruby/chruby/chruby-0.3.9-r2.ebuild
rename to dev-ruby/chruby/chruby-0.3.9-r3.ebuild
index a4ec37b98..f342c7ecb 100644
--- a/dev-ruby/chruby/chruby-0.3.9-r2.ebuild
+++ b/dev-ruby/chruby/chruby-0.3.9-r3.ebuild
@@ -15,6 +15,15 @@ RESTRICT="test"
 DEPEND="|| ( >=app-shells/bash-3.0:* app-shells/zsh )"
 RDEPEND="${DEPEND}"
 
+src_prepare() {
+   default
+
+   if [ -n "${PVR}" ] ; then
+   sed -i Makefile -e "s/^VERSION=${PV}$/VERSION=${PVR}/" \
+   || die "can't fix doc location to follow Gentoo/FHS 
guidelines"
+   fi
+}
+
 src_install() {
# TODO: Remove `${D}` from PREFIX in >=chruby-0.3.10 
(https://git.io/JPQ25)
emake DESTDIR="${D}" PREFIX="${D}/usr" install



[gentoo-commits] repo/proj/guru:dev commit in: dev-ruby/chruby/

2021-11-17 Thread Alexey Zapparov
commit: 82532d83514c70b4f5ba12283d6e4843b9238903
Author: Alexey Zapparov  zapparov  com>
AuthorDate: Wed Nov 17 16:39:20 2021 +
Commit: Alexey Zapparov  zapparov  com>
CommitDate: Wed Nov 17 16:39:31 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=82532d83

dev-ruby/chruby: 0.3.9-r2

Restrict test feature, as testdata is no longer available on .

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

 dev-ruby/chruby/{chruby-0.3.9-r1.ebuild => chruby-0.3.9-r2.ebuild} | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dev-ruby/chruby/chruby-0.3.9-r1.ebuild 
b/dev-ruby/chruby/chruby-0.3.9-r2.ebuild
similarity index 97%
rename from dev-ruby/chruby/chruby-0.3.9-r1.ebuild
rename to dev-ruby/chruby/chruby-0.3.9-r2.ebuild
index 9e37e8484..a4ec37b98 100644
--- a/dev-ruby/chruby/chruby-0.3.9-r1.ebuild
+++ b/dev-ruby/chruby/chruby-0.3.9-r2.ebuild
@@ -10,6 +10,7 @@ 
SRC_URI="https://github.com/postmodern/chruby/archive/v${PV}.tar.gz -> ${P}.tar.
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
+RESTRICT="test"
 
 DEPEND="|| ( >=app-shells/bash-3.0:* app-shells/zsh )"
 RDEPEND="${DEPEND}"



[gentoo-commits] repo/proj/guru:dev commit in: dev-ruby/chruby/files/, dev-ruby/chruby/

2021-11-03 Thread Alexey Zapparov
commit: 6848d9512ae2883881c23b1eab801deaccd41ec8
Author: Alexey Zapparov  zapparov  com>
AuthorDate: Wed Nov  3 16:45:28 2021 +
Commit: Alexey Zapparov  zapparov  com>
CommitDate: Wed Nov  3 16:45:28 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6848d951

dev-ruby/chruby: add 0.3.9-r1

Resolve: https://bugs.gentoo.org/821481
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Alexey Zapparov  zapparov.com>

 dev-ruby/chruby/{chruby-0.3.9.ebuild => chruby-0.3.9-r1.ebuild} | 3 ++-
 dev-ruby/chruby/files/systemwide.sh | 4 ++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/dev-ruby/chruby/chruby-0.3.9.ebuild 
b/dev-ruby/chruby/chruby-0.3.9-r1.ebuild
similarity index 79%
rename from dev-ruby/chruby/chruby-0.3.9.ebuild
rename to dev-ruby/chruby/chruby-0.3.9-r1.ebuild
index bf9f43980..9e37e8484 100644
--- a/dev-ruby/chruby/chruby-0.3.9.ebuild
+++ b/dev-ruby/chruby/chruby-0.3.9-r1.ebuild
@@ -15,7 +15,8 @@ DEPEND="|| ( >=app-shells/bash-3.0:* app-shells/zsh )"
 RDEPEND="${DEPEND}"
 
 src_install() {
-   emake DESTDIR="${D}" install
+   # TODO: Remove `${D}` from PREFIX in >=chruby-0.3.10 
(https://git.io/JPQ25)
+   emake DESTDIR="${D}" PREFIX="${D}/usr" 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
index be5f9bd1d..e7859dfd8 100644
--- a/dev-ruby/chruby/files/systemwide.sh
+++ b/dev-ruby/chruby/files/systemwide.sh
@@ -1,7 +1,7 @@
 if [ -n "$BASH_VERSION" ] || [ -n "$ZSH_VERSION" ]; then
-  source /usr/local/share/chruby/chruby.sh
+  source /usr/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
+  #source /usr/share/chruby/auto.sh
 fi



[gentoo-commits] repo/proj/guru:dev commit in: dev-ruby/chruby/, dev-ruby/chruby/files/

2021-10-29 Thread Alexey Zapparov
commit: 3d5614d5135903cbcf43d8ad2994517fff8a0279
Author: Alexey Zapparov  zapparov  com>
AuthorDate: Sat Oct 30 02:44:19 2021 +
Commit: Alexey Zapparov  zapparov  com>
CommitDate: Sat Oct 30 02:44:19 2021 +
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  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 0..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 0..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 0..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 0..5f6d2b404
--- /dev/null
+++ b/dev-ruby/chruby/metadata.xml
@@ -0,0 +1,13 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   ale...@zapparov.com
+   Alexey Zapparov
+   
+   
+   https://github.com/postmodern/chruby/issues
+   
https://github.com/postmodern/chruby/blob/master/ChangeLog.md
+   postmodern/chruby
+   
+