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

Diff of /eclass/gems.eclass

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

Revision 1.26 Revision 1.27
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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.26 2009/05/23 12:22:06 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/gems.eclass,v 1.27 2009/07/05 16:46:05 graaff Exp $
4 4
5# @ECLASS: gems.eclass 5# @ECLASS: gems.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# ruby@gentoo.org 7# ruby@gentoo.org
8# 8#
23SRC_URI="mirror://rubyforge/gems/${P}.gem" 23SRC_URI="mirror://rubyforge/gems/${P}.gem"
24 24
25IUSE="doc" 25IUSE="doc"
26 26
27DEPEND=" 27DEPEND="
28 || ( >=dev-ruby/rubygems-0.9.4 =dev-lang/ruby-1.9* ) 28 || ( >=dev-ruby/rubygems-1.3.1 =dev-lang/ruby-1.9* )
29 !<dev-ruby/rdoc-2 29 !<dev-ruby/rdoc-2
30" 30"
31RDEPEND="${DEPEND}" 31RDEPEND="${DEPEND}"
32 32
33# @FUNCTION: gems_location 33# @FUNCTION: gems_location
110 fi 110 fi
111 111
112 # >=1.3.0 needs a path fix 112 # >=1.3.0 needs a path fix
113 local gte13=$(/usr/bin/${ruby_version} -rubygems -e 'puts Gem::RubyGemsVersion >= "1.3.0"') 113 local gte13=$(/usr/bin/${ruby_version} -rubygems -e 'puts Gem::RubyGemsVersion >= "1.3.0"')
114 114
115 if [[ "${gte13}" == "true" ]] ; then
116 /usr/bin/${ruby_version} /usr/bin/gem install ${GEM_SRC} \ 115 /usr/bin/${ruby_version} /usr/bin/gem install ${GEM_SRC} \
117 --version ${PV} ${myconf} --local --install-dir "${D}/${GEMSDIR}" \ 116 --version ${PV} ${myconf} --local --install-dir "${D}/${GEMSDIR}" \
118 --sandbox-fix --no-user-install || die "gem (>=1.3.0) install failed" 117 --sandbox-fix --no-user-install || die "gem (>=1.3.0) install failed"
119 else
120 /usr/bin/${ruby_version} /usr/bin/gem install ${GEM_SRC} \
121 --version ${PV} ${myconf} --local --install-dir "${D}/${GEMSDIR}" \
122 || die "gem (<1.3.0) install failed"
123 fi
124 118
125 if [[ -d "${D}/${GEMSDIR}/bin" ]] ; then 119 if [[ -d "${D}/${GEMSDIR}/bin" ]] ; then
126 exeinto /usr/bin 120 exeinto /usr/bin
127 for exe in "${D}"/${GEMSDIR}/bin/* ; do 121 for exe in "${D}"/${GEMSDIR}/bin/* ; do
128 if [ "$num_ruby_slots" -ge 2 ] ; then 122 if [ "$num_ruby_slots" -ge 2 ] ; then

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

  ViewVC Help
Powered by ViewVC 1.1.20