| 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.7 2009/12/25 18:01:34 flameeyes Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.8 2010/01/15 12:58:20 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 | # |
| … | |
… | |
| 119 | _ruby_add_bdepend() { |
119 | _ruby_add_bdepend() { |
| 120 | local atom=$1 |
120 | local atom=$1 |
| 121 | local conditions=$2 |
121 | local conditions=$2 |
| 122 | |
122 | |
| 123 | for condition in $conditions; do |
123 | for condition in $conditions; do |
|
|
124 | hasq $condition "$IUSE" || IUSE="${IUSE} $condition" |
| 124 | atom="${condition}? ( ${atom} )" |
125 | atom="${condition}? ( ${atom} )" |
| 125 | done |
126 | done |
| 126 | |
127 | |
| 127 | DEPEND="${DEPEND} ${atom}" |
128 | DEPEND="${DEPEND} ${atom}" |
| 128 | RDEPEND="${RDEPEND}" |
129 | RDEPEND="${RDEPEND}" |
| … | |
… | |
| 131 | _ruby_add_rdepend() { |
132 | _ruby_add_rdepend() { |
| 132 | local atom=$1 |
133 | local atom=$1 |
| 133 | local conditions=$2 |
134 | local conditions=$2 |
| 134 | |
135 | |
| 135 | for condition in $conditions; do |
136 | for condition in $conditions; do |
|
|
137 | hasq $condition "$IUSE" || IUSE="${IUSE} $condition" |
| 136 | atom="${condition}? ( ${atom} )" |
138 | atom="${condition}? ( ${atom} )" |
| 137 | done |
139 | done |
| 138 | |
140 | |
| 139 | RDEPEND="${RDEPEND} ${atom}" |
141 | RDEPEND="${RDEPEND} ${atom}" |
| 140 | _ruby_add_bdepend "$atom" test |
142 | _ruby_add_bdepend "$atom" test |