/[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.16 Revision 1.17
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.16 2010/05/22 12:18:07 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.17 2010/05/22 12:31:03 flameeyes 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#
110 done 110 done
111 111
112 echo "[${res%,}]" 112 echo "[${res%,}]"
113} 113}
114 114
115_ruby_implementation_depend() {
116 echo "ruby_targets_${1}? ( ${2}[ruby_targets_${1}] )"
117}
118
119_ruby_atoms_samelib() { 115_ruby_atoms_samelib_generic() {
120 local samelib=$(ruby_samelib) 116 echo "RUBYTARGET? ("
121
122 for token in $*; do 117 for token in $*; do
123 case "$token" in 118 case "$token" in
124 "||" | "(" | ")" | *"?") 119 "||" | "(" | ")" | *"?")
125 echo "${token}" ;; 120 echo "${token}" ;;
126 *) 121 *)
127 echo "${token}${samelib}" ;; 122 # TODO we need to deal with merging USE-based
123 # dependencies
124 echo "${token}[RUBYTARGET]" ;;
128 esac 125 esac
126 done
127 echo ")"
128}
129
130_ruby_atoms_samelib() {
131 local atoms=$(_ruby_atoms_samelib_generic "$*")
132
133 for _ruby_implementation in $USE_RUBY; do
134 echo "${atoms//RUBYTARGET/ruby_targets_${_ruby_implementation}}"
129 done 135 done
130} 136}
131 137
132_ruby_wrap_conditions() { 138_ruby_wrap_conditions() {
133 local conditions="$1" 139 local conditions="$1"

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17

  ViewVC Help
Powered by ViewVC 1.1.20