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

Diff of /eclass/gems.eclass

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

Revision 1.13 Revision 1.14
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.13 2007/01/04 19:00:47 pclouds Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/gems.eclass,v 1.14 2007/01/09 23:29:17 flameeyes 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
9# gems-based ruby packagess and their incorporation into 9# gems-based ruby packagess and their incorporation into
10# the Gentoo Linux system. 10# the Gentoo Linux system.
11# 11#
12# - Features: 12# - Features:
13# gems_location() - Set ${GEMSDIR} with gem install dir and ${GEM_SRC} with path to gem to install 13# gems_location() - Set ${GEMSDIR} with gem install dir and ${GEM_SRC} with path to gem to install
14# gems_src_install() - installs a gem into ${D} 14# gems_src_install() - installs a gem into ${D}
15# gems_src_unpack() - Does nothing. 15# gems_src_unpack() - Does nothing.
16# gems_src_compile() - Does nothing. 16# gems_src_compile() - Does nothing.
17# 17#
18# NOTE: 18# NOTE:
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
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
77 test -f ${spec_path} || die "gem install failed" 77 test -f ${spec_path} || die "gem install failed (spec file ${spec_path} missing)"
78 78
79 if [ -d ${D}/${GEMSDIR}/bin ] ; then 79 if [ -d ${D}/${GEMSDIR}/bin ] ; then
80 exeinto /usr/bin 80 exeinto /usr/bin
81 for exe in ${D}/${GEMSDIR}/bin/* ; do 81 for exe in ${D}/${GEMSDIR}/bin/* ; do
82 doexe ${exe} 82 doexe ${exe}

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20