Check if the jruby is also in IUSE before checking if it is enabled.
authorTomas Chvatal <scarabeus@gentoo.org>
Sat, 22 Oct 2011 10:08:44 +0000 (10:08 +0000)
committerTomas Chvatal <scarabeus@gentoo.org>
Sat, 22 Oct 2011 10:08:44 +0000 (10:08 +0000)
eclass/ruby-ng.eclass

index 87b9ca915b924f3f691ee33aea8e1a65e1452e74..d31253b5081791a7923497cefe0bff141396cfee 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.41 2011/10/21 06:48:24 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.42 2011/10/22 10:08:44 scarabeus Exp $
 
 # @ECLASS: ruby-ng.eclass
 # @MAINTAINER:
@@ -400,7 +400,7 @@ ruby-ng_pkg_setup() {
        # it's a special case.
        _ruby_each_implementation
 
-       use ruby_targets_jruby && java-pkg_setup-vm
+       has ruby_targets_jruby ${IUSE} && use ruby_targets_jruby && java-pkg_setup-vm
 }
 
 # @FUNCTION: ruby-ng_src_unpack