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

Diff of /eclass/gems.eclass

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

Revision 1.5 Revision 1.6
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.5 2005/07/06 20:23:20 agriffis Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/gems.eclass,v 1.6 2005/07/11 15:08:06 swegener 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
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}
47 GEM_SRC=${DISTDIR}/${MY_P} 47 GEM_SRC=${DISTDIR}/${MY_P}
48 fi 48 fi
49 49
50 dodir ${GEMSDIR} 50 dodir ${GEMSDIR}
51 gem install ${GEM_SRC} -v ${PV} -l -i ${D}/${GEMSDIR} || die "gem install failed" 51 gem install ${GEM_SRC} -v ${PV} -l -i ${D}/${GEMSDIR} || die "gem install failed"
52 52
53 if [ -d ${D}/${GEMSDIR}/bin ] ; then 53 if [ -d ${D}/${GEMSDIR}/bin ] ; then
54 exeinto /usr/bin 54 exeinto /usr/bin
55 for exe in ${D}/${GEMSDIR}/bin/* ; do 55 for exe in ${D}/${GEMSDIR}/bin/* ; do
56 doexe ${exe} 56 doexe ${exe}
57 done 57 done
58 fi 58 fi
60 60
61gems_src_compile() { 61gems_src_compile() {
62 true 62 true
63} 63}
64 64
65
66EXPORT_FUNCTIONS src_unpack src_compile src_install 65EXPORT_FUNCTIONS src_unpack src_compile src_install
67

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20