| 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/gems.eclass,v 1.12 2007/01/04 05:43:52 pclouds Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gems.eclass,v 1.13 2007/01/04 19:00:47 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 |
| … | |
… | |
| 66 | fi |
66 | fi |
| 67 | fi |
67 | fi |
| 68 | |
68 | |
| 69 | |
69 | |
| 70 | dodir ${GEMSDIR} |
70 | dodir ${GEMSDIR} |
| 71 | gem install ${GEM_SRC} -v ${PV} ${myconf} -l -i ${D}/${GEMSDIR} || die "gem install failed" |
71 | 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}" |
| 72 | |
72 | |
| 73 | # This is a workaround for <=rubygems-0.9.0.8 because it's exitstatus equals 0 |
73 | # This is a workaround for <=rubygems-0.9.0.8 because it's exitstatus equals 0 |
| 74 | # even if the dependencies are not found. So we are testing if rubygems at |
74 | # even if the dependencies are not found. So we are testing if rubygems at |
| 75 | # least installed the gemspec (which should always occur otherwise). |
75 | # least installed the gemspec (which should always occur otherwise). |
| 76 | # See bug #104733 |
76 | # See bug #104733 |