diff options
-rw-r--r-- | eclass/ruby.eclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/eclass/ruby.eclass b/eclass/ruby.eclass index 1c039cc4c12d..e50dc30884a2 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.36 2004/07/04 12:13:07 usata Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ruby.eclass,v 1.37 2004/07/19 16:21:12 usata Exp $ # # Author: Mamoru KOMACHI <usata@gentoo.org> # @@ -187,7 +187,9 @@ prepall() { [[ ! -x /usr/bin/ruby18 ]] && export USE_RUBY=${USE_RUBY/ruby18/} [[ ! -x /usr/bin/ruby19 ]] && export USE_RUBY=${USE_RUBY/ruby19/} - if [ $(echo "${USE_RUBY}" | wc -w) -ge 2 ] ; then + local ruby_slots=$(echo "${USE_RUBY}" | wc -w) + + if [ "$ruby_slots" -ge 2 -o $(use macos) -a "$ruby_slots" -ge 1 ] ; then einfo "Now we are building the package for ${USE_RUBY}" for rb in ${USE_RUBY} ruby ; do einfo "Using $rb" |