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

Diff of /eclass/ruby.eclass

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

Revision 1.60 Revision 1.61
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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/ruby.eclass,v 1.60 2007/01/26 16:03:48 pclouds Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/ruby.eclass,v 1.61 2007/01/29 12:15:50 pclouds 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.
51 DEPEND="virtual/ruby" 51 DEPEND="virtual/ruby"
52fi 52fi
53 53
54[[ -z "${RUBY}" ]] && export RUBY=/usr/bin/ruby 54[[ -z "${RUBY}" ]] && export RUBY=/usr/bin/ruby
55 55
56ruby_src_unpack() { 56ruby_patch_mkmf() {
57 57
58 if [ ! -x /bin/install -a -x /usr/bin/install ]; then 58 if [ ! -x /bin/install -a -x /usr/bin/install ]; then
59 einfo "Patching mkmf"
59 cat <<END >${T}/mkmf.rb 60 cat <<END >${T}/mkmf.rb
60require 'mkmf' 61require 'mkmf'
61 62
62STDERR.puts 'patching mkmf' 63STDERR.puts 'Modified mkmf is used'
63CONFIG['INSTALL'] = '/usr/bin/install' 64CONFIG['INSTALL'] = '/usr/bin/install'
64END 65END
65 # save it because rubygems needs it (for unsetting RUBYOPT) 66 # save it because rubygems needs it (for unsetting RUBYOPT)
66 export GENTOO_RUBYOPT="-r${T}/mkmf.rb" 67 export GENTOO_RUBYOPT="-r${T}/mkmf.rb"
67 export RUBYOPT="${RUBYOPT} ${GENTOO_RUBYOPT}" 68 export RUBYOPT="${RUBYOPT} ${GENTOO_RUBYOPT}"
68 fi 69 fi
69 70
71}
72
73ruby_src_unpack() {
74 ruby_patch_mkmf
70 unpack ${A} 75 unpack ${A}
71 cd ${S} 76 cd ${S}
72 # apply bulk patches 77 # apply bulk patches
73 if [[ -n "${PATCHES}" ]] ; then 78 if [[ -n "${PATCHES}" ]] ; then
74 for p in ${PATCHES} ; do 79 for p in ${PATCHES} ; do

Legend:
Removed from v.1.60  
changed lines
  Added in v.1.61

  ViewVC Help
Powered by ViewVC 1.1.20