commit:     35a714d90af04df573786ce35f5501ee5e7c11ba
Author:     Alexey Zapparov <alexey <AT> zapparov <DOT> com>
AuthorDate: Sun Jan  2 15:45:32 2022 +0000
Commit:     Alexey Zapparov <alexey <AT> zapparov <DOT> com>
CommitDate: Sun Jan  2 15:45:32 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=35a714d9

dev-ruby/ruby-install: fix 0.8.3-r2

Fix Makefile's version to include Gentoo ebuild revision.

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

 ...ruby-install-0.8.3-r1.ebuild => ruby-install-0.8.3-r2.ebuild} | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/dev-ruby/ruby-install/ruby-install-0.8.3-r1.ebuild 
b/dev-ruby/ruby-install/ruby-install-0.8.3-r2.ebuild
similarity index 81%
rename from dev-ruby/ruby-install/ruby-install-0.8.3-r1.ebuild
rename to dev-ruby/ruby-install/ruby-install-0.8.3-r2.ebuild
index 1c97407cc..46ccb1fad 100644
--- a/dev-ruby/ruby-install/ruby-install-0.8.3-r1.ebuild
+++ b/dev-ruby/ruby-install/ruby-install-0.8.3-r2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2021 Gentoo Authors
+# Copyright 2021-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -31,6 +31,13 @@ src_test() {
        emake test
 }
 
+src_prepare() {
+       default
+
+       sed -i Makefile -e "s/^VERSION=.\+$/VERSION=${PVR}/" \
+               || die "Cannot fix doc location to follow Gentoo/FHS guidelines"
+}
+
 src_install() {
        emake DESTDIR="${D}" PREFIX="/usr" install
 }

Reply via email to