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
commit8500257ac7a0aa9e3bc259d0f32279899ae42155 (patch)
tree6219c85f1a2838fbc19c58ddb926fac9bfd02351 /eclass/ruby.eclass
parentMarked ~hppa (bug #152713). (diff)
downloadhistorical-8500257ac7a0aa9e3bc259d0f32279899ae42155.tar.gz
historical-8500257ac7a0aa9e3bc259d0f32279899ae42155.tar.bz2
historical-8500257ac7a0aa9e3bc259d0f32279899ae42155.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