/[gentoo-x86]/eclass/ruby.eclass
Gentoo

Diff of /eclass/ruby.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.36 Revision 1.37
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/ruby.eclass,v 1.36 2004/07/04 12:13:07 usata Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/ruby.eclass,v 1.37 2004/07/19 16:21:12 usata Exp $
4# 4#
5# Author: Mamoru KOMACHI <usata@gentoo.org> 5# Author: Mamoru KOMACHI <usata@gentoo.org>
6# 6#
7# The ruby eclass is designed to allow easier installation of ruby 7# The ruby eclass is designed to allow easier installation of ruby
8# softwares, and their incorporation into the Gentoo Linux system. 8# softwares, and their incorporation into the Gentoo Linux system.
185 185
186 [[ ! -x /usr/bin/ruby16 ]] && export USE_RUBY=${USE_RUBY/ruby16/} 186 [[ ! -x /usr/bin/ruby16 ]] && export USE_RUBY=${USE_RUBY/ruby16/}
187 [[ ! -x /usr/bin/ruby18 ]] && export USE_RUBY=${USE_RUBY/ruby18/} 187 [[ ! -x /usr/bin/ruby18 ]] && export USE_RUBY=${USE_RUBY/ruby18/}
188 [[ ! -x /usr/bin/ruby19 ]] && export USE_RUBY=${USE_RUBY/ruby19/} 188 [[ ! -x /usr/bin/ruby19 ]] && export USE_RUBY=${USE_RUBY/ruby19/}
189 189
190 if [ $(echo "${USE_RUBY}" | wc -w) -ge 2 ] ; then 190 local ruby_slots=$(echo "${USE_RUBY}" | wc -w)
191
192 if [ "$ruby_slots" -ge 2 -o $(use macos) -a "$ruby_slots" -ge 1 ] ; then
191 einfo "Now we are building the package for ${USE_RUBY}" 193 einfo "Now we are building the package for ${USE_RUBY}"
192 for rb in ${USE_RUBY} ruby ; do 194 for rb in ${USE_RUBY} ruby ; do
193 einfo "Using $rb" 195 einfo "Using $rb"
194 export RUBY=/usr/bin/$rb 196 export RUBY=/usr/bin/$rb
195 ruby() { /usr/bin/$rb "$@" ; } 197 ruby() { /usr/bin/$rb "$@" ; }

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

  ViewVC Help
Powered by ViewVC 1.1.20