| 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.20 2008/01/16 05:52:20 nichoj Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gems.eclass,v 1.21 2008/02/17 08:49:19 rbrown 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 |
| … | |
… | |
| 23 | |
23 | |
| 24 | SRC_URI="http://gems.rubyforge.org/gems/${P}.gem" |
24 | SRC_URI="http://gems.rubyforge.org/gems/${P}.gem" |
| 25 | |
25 | |
| 26 | IUSE="doc" |
26 | IUSE="doc" |
| 27 | |
27 | |
|
|
28 | DEPEND=" |
| 28 | DEPEND=">=dev-ruby/rubygems-0.9.4 |
29 | >=dev-ruby/rubygems-0.9.4 |
| 29 | !dev-ruby/rdoc" |
30 | !dev-ruby/rdoc |
|
|
31 | " |
|
|
32 | RDEPEND="${DEPEND}" |
| 30 | |
33 | |
| 31 | gems_location() { |
34 | gems_location() { |
| 32 | local sitelibdir |
35 | local sitelibdir |
| 33 | sitelibdir=$(ruby -r rbconfig -e 'print Config::CONFIG["sitelibdir"]') |
36 | sitelibdir=$(ruby -r rbconfig -e 'print Config::CONFIG["sitelibdir"]') |
| 34 | export GEMSDIR=${sitelibdir/site_ruby/gems} |
37 | export GEMSDIR=${sitelibdir/site_ruby/gems} |