summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-05-24 07:33:35 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-05-24 07:33:35 +0000
commite22bf19fb36a107e6c66eec5397dd566e7e1abe9 (patch)
treea3fd567a240528bd4a394f9939b49b4840cec892 /eclass/ruby-ng.eclass
parentamd64 stable, bug 305935, thank Roeland Douma for tests. (diff)
downloadhistorical-e22bf19fb36a107e6c66eec5397dd566e7e1abe9.tar.gz
historical-e22bf19fb36a107e6c66eec5397dd566e7e1abe9.tar.bz2
historical-e22bf19fb36a107e6c66eec5397dd566e7e1abe9.zip
Avoid touching IUSE in _ruby_wrap_conditions; set the test USE flag
directly into the ruby_add_rdepend function to avoid subshell handling.
Diffstat (limited to 'eclass/ruby-ng.eclass')
-rw-r--r--eclass/ruby-ng.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/ruby-ng.eclass b/eclass/ruby-ng.eclass
index 841360538f7e..0be2cfe47107 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.19 2010/05/22 13:15:40 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.20 2010/05/24 07:33:35 flameeyes Exp $
#
# @ECLASS: ruby-ng.eclass
# @MAINTAINER:
@@ -142,7 +142,6 @@ _ruby_wrap_conditions() {
local atoms="$2"
for condition in $conditions; do
- hasq $condition "$IUSE" || IUSE="${IUSE} $condition"
atoms="${condition}? ( ${atoms} )"
done
@@ -180,7 +179,8 @@ ruby_add_rdepend() {
# Add the dependency as a test-dependency since we're going to
# execute the code during test phase.
- DEPEND="${DEPEND} $(_ruby_wrap_conditions test "${dependency}")"
+ DEPEND="${DEPEND} test? ( ${dependency} )"
+ hasq test "$IUSE" || IUSE="${IUSE} test"
}
# @FUNCTION: ruby_add_bdepend