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@zapparov.com>
This commit is contained in:
Alexey Zapparov 2022-01-02 16:45:32 +01:00
parent 21be9ca52d
commit 35a714d90a
No known key found for this signature in database
GPG Key ID: 1FA54F86EB189F3C

View File

@ -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
}