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/
Date: Tue, 23 Nov 2021 00:48:27
Message-Id: 1637628401.1c5e721ffb3af2c815d96bde5cc31959196cfb2c.alexey@gentoo
1 commit: 1c5e721ffb3af2c815d96bde5cc31959196cfb2c
2 Author: Alexey Zapparov <alexey <AT> zapparov <DOT> com>
3 AuthorDate: Tue Nov 23 00:46:41 2021 +0000
4 Commit: Alexey Zapparov <alexey <AT> zapparov <DOT> com>
5 CommitDate: Tue Nov 23 00:46:41 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1c5e721f
7
8 dev-ruby/chruby: add chruby-0.3.9-r3
9
10 Address QA failure report.
11
12 Closes: https://bugs.gentoo.org/825450
13 Package-Manager: Portage-3.0.28, Repoman-3.0.3
14 Signed-off-by: Alexey Zapparov <alexey <AT> zapparov.com>
15
16 .../chruby/{chruby-0.3.9-r2.ebuild => chruby-0.3.9-r3.ebuild} | 9 +++++++++
17 1 file changed, 9 insertions(+)
18
19 diff --git a/dev-ruby/chruby/chruby-0.3.9-r2.ebuild b/dev-ruby/chruby/chruby-0.3.9-r3.ebuild
20 similarity index 77%
21 rename from dev-ruby/chruby/chruby-0.3.9-r2.ebuild
22 rename to dev-ruby/chruby/chruby-0.3.9-r3.ebuild
23 index a4ec37b98..f342c7ecb 100644
24 --- a/dev-ruby/chruby/chruby-0.3.9-r2.ebuild
25 +++ b/dev-ruby/chruby/chruby-0.3.9-r3.ebuild
26 @@ -15,6 +15,15 @@ RESTRICT="test"
27 DEPEND="|| ( >=app-shells/bash-3.0:* app-shells/zsh )"
28 RDEPEND="${DEPEND}"
29
30 +src_prepare() {
31 + default
32 +
33 + if [ -n "${PVR}" ] ; then
34 + sed -i Makefile -e "s/^VERSION=${PV}$/VERSION=${PVR}/" \
35 + || die "can't fix doc location to follow Gentoo/FHS guidelines"
36 + fi
37 +}
38 +
39 src_install() {
40 # TODO: Remove `${D}` from PREFIX in >=chruby-0.3.10 (https://git.io/JPQ25)
41 emake DESTDIR="${D}" PREFIX="${D}/usr" install