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

Diff of /eclass/ruby.eclass

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

Revision 1.18 Revision 1.19
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 Gentoo Technologies, Inc.
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/ruby.eclass,v 1.18 2004/01/12 17:55:05 usata Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/ruby.eclass,v 1.19 2004/01/13 15:39:04 usata Exp $
4# 4#
5# Author: Mamoru KOMACHI <usata@gentoo.org> 5# Author: Mamoru KOMACHI <usata@gentoo.org>
6# 6#
7# The ruby eclass is designed to allow easier installation of ruby 7# The ruby eclass is designed to allow easier installation of ruby
8# softwares, and their incorporation into the Gentoo Linux system. 8# softwares, and their incorporation into the Gentoo Linux system.
30ECLASS=ruby 30ECLASS=ruby
31INHERITED="${INHERITED} ${ECLASS}" 31INHERITED="${INHERITED} ${ECLASS}"
32EXPORT_FUNCTIONS erubyconf erubymake erubyinstall erubydoc \ 32EXPORT_FUNCTIONS erubyconf erubymake erubyinstall erubydoc \
33 src_unpack econf emake src_compile einstall src_install 33 src_unpack econf emake src_compile einstall src_install
34 34
35inherit eutils
36
37HOMEPAGE="http://raa.ruby-lang.org/list.rhtml?name=${PN}" 35HOMEPAGE="http://raa.ruby-lang.org/list.rhtml?name=${PN}"
38SRC_URI="mirror://gentoo/${P}.tar.gz" 36SRC_URI="mirror://gentoo/${P}.tar.gz"
39 37
40SLOT="0" 38SLOT="0"
41LICENSE="Ruby" 39LICENSE="Ruby"
54 52
55ruby_src_unpack() { 53ruby_src_unpack() {
56 54
57 unpack ${A} 55 unpack ${A}
58 # apply bulk patches 56 # apply bulk patches
59 [[ -n "${PATCHES}" ]] && xpatch "${PATCHES}" 57 if [[ -n "${PATCHES}" ]] ; then
58 for p in ${PATCHES} ; do
59 epatch $p
60 done
61 fi
60 62
61 if [[ "${WITH_RUBY/ruby16/}" != "${WITH_RUBY}" && "${WITH_RUBY/ruby18/}" != "${WITH_RUBY}" ]] ; then 63 if [[ "${WITH_RUBY/ruby16/}" != "${WITH_RUBY}" && "${WITH_RUBY/ruby18/}" != "${WITH_RUBY}" ]] ; then
62 cd ${WORKDIR} 64 cd ${WORKDIR}
63 mkdir ${T}/build 65 mkdir ${T}/build
64 tar cf - . | ( cd ${T}/build ; tar xpf - ) 66 tar cf - . | ( cd ${T}/build ; tar xpf - )

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

  ViewVC Help
Powered by ViewVC 1.1.20