summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-07-19 16:21:12 +0000
committerMamoru Komachi <usata@gentoo.org>2004-07-19 16:21:12 +0000
commitaf9dba3accf832ba95d9764e90050a4a44ac2481 (patch)
tree48010c831e04b669e374a333cbc7c1bb20979d72 /eclass/ruby.eclass
parentupdated bison to use gnuconfig.eclass. Needed for uclibc and mayber others. (... (diff)
downloadgentoo-2-af9dba3accf832ba95d9764e90050a4a44ac2481.tar.gz
gentoo-2-af9dba3accf832ba95d9764e90050a4a44ac2481.tar.bz2
gentoo-2-af9dba3accf832ba95d9764e90050a4a44ac2481.zip
Added macos support
Diffstat (limited to 'eclass/ruby.eclass')
-rw-r--r--eclass/ruby.eclass6
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"