diff options
author | Nguyen Thai Ngoc Duy <pclouds@gentoo.org> | 2007-01-04 05:43:52 +0000 |
---|---|---|
committer | Nguyen Thai Ngoc Duy <pclouds@gentoo.org> | 2007-01-04 05:43:52 +0000 |
commit | d39c1dedd61500fddd180e91fe17fdab2968ebaa (patch) | |
tree | a7bfd282d4cab874e593d6c49bf3548779a0cb2e /eclass/gems.eclass | |
parent | stable on ppc64 (diff) | |
download | historical-d39c1dedd61500fddd180e91fe17fdab2968ebaa.tar.gz historical-d39c1dedd61500fddd180e91fe17fdab2968ebaa.tar.bz2 historical-d39c1dedd61500fddd180e91fe17fdab2968ebaa.zip |
Do not use --[no-]ri with <rubygems-0.9 in gems.eclass
Diffstat (limited to 'eclass/gems.eclass')
-rw-r--r-- | eclass/gems.eclass | 17 |
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" |