Add explicit dependencies on dev-ruby/rdoc for USE=doc.
Normally these are satified by dev-lang/ruby, but this
happens in PDEPEND. During an initial merge of ruby the
order of dev-ruby/rdoc and dev-ruby/json is not defined
so the emerging json may fail due to a missing rdoc.
Fixes bug 572042
Package-Manager: portage-2.2.28
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
DEPEND="${DEPEND}
dev-util/ragel"
-ruby_add_bdepend "dev-ruby/rake"
+ruby_add_bdepend "dev-ruby/rake
+ doc? ( dev-ruby/rdoc )"
all_ruby_prepare() {
# Avoid building the extension twice!
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
DEPEND="${DEPEND}
dev-util/ragel"
-ruby_add_bdepend "dev-ruby/rake"
+ruby_add_bdepend "dev-ruby/rake
+ doc? ( dev-ruby/rdoc )"
all_ruby_prepare() {
# Avoid building the extension twice!