Gentoo Archives: gentoo-commits

From: "Richard Brown (rbrown)" <rbrown@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: gems.eclass
Date: Fri, 11 Jan 2008 00:22:07
Message-Id: E1JD7eu-0008Kx-3G@stork.gentoo.org
1 rbrown 08/01/11 00:22:04
2
3 Modified: gems.eclass
4 Log:
5 Fix version doc check
6
7 Revision Changes Path
8 1.19 eclass/gems.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gems.eclass?rev=1.19&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gems.eclass?rev=1.19&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/gems.eclass?r1=1.18&r2=1.19
13
14 Index: gems.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/gems.eclass,v
17 retrieving revision 1.18
18 retrieving revision 1.19
19 diff -u -r1.18 -r1.19
20 --- gems.eclass 17 Sep 2007 04:59:29 -0000 1.18
21 +++ gems.eclass 11 Jan 2008 00:22:03 -0000 1.19
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2005 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/gems.eclass,v 1.18 2007/09/17 04:59:29 nichoj Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/gems.eclass,v 1.19 2008/01/11 00:22:03 rbrown Exp $
27 #
28 # Author: Rob Cakebread <pythonhead@g.o>
29 # Current Maintainer: Ruby Herd <ruby@g.o>
30 @@ -19,7 +19,7 @@
31 # See http://dev.gentoo.org/~pythonhead/ruby/gems.html for notes on using gems with portage
32
33
34 -inherit ruby eutils
35 +inherit eutils ruby versionator
36
37 SRC_URI="http://gems.rubyforge.org/gems/${P}.gem"
38
39 @@ -61,7 +61,7 @@
40 fi
41
42 # RI documentation installation: bug #145222
43 - if gem --version|grep -q ^0.9; then
44 + if version_is_at_least "0.9" $(gem --version); then
45 if use doc; then
46 myconf="--ri ${myconf}"
47 else
48 @@ -69,7 +69,6 @@
49 fi
50 fi
51
52 -
53 dodir ${GEMSDIR}
54 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}"
55
56
57
58
59 --
60 gentoo-commits@l.g.o mailing list