/[gentoo-x86]/eclass/gems.eclass
Gentoo

Diff of /eclass/gems.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.21 Revision 1.23
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/gems.eclass,v 1.21 2008/02/17 08:49:19 rbrown Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/gems.eclass,v 1.23 2008/11/14 13:56:56 graaff Exp $
4# 4#
5# Author: Rob Cakebread <pythonhead@gentoo.org> 5# Author: Rob Cakebread <pythonhead@gentoo.org>
6# Current Maintainer: Ruby Herd <ruby@gentoo.org> 6# Current Maintainer: Ruby Herd <ruby@gentoo.org>
7# 7#
8# The gems eclass is designed to allow easier installation of 8# The gems eclass is designed to allow easier installation of
63 else 63 else
64 myconf="--no-rdoc --no-ri" 64 myconf="--no-rdoc --no-ri"
65 fi 65 fi
66 66
67 dodir ${GEMSDIR} 67 dodir ${GEMSDIR}
68
69 local gte13=$(${RUBY} -rubygems -e 'puts Gem::RubyGemsVersion >= "1.3.0"')
70
71 if [[ "${gte13}" == "true" ]] ; then
68 gem install ${GEM_SRC} --version ${PV} ${myconf} \ 72 gem install ${GEM_SRC} --version ${PV} ${myconf} \
73 --local --install-dir "${D}/${GEMSDIR}" --sandbox-fix \
74 || die "gem (>=1.3.0) install failed"
75 else
76 gem install ${GEM_SRC} --version ${PV} ${myconf} \
69 --local --install-dir "${D}/${GEMSDIR}" || die "gem install failed" 77 --local --install-dir "${D}/${GEMSDIR}" || die "gem (<1.3.0) install failed"
78 fi
70 79
71 if [[ -d "${D}/${GEMSDIR}/bin" ]] ; then 80 if [[ -d "${D}/${GEMSDIR}/bin" ]] ; then
72 exeinto /usr/bin 81 exeinto /usr/bin
73 for exe in ${D}/${GEMSDIR}/bin/* ; do 82 for exe in ${D}/${GEMSDIR}/bin/* ; do
74 doexe ${exe} 83 doexe ${exe}

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.20