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

Diff of /eclass/gems.eclass

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

Revision 1.9 Revision 1.10
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.9 2006/06/15 12:40:08 caleb Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/gems.eclass,v 1.10 2006/12/29 16:56:33 pclouds 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
43gems_src_install() { 43gems_src_install() {
44 gems_location 44 gems_location
45 45
46 if [ -z "${MY_P}" ]; then 46 if [ -z "${MY_P}" ]; then
47 GEM_SRC=${DISTDIR}/${P} 47 GEM_SRC=${DISTDIR}/${P}
48 spec_path=${D}/${GEMSDIR}/specifications/${P}.gemspec
48 else 49 else
49 GEM_SRC=${DISTDIR}/${MY_P} 50 GEM_SRC=${DISTDIR}/${MY_P}
51 spec_path=${D}/${GEMSDIR}/specifications/${MY_P}.gemspec
50 fi 52 fi
51 53
52 if use doc; then 54 if use doc; then
53 myconf="--rdoc" 55 myconf="--rdoc"
54 else 56 else
55 myconf="--no-rdoc" 57 myconf="--no-rdoc"
56 fi 58 fi
57 59
58 dodir ${GEMSDIR} 60 dodir ${GEMSDIR}
59 gem install ${GEM_SRC} -v ${PV} ${myconf} -l -i ${D}/${GEMSDIR} || die "gem install failed" 61 gem install ${GEM_SRC} -v ${PV} ${myconf} -l -i ${D}/${GEMSDIR} || die "gem install failed"
62
63 # This is a workaround for <=rubygems-0.9.0.8 because it's exitstatus equals 0
64 # even if the dependencies are not found. So we are testing if rubygems at
65 # least installed the gemspec (which should always occur otherwise).
66 # See bug #104733
67 test -f ${spec_path} || die "gem install failed"
60 68
61 if [ -d ${D}/${GEMSDIR}/bin ] ; then 69 if [ -d ${D}/${GEMSDIR}/bin ] ; then
62 exeinto /usr/bin 70 exeinto /usr/bin
63 for exe in ${D}/${GEMSDIR}/bin/* ; do 71 for exe in ${D}/${GEMSDIR}/bin/* ; do
64 doexe ${exe} 72 doexe ${exe}

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20