summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorRichard Brown <rbrown@gentoo.org>2008-01-11 00:22:03 +0000
committerRichard Brown <rbrown@gentoo.org>2008-01-11 00:22:03 +0000
commitb50aef1204d4095d15805983f2014d91aa0c73ae (patch)
treeba5e80f5b03bfd22b08ce056da4265bc6f448019 /eclass
parentamd64 stable (diff)
downloadgentoo-2-b50aef1204d4095d15805983f2014d91aa0c73ae.tar.gz
gentoo-2-b50aef1204d4095d15805983f2014d91aa0c73ae.tar.bz2
gentoo-2-b50aef1204d4095d15805983f2014d91aa0c73ae.zip
Fix version doc check
Diffstat (limited to 'eclass')
-rw-r--r--eclass/gems.eclass7
1 files changed, 3 insertions, 4 deletions
diff --git a/eclass/gems.eclass b/eclass/gems.eclass
index f5615b0478d6..1bc87573e375 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.18 2007/09/17 04:59:29 nichoj Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gems.eclass,v 1.19 2008/01/11 00:22:03 rbrown Exp $
#
# Author: Rob Cakebread <pythonhead@gentoo.org>
# Current Maintainer: Ruby Herd <ruby@gentoo.org>
@@ -19,7 +19,7 @@
# See http://dev.gentoo.org/~pythonhead/ruby/gems.html for notes on using gems with portage
-inherit ruby eutils
+inherit eutils ruby versionator
SRC_URI="http://gems.rubyforge.org/gems/${P}.gem"
@@ -61,7 +61,7 @@ gems_src_install() {
fi
# RI documentation installation: bug #145222
- if gem --version|grep -q ^0.9; then
+ if version_is_at_least "0.9" $(gem --version); then
if use doc; then
myconf="--ri ${myconf}"
else
@@ -69,7 +69,6 @@ gems_src_install() {
fi
fi
-
dodir ${GEMSDIR}
gem install ${GEM_SRC} -v ${PV} ${myconf} -l -i ${D}/${GEMSDIR} || die "gem install failed: gem-$(gem --version) install ${GEM_SRC} -v ${PV} ${myconf} -l -i ${D}/${GEMSDIR}"