diff options
author | Richard Brown <rbrown@gentoo.org> | 2008-01-11 00:22:03 +0000 |
---|---|---|
committer | Richard Brown <rbrown@gentoo.org> | 2008-01-11 00:22:03 +0000 |
commit | af4c6c7427064666f053c0b33684f0fb3b7f09f1 (patch) | |
tree | 097d6cf5e1822e83def9bea802421b9764c5d520 /eclass/gems.eclass | |
parent | amd64 stable (diff) | |
download | historical-af4c6c7427064666f053c0b33684f0fb3b7f09f1.tar.gz historical-af4c6c7427064666f053c0b33684f0fb3b7f09f1.tar.bz2 historical-af4c6c7427064666f053c0b33684f0fb3b7f09f1.zip |
Fix version doc check
Diffstat (limited to 'eclass/gems.eclass')
-rw-r--r-- | eclass/gems.eclass | 7 |
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}" |