ruby-ng.eclass: Add support for targets with different flag and executable names...
authorAlex Legler <a3li@gentoo.org>
Fri, 2 Apr 2010 20:26:21 +0000 (20:26 +0000)
committerAlex Legler <a3li@gentoo.org>
Fri, 2 Apr 2010 20:26:21 +0000 (20:26 +0000)
eclass/ruby-ng.eclass

index 2c3d539ed8475515f3d7115d4b4956f1199a0375..407e3077f0b5072c1978c25507d66e6d7aff120d 100644 (file)
@@ -1,6 +1,6 @@
 # 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:
@@ -244,7 +244,16 @@ _ruby_each_implementation() {
                # 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