summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-01-15 12:58:20 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-01-15 12:58:20 +0000
commit05fd3b5a0491420a78ec0893be6ce80de69d1bb6 (patch)
tree6954aeabfc03bad7629ff6c6b6c957c06340a664 /eclass/ruby-ng.eclass
parentVersion bump. (diff)
downloadgentoo-2-05fd3b5a0491420a78ec0893be6ce80de69d1bb6.tar.gz
gentoo-2-05fd3b5a0491420a78ec0893be6ce80de69d1bb6.tar.bz2
gentoo-2-05fd3b5a0491420a78ec0893be6ce80de69d1bb6.zip
When adding a conditional dependency, make sure that the condition is in IUSE.
This in particular fixes the problem of test USE flag not declared when adding runtime dependencies.
Diffstat (limited to 'eclass/ruby-ng.eclass')
-rw-r--r--eclass/ruby-ng.eclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index 872763c5423d..2c3d539ed847 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.7 2009/12/25 18:01:34 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.8 2010/01/15 12:58:20 flameeyes Exp $
#
# @ECLASS: ruby-ng.eclass
# @MAINTAINER:
@@ -121,6 +121,7 @@ _ruby_add_bdepend() {
local conditions=$2
for condition in $conditions; do
+ hasq $condition "$IUSE" || IUSE="${IUSE} $condition"
atom="${condition}? ( ${atom} )"
done
@@ -133,6 +134,7 @@ _ruby_add_rdepend() {
local conditions=$2
for condition in $conditions; do
+ hasq $condition "$IUSE" || IUSE="${IUSE} $condition"
atom="${condition}? ( ${atom} )"
done