diff options
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ruby-ng.eclass | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass index a63a285fd907..6a0d1419f810 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.36 2011/07/22 09:08:59 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.37 2011/07/22 09:10:22 graaff Exp $ # # @ECLASS: ruby-ng.eclass # @MAINTAINER: @@ -257,6 +257,17 @@ ruby_add_bdepend() { RDEPEND="${RDEPEND}" } +# @FUNCTION: ruby_get_use_implementations +# @DESCRIPTION: +# Gets an array of ruby use targets enabled by the user +ruby_get_use_implementations() { + local i implementation + for implementation in ${USE_RUBY}; do + use ruby_targets_${implementation} && i+=" ${implementation}" + done + echo $i +} + # @FUNCTION: ruby_get_use_targets # @DESCRIPTION: # Gets an array of ruby use targets that the ebuild sets |