doc useflag should check for RI doc too, #145222
authorNguyen Thai Ngoc Duy <pclouds@gentoo.org>
Sat, 30 Dec 2006 16:40:11 +0000 (16:40 +0000)
committerNguyen Thai Ngoc Duy <pclouds@gentoo.org>
Sat, 30 Dec 2006 16:40:11 +0000 (16:40 +0000)
eclass/gems.eclass

index a03d021423cf90efe3d9ced3ce9954dedf99fb52..57c0eeb30c7ca1d2e4660e38f5dcbf0b36b09fca 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gems.eclass,v 1.10 2006/12/29 16:56:33 pclouds Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gems.eclass,v 1.11 2006/12/30 16:40:11 pclouds Exp $
 #
 # Author: Rob Cakebread <pythonhead@gentoo.org>
 # Current Maintainer: Ruby Herd <ruby@gentoo.org>
@@ -51,10 +51,11 @@ gems_src_install() {
                spec_path=${D}/${GEMSDIR}/specifications/${MY_P}.gemspec
        fi
 
+       # RI documentation installation: bug #145222
        if use doc; then
-               myconf="--rdoc"
+               myconf="--rdoc --ri"
        else
-               myconf="--no-rdoc"
+               myconf="--no-rdoc --no-ri"
        fi
 
        dodir ${GEMSDIR}