summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2003-11-16 21:36:33 +0000
committerMamoru Komachi <usata@gentoo.org>2003-11-16 21:36:33 +0000
commita873ffd1958ed5105c8f730a78cb68c0403f20e2 (patch)
tree05227666aa602526c6d49db28f439c644aaf6da2 /eclass/ruby.eclass
parentCleanups, comments, stable change, warning (diff)
downloadgentoo-2-a873ffd1958ed5105c8f730a78cb68c0403f20e2.tar.gz
gentoo-2-a873ffd1958ed5105c8f730a78cb68c0403f20e2.tar.bz2
gentoo-2-a873ffd1958ed5105c8f730a78cb68c0403f20e2.zip
Pass RUBY as an argument to erubymake when USE_RUBY is specified
Diffstat (limited to 'eclass/ruby.eclass')
-rw-r--r--eclass/ruby.eclass10
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/ruby.eclass b/eclass/ruby.eclass
index 3c2985079024..fd0f8bab7405 100644
--- a/eclass/ruby.eclass
+++ b/eclass/ruby.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ruby.eclass,v 1.15 2003/11/16 19:27:24 usata Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby.eclass,v 1.16 2003/11/16 21:36:33 usata Exp $
#
# Author: Mamoru KOMACHI <usata@gentoo.org>
#
@@ -135,12 +135,12 @@ ruby_emake() {
cd -
elif [[ "${WITH_RUBY/ruby16/}" != "${WITH_RUBY}" ]] ; then
einfo "running emake for ruby 1.6 ;)"
- [[ -x /usr/bin/ruby16 ]] && alias ruby ruby16
- erubymake $@
+ [[ -x /usr/bin/ruby16 ]] && RUBY=ruby16 || RUBY=ruby
+ erubymake RUBY=${RUBY} $@
elif [[ "${WITH_RUBY/ruby18/}" != "${WITH_RUBY}" ]] ; then
einfo "running emake for ruby 1.8 ;)"
- [[ -x /usr/bin/ruby18 ]] && alias ruby ruby18
- erubymake $@
+ [[ -x /usr/bin/ruby18 ]] && RUBY=ruby18 || RUBY=ruby
+ erubymake RUBY=${RUBY} $@
else
einfo "running emake for ruby ;)"
erubymake $@ || die