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

Diff of /eclass/ruby-ng.eclass

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

Revision 1.8 Revision 1.9
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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/ruby-ng.eclass,v 1.8 2010/01/15 12:58:20 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.9 2010/04/02 20:26:21 a3li Exp $
4# 4#
5# @ECLASS: ruby-ng.eclass 5# @ECLASS: ruby-ng.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Ruby herd <ruby@gentoo.org> 7# Ruby herd <ruby@gentoo.org>
8# 8#
242 local invoked=no 242 local invoked=no
243 for _ruby_implementation in ${USE_RUBY}; do 243 for _ruby_implementation in ${USE_RUBY}; do
244 # only proceed if it's requested 244 # only proceed if it's requested
245 use ruby_targets_${_ruby_implementation} || continue 245 use ruby_targets_${_ruby_implementation} || continue
246 246
247 local _ruby_name=$_ruby_implementation
248
249 # Add all USE_RUBY values where the flag name diverts from the binary here
250 case $_ruby_implementation in
251 ree18)
252 _ruby_name=rubyee18
253 ;;
254 esac
255
247 RUBY=$(type -p $_ruby_implementation 2>/dev/null) 256 RUBY=$(type -p $_ruby_name 2>/dev/null)
248 invoked=yes 257 invoked=yes
249 258
250 if [[ -n "$1" ]]; then 259 if [[ -n "$1" ]]; then
251 _ruby_invoke_environment $_ruby_implementation "$@" 260 _ruby_invoke_environment $_ruby_implementation "$@"
252 fi 261 fi

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20