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

Diff of /eclass/gems.eclass

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

Revision 1.11 Revision 1.12
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.11 2006/12/30 16:40:11 pclouds Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/gems.eclass,v 1.12 2007/01/04 05:43:52 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
49 else 49 else
50 GEM_SRC=${DISTDIR}/${MY_P} 50 GEM_SRC=${DISTDIR}/${MY_P}
51 spec_path=${D}/${GEMSDIR}/specifications/${MY_P}.gemspec 51 spec_path=${D}/${GEMSDIR}/specifications/${MY_P}.gemspec
52 fi 52 fi
53 53
54 if use doc; then
55 myconf="--rdoc"
56 else
57 myconf="--no-rdoc"
58 fi
59
54 # RI documentation installation: bug #145222 60 # RI documentation installation: bug #145222
61 if gem --version|grep -q ^0.9; then
55 if use doc; then 62 if use doc; then
56 myconf="--rdoc --ri" 63 myconf="--ri ${myconf}"
57 else 64 else
58 myconf="--no-rdoc --no-ri" 65 myconf="--no-ri ${myconf}"
66 fi
59 fi 67 fi
68
60 69
61 dodir ${GEMSDIR} 70 dodir ${GEMSDIR}
62 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"
63 72
64 # 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

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20