/[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.19 Revision 1.20
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.19 2010/05/22 13:15:40 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.20 2010/05/24 07:33:35 flameeyes 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#
140_ruby_wrap_conditions() { 140_ruby_wrap_conditions() {
141 local conditions="$1" 141 local conditions="$1"
142 local atoms="$2" 142 local atoms="$2"
143 143
144 for condition in $conditions; do 144 for condition in $conditions; do
145 hasq $condition "$IUSE" || IUSE="${IUSE} $condition"
146 atoms="${condition}? ( ${atoms} )" 145 atoms="${condition}? ( ${atoms} )"
147 done 146 done
148 147
149 echo "$atoms" 148 echo "$atoms"
150} 149}
178 177
179 RDEPEND="${RDEPEND} $dependency" 178 RDEPEND="${RDEPEND} $dependency"
180 179
181 # Add the dependency as a test-dependency since we're going to 180 # Add the dependency as a test-dependency since we're going to
182 # execute the code during test phase. 181 # execute the code during test phase.
183 DEPEND="${DEPEND} $(_ruby_wrap_conditions test "${dependency}")" 182 DEPEND="${DEPEND} test? ( ${dependency} )"
183 hasq test "$IUSE" || IUSE="${IUSE} test"
184} 184}
185 185
186# @FUNCTION: ruby_add_bdepend 186# @FUNCTION: ruby_add_bdepend
187# @USAGE: dependencies 187# @USAGE: dependencies
188# @DESCRIPTION: 188# @DESCRIPTION:

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.20