# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.8 2010/01/15 12:58:20 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.9 2010/04/02 20:26:21 a3li Exp $
#
# @ECLASS: ruby-ng.eclass
# @MAINTAINER:
# only proceed if it's requested
use ruby_targets_${_ruby_implementation} || continue
- RUBY=$(type -p $_ruby_implementation 2>/dev/null)
+ local _ruby_name=$_ruby_implementation
+
+ # Add all USE_RUBY values where the flag name diverts from the binary here
+ case $_ruby_implementation in
+ ree18)
+ _ruby_name=rubyee18
+ ;;
+ esac
+
+ RUBY=$(type -p $_ruby_name 2>/dev/null)
invoked=yes
if [[ -n "$1" ]]; then