summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyen Thai Ngoc Duy <pclouds@gentoo.org>2007-01-26 15:53:18 +0000
committerNguyen Thai Ngoc Duy <pclouds@gentoo.org>2007-01-26 15:53:18 +0000
commit34918252f306015c493c7a786bffa0f4177935c7 (patch)
treeb745f49a84ad1091e9ed260528d5743e86d5297c /eclass/ruby.eclass
parentMarked ~hppa (bug #152713). (diff)
downloadgentoo-2-34918252f306015c493c7a786bffa0f4177935c7.tar.gz
gentoo-2-34918252f306015c493c7a786bffa0f4177935c7.tar.bz2
gentoo-2-34918252f306015c493c7a786bffa0f4177935c7.zip
Fixed #159922
Diffstat (limited to 'eclass/ruby.eclass')
-rw-r--r--eclass/ruby.eclass14
1 files changed, 13 insertions, 1 deletions
diff --git a/eclass/ruby.eclass b/eclass/ruby.eclass
index 660df3a39dcc..8435feb4c585 100644
--- a/eclass/ruby.eclass
+++ b/eclass/ruby.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ruby.eclass,v 1.58 2007/01/21 07:38:43 pclouds Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby.eclass,v 1.59 2007/01/26 15:53:18 pclouds Exp $
#
# Author: Mamoru KOMACHI <usata@gentoo.org>
#
@@ -61,6 +61,18 @@ fi
ruby_src_unpack() {
+ if [ ! -x /bin/install -a -x /usr/bin/install ]; then
+ cat <<END >${T}/mkmf.rb
+require 'mkmf'
+
+STDERR.puts 'patching mkmf'
+CONFIG['INSTALL'] = '/usr/bin/install'
+END
+ # save it because rubygems needs it (for unsetting RUBYOPT)
+ export GENTOO_RUBYOPT="-r${T}/mkmf.rb"
+ export RUBYOPT="${RUBYOPT} ${GENTOO_RUBYOPT}"
+ fi
+
unpack ${A}
cd ${S}
# apply bulk patches