/[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.50 Revision 1.51
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2012 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.50 2012/08/13 22:21:26 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng.eclass,v 1.51 2012/09/27 16:35:41 axs 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:
75 75
76case ${EAPI} in 76case ${EAPI} in
77 0|1) 77 0|1)
78 die "Unsupported EAPI=${EAPI} (too old) for ruby-ng.eclass" ;; 78 die "Unsupported EAPI=${EAPI} (too old) for ruby-ng.eclass" ;;
79 2|3) ;; 79 2|3) ;;
80 4) 80 4|5)
81 # S is no longer automatically assigned when it doesn't exist. 81 # S is no longer automatically assigned when it doesn't exist.
82 S="${WORKDIR}" 82 S="${WORKDIR}"
83 ;; 83 ;;
84 *) 84 *)
85 die "Unknown EAPI=${EAPI} for ruby-ng.eclass" 85 die "Unknown EAPI=${EAPI} for ruby-ng.eclass"
312# ruby useflag and dependency. 312# ruby useflag and dependency.
313if [[ ${RUBY_OPTIONAL} != yes ]]; then 313if [[ ${RUBY_OPTIONAL} != yes ]]; then
314 DEPEND="${DEPEND} $(ruby_implementations_depend)" 314 DEPEND="${DEPEND} $(ruby_implementations_depend)"
315 RDEPEND="${RDEPEND} $(ruby_implementations_depend)" 315 RDEPEND="${RDEPEND} $(ruby_implementations_depend)"
316 316
317 case ${EAPI:-0} in
318 4|5)
317 [[ ${EAPI:-0} -ge 4 ]] && REQUIRED_USE+=" || ( $(ruby_get_use_targets) )" 319 REQUIRED_USE+=" || ( $(ruby_get_use_targets) )"
320 ;;
321 esac
318fi 322fi
319 323
320_ruby_invoke_environment() { 324_ruby_invoke_environment() {
321 old_S=${S} 325 old_S=${S}
322 case ${EAPI} in 326 case ${EAPI} in
323 4) 327 4|5)
324 if [ -z ${RUBY_S} ]; then 328 if [ -z ${RUBY_S} ]; then
325 sub_S=${P} 329 sub_S=${P}
326 else 330 else
327 sub_S=${RUBY_S} 331 sub_S=${RUBY_S}
328 fi 332 fi

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

  ViewVC Help
Powered by ViewVC 1.1.20