summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2006-07-07 14:09:47 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2006-07-07 14:09:47 +0000
commit51d23c9c79e29f418e37df70d2be104b7268810b (patch)
tree3325bed7241ef2376a6d46d31b97b34a50a35f9b /eclass/ruby.eclass
parentAdded || dependancy on x11-drivers/nvidia-drivers or x11-drivers/nvidia-legac... (diff)
downloadgentoo-2-51d23c9c79e29f418e37df70d2be104b7268810b.tar.gz
gentoo-2-51d23c9c79e29f418e37df70d2be104b7268810b.tar.bz2
gentoo-2-51d23c9c79e29f418e37df70d2be104b7268810b.zip
Add support to make ruby optional when inheriting the eclass.
Diffstat (limited to 'eclass/ruby.eclass')
-rw-r--r--eclass/ruby.eclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/eclass/ruby.eclass b/eclass/ruby.eclass
index f7f377f3ba8d..40a279962d5b 100644
--- a/eclass/ruby.eclass
+++ b/eclass/ruby.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ruby.eclass,v 1.53 2006/05/28 21:39:02 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby.eclass,v 1.54 2006/07/07 14:09:47 flameeyes Exp $
#
# Author: Mamoru KOMACHI <usata@gentoo.org>
#
@@ -48,7 +48,10 @@ IUSE="examples"
SLOT="0"
LICENSE="Ruby"
-DEPEND="virtual/ruby"
+# If you specify RUBY_OPTIONAL you also need to take care of ruby useflag and dependency.
+if [[ ${RUBY_OPTIONAL} != "yes" ]]; then
+ DEPEND="virtual/ruby"
+fi
[[ -z "${RUBY}" ]] && export RUBY=/usr/bin/ruby