dev-ruby/json: fix USE=doc during bootstrap
authorHans de Graaff <graaff@gentoo.org>
Mon, 16 May 2016 13:49:43 +0000 (15:49 +0200)
committerHans de Graaff <graaff@gentoo.org>
Mon, 16 May 2016 13:49:43 +0000 (15:49 +0200)
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

dev-ruby/json/json-1.8.2-r1.ebuild
dev-ruby/json/json-1.8.3.ebuild

index 09faec6ac8823a04187f994c1f9570133cca4f7f..46c28d674ef73a0def9e23889f578d96f8c436b3 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -25,7 +25,8 @@ RDEPEND="${RDEPEND}"
 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!
index 99a81bc47e1a1d0f56b5c6ba8ae7f36633098260..92d75b81415747ff50901932cd95ccb5ebcbfaf8 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -25,7 +25,8 @@ RDEPEND="${RDEPEND}"
 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!