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

Diff of /eclass/ruby-ng.eclass

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

Revision 1.24 Revision 1.26
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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/ruby-ng.eclass,v 1.24 2010/07/30 16:56:21 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.26 2010/08/22 07:28:24 graaff Exp $
4# 4#
5# @ECLASS: ruby-ng.eclass 5# @ECLASS: ruby-ng.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Ruby herd <ruby@gentoo.org> 7# Ruby herd <ruby@gentoo.org>
8# 8#
31# 31#
32# * each_ruby_configure 32# * each_ruby_configure
33# * all_ruby_configure 33# * all_ruby_configure
34 34
35# @ECLASS-VARIABLE: USE_RUBY 35# @ECLASS-VARIABLE: USE_RUBY
36# @REQUIRED
36# @DESCRIPTION: 37# @DESCRIPTION:
37# This variable contains a space separated list of targets (see above) a package 38# This variable contains a space separated list of targets (see above) a package
38# is compatible to. It must be set before the `inherit' call. There is no 39# is compatible to. It must be set before the `inherit' call. There is no
39# default. All ebuilds are expected to set this variable. 40# default. All ebuilds are expected to set this variable.
40 41
41# @ECLASS-VARIABLE: RUBY_PATCHES 42# @ECLASS-VARIABLE: RUBY_PATCHES
43# @DEFAULT_UNSET
42# @DESCRIPTION: 44# @DESCRIPTION:
43# A String or Array of filenames of patches to apply to all implementations. 45# A String or Array of filenames of patches to apply to all implementations.
44 46
45# @ECLASS-VARIABLE: RUBY_OPTIONAL 47# @ECLASS-VARIABLE: RUBY_OPTIONAL
46# @DESCRIPTION: 48# @DESCRIPTION:
396 [[ ${CHOST} == *-darwin ]] && scancmd=scanmacho 398 [[ ${CHOST} == *-darwin ]] && scancmd=scanmacho
397 399
398 has "${EAPI}" 2 && ! use prefix && EPREFIX= 400 has "${EAPI}" 2 && ! use prefix && EPREFIX=
399 401
400 local libruby_basename=$(${RUBY} -rrbconfig -e 'puts Config::CONFIG["LIBRUBY_SO"]') 402 local libruby_basename=$(${RUBY} -rrbconfig -e 'puts Config::CONFIG["LIBRUBY_SO"]')
401 local libruby_soname=$(basename $(${scancmd} -F "%S#F" -qS "${EPREFIX}/usr/$(get_libdir)/${libruby_basename}")) 403 local libruby_soname=$(basename $(${scancmd} -F "%S#F" -qS "${EPREFIX}/usr/$(get_libdir)/${libruby_basename}") 2>/dev/null)
402 local sitedir=$(${RUBY} -rrbconfig -e 'puts Config::CONFIG["sitedir"]') 404 local sitedir=$(${RUBY} -rrbconfig -e 'puts Config::CONFIG["sitedir"]')
403 local sitelibdir=$(${RUBY} -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]') 405 local sitelibdir=$(${RUBY} -rrbconfig -e 'puts Config::CONFIG["sitelibdir"]')
404 406
405 # Look for wrong files in sitedir 407 # Look for wrong files in sitedir
406 # if [[ -d "${D}${sitedir}" ]]; then 408 # if [[ -d "${D}${sitedir}" ]]; then

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.20