diff options
author | Alex Legler <a3li@gentoo.org> | 2010-04-02 20:26:21 +0000 |
---|---|---|
committer | Alex Legler <a3li@gentoo.org> | 2010-04-02 20:26:21 +0000 |
commit | 8ebb1dc77e45739dbb17219426ad69b5902012e1 (patch) | |
tree | 9e9b3711d559978c423962bbb7b27044c6b018aa /eclass | |
parent | php herd does not maintain this (diff) | |
download | gentoo-2-8ebb1dc77e45739dbb17219426ad69b5902012e1.tar.gz gentoo-2-8ebb1dc77e45739dbb17219426ad69b5902012e1.tar.bz2 gentoo-2-8ebb1dc77e45739dbb17219426ad69b5902012e1.zip |
ruby-ng.eclass: Add support for targets with different flag and executable names. Implement this feature for Ruby Enterprise Edition 1.8.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ruby-ng.eclass | 13 |
1 files changed, 11 insertions, 2 deletions
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 |