From 8ebb1dc77e45739dbb17219426ad69b5902012e1 Mon Sep 17 00:00:00 2001 From: Alex Legler Date: Fri, 2 Apr 2010 20:26:21 +0000 Subject: ruby-ng.eclass: Add support for targets with different flag and executable names. Implement this feature for Ruby Enterprise Edition 1.8. --- eclass/ruby-ng.eclass | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'eclass') diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass index 2c3d539ed847..407e3077f0b5 100644 --- a/eclass/ruby-ng.eclass +++ b/eclass/ruby-ng.eclass @@ -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 -- cgit v1.2.3-65-gdbad