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

Diff of /eclass/ruby.eclass

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

Revision 1.55 Revision 1.56
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.55 2006/12/04 22:05:53 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/Attic/ruby.eclass,v 1.56 2007/01/06 16:00:22 flameeyes 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.
226 src_install || die "src_install failed" 226 src_install || die "src_install failed"
227 done 227 done
228 elif [ "${USE_RUBY}" == "any" ] ; then 228 elif [ "${USE_RUBY}" == "any" ] ; then
229 siteruby=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitelibdir"]') 229 siteruby=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitelibdir"]')
230 # in case no directories found in siteruby 230 # in case no directories found in siteruby
231 shopt -sq nullglob 231 local shopts=$-
232 set -o noglob # so that bash doen't expand "*"
232 233
233 for x in ${D}/${siteruby}/* ; do 234 for x in ${D}/${siteruby}/* ; do
234 mv $x ${D}/${siteruby}/.. 235 mv $x ${D}/${siteruby}/..
235 done 236 done
236 if [ -d ${D}${siteruby} ] ; then 237 if [ -d ${D}${siteruby} ] ; then
237 rmdir --ignore-fail-on-non-empty ${D}/${siteruby} 238 rmdir --ignore-fail-on-non-empty ${D}/${siteruby}
238 fi 239 fi
240
241 set +noglob; set -$shopts # reset old shell opts
239 fi 242 fi
240 243
241 prepallman 244 prepallman
242 prepallinfo 245 prepallinfo
243 prepallstrip 246 prepallstrip

Legend:
Removed from v.1.55  
changed lines
  Added in v.1.56

  ViewVC Help
Powered by ViewVC 1.1.20