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

Diff of /eclass/gems.eclass

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

Revision 1.7 Revision 1.8
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.7 2005/09/23 00:57:25 caleb Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gems.eclass,v 1.8 2006/04/06 23:36:02 caleb Exp $
4# 4#
5# Author: Rob Cakebread <pythonhead@gentoo.org> 5# Author: Rob Cakebread <pythonhead@gentoo.org>
6# Current Maintainer: Rob Cakebread <pythonhead@gentoo.org> 6# Current Maintainer: Rob Cakebread <pythonhead@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
25DEPEND=">=dev-ruby/rubygems-0.8.4-r1 25DEPEND=">=dev-ruby/rubygems-0.8.4-r1
26 !dev-ruby/rdoc" 26 !dev-ruby/rdoc"
27 27
28S=${WORKDIR} 28S=${WORKDIR}
29 29
30IUSE="doc"
30 31
31gems_location() { 32gems_location() {
32 local sitelibdir 33 local sitelibdir
33 sitelibdir=`ruby -r rbconfig -e 'print Config::CONFIG["sitelibdir"]'` 34 sitelibdir=`ruby -r rbconfig -e 'print Config::CONFIG["sitelibdir"]'`
34 export GEMSDIR=${sitelibdir/site_ruby/gems} 35 export GEMSDIR=${sitelibdir/site_ruby/gems}
46 GEM_SRC=${DISTDIR}/${P} 47 GEM_SRC=${DISTDIR}/${P}
47 else 48 else
48 GEM_SRC=${DISTDIR}/${MY_P} 49 GEM_SRC=${DISTDIR}/${MY_P}
49 fi 50 fi
50 51
52 if use doc; then
53 myconf="--rdoc"
54 else
55 myconf="--no-rdoc"
56 fi
57
51 dodir ${GEMSDIR} 58 dodir ${GEMSDIR}
52 gem install ${GEM_SRC} -v ${PV} -l -i ${D}/${GEMSDIR} || die "gem install failed" 59 gem install ${GEM_SRC} -v ${PV} ${myconf} -l -i ${D}/${GEMSDIR} || die "gem install failed"
53 60
54 if [ -d ${D}/${GEMSDIR}/bin ] ; then 61 if [ -d ${D}/${GEMSDIR}/bin ] ; then
55 exeinto /usr/bin 62 exeinto /usr/bin
56 for exe in ${D}/${GEMSDIR}/bin/* ; do 63 for exe in ${D}/${GEMSDIR}/bin/* ; do
57 doexe ${exe} 64 doexe ${exe}

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20