commit:     1c5e721ffb3af2c815d96bde5cc31959196cfb2c
Author:     Alexey Zapparov <alexey <AT> zapparov <DOT> com>
AuthorDate: Tue Nov 23 00:46:41 2021 +0000
Commit:     Alexey Zapparov <alexey <AT> zapparov <DOT> com>
CommitDate: Tue Nov 23 00:46:41 2021 +0000
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 <alexey <AT> 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

Reply via email to