/[gentoo-x86]/eclass/ruby-ng.eclass
Gentoo

Diff of /eclass/ruby-ng.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.35 Revision 1.36
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.35 2011/07/19 05:48:09 graaff Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.36 2011/07/22 09:08:59 graaff Exp $
4# 4#
5# @ECLASS: ruby-ng.eclass 5# @ECLASS: ruby-ng.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Ruby herd <ruby@gentoo.org> 7# Ruby herd <ruby@gentoo.org>
8# 8#
254 local dependency=$(_ruby_atoms_samelib "$1") 254 local dependency=$(_ruby_atoms_samelib "$1")
255 255
256 DEPEND="${DEPEND} $dependency" 256 DEPEND="${DEPEND} $dependency"
257 RDEPEND="${RDEPEND}" 257 RDEPEND="${RDEPEND}"
258} 258}
259
260# @FUNCTION: ruby_get_use_targets
261# @DESCRIPTION:
262# Gets an array of ruby use targets that the ebuild sets
263ruby_get_use_targets() {
264 local t implementation
265 for implementation in ${USE_RUBY}; do
266 t+=" ruby_targets_${implementation}"
267 done
268 echo $t
269}
270
271if [[ ${EAPI:-0} -ge 4 && ${RUBY_OPTIONAL} != "yes" ]]; then
272 REQUIRED_USE=" || ( $(ruby_get_use_targets) )"
273fi
259 274
260for _ruby_implementation in $USE_RUBY; do 275for _ruby_implementation in $USE_RUBY; do
261 IUSE="${IUSE} ruby_targets_${_ruby_implementation}" 276 IUSE="${IUSE} ruby_targets_${_ruby_implementation}"
262 277
263 # If you specify RUBY_OPTIONAL you also need to take care of 278 # If you specify RUBY_OPTIONAL you also need to take care of

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

  ViewVC Help
Powered by ViewVC 1.1.20