From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1073390-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id B3C8F138334
	for <garchives@archives.gentoo.org>; Tue, 19 Feb 2019 14:53:54 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B8CA7E0823;
	Tue, 19 Feb 2019 14:53:52 +0000 (UTC)
Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 88594E0823
	for <gentoo-commits@lists.gentoo.org>; Tue, 19 Feb 2019 14:53:52 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 575CD335C9C
	for <gentoo-commits@lists.gentoo.org>; Tue, 19 Feb 2019 14:53:51 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id C1E4C520
	for <gentoo-commits@lists.gentoo.org>; Tue, 19 Feb 2019 14:53:49 +0000 (UTC)
From: "Fabian Groffen" <grobian@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" <grobian@gentoo.org>
Message-ID: <1550587955.71b9a96cba6cc3db2d4629d907f729e7a08666eb.grobian@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/ruby/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-lang/ruby/ruby-2.6.0-r1.ebuild dev-lang/ruby/ruby-2.6.1.ebuild
X-VCS-Directories: dev-lang/ruby/
X-VCS-Committer: grobian
X-VCS-Committer-Name: Fabian Groffen
X-VCS-Revision: 71b9a96cba6cc3db2d4629d907f729e7a08666eb
X-VCS-Branch: master
Date: Tue, 19 Feb 2019 14:53:49 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 4bb36222-04cf-4401-ba75-6e9bac4e797d
X-Archives-Hash: cb4b343347412c8fce2ba9b514c092da

commit:     71b9a96cba6cc3db2d4629d907f729e7a08666eb
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 19 14:52:35 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Feb 19 14:52:35 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71b9a96c

dev-lang/ruby: fix for Prefix by Madhu, bug #677878

Closes: https://bugs.gentoo.org/677878
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

 dev-lang/ruby/ruby-2.6.0-r1.ebuild | 2 +-
 dev-lang/ruby/ruby-2.6.1.ebuild    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-lang/ruby/ruby-2.6.0-r1.ebuild b/dev-lang/ruby/ruby-2.6.0-r1.ebuild
index 8303c4eeaff..3d4b93b4185 100644
--- a/dev-lang/ruby/ruby-2.6.0-r1.ebuild
+++ b/dev-lang/ruby/ruby-2.6.0-r1.ebuild
@@ -191,7 +191,7 @@ src_install() {
 	export LD_LIBRARY_PATH RUBYLIB
 
 	# Create directory for the default gems
-	local gem_home="/usr/$(get_libdir)/ruby/gems/${RUBYVERSION}"
+	local gem_home="${EPREFIX}/usr/$(get_libdir)/ruby/gems/${RUBYVERSION}"
 	mkdir -p "${D}/${gem_home}" || die "mkdir gem home failed"
 
 	emake V=1 DESTDIR="${D}" GEM_DESTDIR=${gem_home} install || die "make install failed"

diff --git a/dev-lang/ruby/ruby-2.6.1.ebuild b/dev-lang/ruby/ruby-2.6.1.ebuild
index 5af2c30ac97..9ab0d7c1a5d 100644
--- a/dev-lang/ruby/ruby-2.6.1.ebuild
+++ b/dev-lang/ruby/ruby-2.6.1.ebuild
@@ -191,7 +191,7 @@ src_install() {
 	export LD_LIBRARY_PATH RUBYLIB
 
 	# Create directory for the default gems
-	local gem_home="/usr/$(get_libdir)/ruby/gems/${RUBYVERSION}"
+	local gem_home="${EPREFIX}/usr/$(get_libdir)/ruby/gems/${RUBYVERSION}"
 	mkdir -p "${D}/${gem_home}" || die "mkdir gem home failed"
 
 	emake V=1 DESTDIR="${D}" GEM_DESTDIR=${gem_home} install || die "make install failed"