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

Diff of /eclass/gems.eclass

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

Revision 1.17 Revision 1.18
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.17 2007/03/05 18:26:20 rbrown Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/gems.eclass,v 1.18 2007/09/17 04:59:29 nichoj 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
19# See http://dev.gentoo.org/~pythonhead/ruby/gems.html for notes on using gems with portage 19# See http://dev.gentoo.org/~pythonhead/ruby/gems.html for notes on using gems with portage
20 20
21 21
22inherit ruby eutils 22inherit ruby eutils
23 23
24SRC_URI="http://gems.rubyforge.org/gems/${P}.gem"
25
26IUSE="doc"
24 27
25DEPEND=">=dev-ruby/rubygems-0.8.4-r1 28DEPEND=">=dev-ruby/rubygems-0.8.4-r1
26 !dev-ruby/rdoc" 29 !dev-ruby/rdoc"
27 30
28S=${WORKDIR} 31S=${WORKDIR}
29 32
30IUSE="doc"
31 33
32gems_location() { 34gems_location() {
33 local sitelibdir 35 local sitelibdir
34 sitelibdir=`ruby -r rbconfig -e 'print Config::CONFIG["sitelibdir"]'` 36 sitelibdir=`ruby -r rbconfig -e 'print Config::CONFIG["sitelibdir"]'`
35 export GEMSDIR=${sitelibdir/site_ruby/gems} 37 export GEMSDIR=${sitelibdir/site_ruby/gems}

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

  ViewVC Help
Powered by ViewVC 1.1.20