summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNguyen Thai Ngoc Duy <pclouds@gentoo.org>2007-01-04 05:43:52 +0000
committerNguyen Thai Ngoc Duy <pclouds@gentoo.org>2007-01-04 05:43:52 +0000
commit89986ac03c432d6172e2375948346db956904ae2 (patch)
treec893cc717c1be97c326736d9a5702d11e8d770c0 /eclass/gems.eclass
parentstable on ppc64 (diff)
downloadgentoo-2-89986ac03c432d6172e2375948346db956904ae2.tar.gz
gentoo-2-89986ac03c432d6172e2375948346db956904ae2.tar.bz2
gentoo-2-89986ac03c432d6172e2375948346db956904ae2.zip
Do not use --[no-]ri with <rubygems-0.9 in gems.eclass
Diffstat (limited to 'eclass/gems.eclass')
-rw-r--r--eclass/gems.eclass17
1 files changed, 13 insertions, 4 deletions
diff --git a/eclass/gems.eclass b/eclass/gems.eclass
index 57c0eeb30c7c..f5140f65c91a 100644
--- a/eclass/gems.eclass
+++ b/eclass/gems.eclass
@@ -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.11 2006/12/30 16:40:11 pclouds Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gems.eclass,v 1.12 2007/01/04 05:43:52 pclouds Exp $
#
# Author: Rob Cakebread <pythonhead@gentoo.org>
# Current Maintainer: Ruby Herd <ruby@gentoo.org>
@@ -51,13 +51,22 @@ gems_src_install() {
spec_path=${D}/${GEMSDIR}/specifications/${MY_P}.gemspec
fi
- # RI documentation installation: bug #145222
if use doc; then
- myconf="--rdoc --ri"
+ myconf="--rdoc"
else
- myconf="--no-rdoc --no-ri"
+ myconf="--no-rdoc"
fi
+ # RI documentation installation: bug #145222
+ if gem --version|grep -q ^0.9; then
+ if use doc; then
+ myconf="--ri ${myconf}"
+ else
+ myconf="--no-ri ${myconf}"
+ fi
+ fi
+
+
dodir ${GEMSDIR}
gem install ${GEM_SRC} -v ${PV} ${myconf} -l -i ${D}/${GEMSDIR} || die "gem install failed"