/[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.43 Revision 1.44
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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.43 2011/10/24 18:20:05 graaff Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.44 2011/12/18 21:33:50 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# @AUTHOR: 8# @AUTHOR:
281 t+=" ruby_targets_${implementation}" 281 t+=" ruby_targets_${implementation}"
282 done 282 done
283 echo $t 283 echo $t
284} 284}
285 285
286if [[ ${EAPI:-0} -ge 4 && ${RUBY_OPTIONAL} != "yes" ]]; then
287 REQUIRED_USE=" || ( $(ruby_get_use_targets) )"
288fi
289
290# @FUNCTION: ruby_implementations_depend 286# @FUNCTION: ruby_implementations_depend
291# @RETURN: Dependencies suitable for injection into DEPEND and RDEPEND. 287# @RETURN: Dependencies suitable for injection into DEPEND and RDEPEND.
292# @DESCRIPTION: 288# @DESCRIPTION:
293# Produces the dependency string for the various implementations of ruby 289# Produces the dependency string for the various implementations of ruby
294# which the package is being built against. This should not be used when 290# which the package is being built against. This should not be used when
309 depend="${depend}${depend+ }ruby_targets_${_ruby_implementation}? ( $(ruby_implementation_depend $_ruby_implementation) )" 305 depend="${depend}${depend+ }ruby_targets_${_ruby_implementation}? ( $(ruby_implementation_depend $_ruby_implementation) )"
310 done 306 done
311 echo "${depend}" 307 echo "${depend}"
312} 308}
313 309
314for _ruby_implementation in ${USE_RUBY}; do 310IUSE+=" $(ruby_get_use_targets)"
315 IUSE="${IUSE} ruby_targets_${_ruby_implementation}"
316done
317# If you specify RUBY_OPTIONAL you also need to take care of 311# If you specify RUBY_OPTIONAL you also need to take care of
318# ruby useflag and dependency. 312# ruby useflag and dependency.
319if [[ ${RUBY_OPTIONAL} != yes ]]; then 313if [[ ${RUBY_OPTIONAL} != yes ]]; then
320 DEPEND="${DEPEND} $(ruby_implementations_depend)" 314 DEPEND="${DEPEND} $(ruby_implementations_depend)"
321 RDEPEND="${RDEPEND} $(ruby_implementations_depend)" 315 RDEPEND="${RDEPEND} $(ruby_implementations_depend)"
316
317 [[ ${EAPI:-0} -ge 4 ]] && REQUIRED_USE+=" || ( $(ruby_get_use_targets) )"
322fi 318fi
323 319
324_ruby_invoke_environment() { 320_ruby_invoke_environment() {
325 old_S=${S} 321 old_S=${S}
326 case ${EAPI} in 322 case ${EAPI} in

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44

  ViewVC Help
Powered by ViewVC 1.1.20