summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2019-02-19 15:52:35 +0100
committerFabian Groffen <grobian@gentoo.org>2019-02-19 15:52:35 +0100
commit71b9a96cba6cc3db2d4629d907f729e7a08666eb (patch)
treed8aee3a17ef097b39e2f00c3e90d4cd852143e31
parentdev-lang/perl: fix linking on Solaris, bug #677676 (diff)
downloadgentoo-71b9a96cba6cc3db2d4629d907f729e7a08666eb.tar.gz
gentoo-71b9a96cba6cc3db2d4629d907f729e7a08666eb.tar.bz2
gentoo-71b9a96cba6cc3db2d4629d907f729e7a08666eb.zip
dev-lang/ruby: fix for Prefix by Madhu, bug #677878
Closes: https://bugs.gentoo.org/677878 Signed-off-by: Fabian Groffen <grobian@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
-rw-r--r--dev-lang/ruby/ruby-2.6.0-r1.ebuild2
-rw-r--r--dev-lang/ruby/ruby-2.6.1.ebuild2
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 8303c4eeaff7..3d4b93b41854 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 5af2c30ac970..9ab0d7c1a5d6 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"