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
commit3de97859079513ae943b7e41e0e5f4d0593df47b (patch)
tree8ec22f23fcf14085f89c4a619c79eb0ca04c50a3 /eclass/ruby.eclass
parentCleanups, comments, stable change, warning (diff)
downloadhistorical-3de97859079513ae943b7e41e0e5f4d0593df47b.tar.gz
historical-3de97859079513ae943b7e41e0e5f4d0593df47b.tar.bz2
historical-3de97859079513ae943b7e41e0e5f4d0593df47b.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