From d39c1dedd61500fddd180e91fe17fdab2968ebaa Mon Sep 17 00:00:00 2001 From: Nguyen Thai Ngoc Duy Date: Thu, 4 Jan 2007 05:43:52 +0000 Subject: [PATCH] Do not use --[no-]ri with # Current Maintainer: Ruby Herd @@ -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" -- 2.26.2