/[gentoo-x86]/eclass/scons-utils.eclass
Gentoo

Diff of /eclass/scons-utils.eclass

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

Revision 1.10 Revision 1.11
1# Copyright 1999-2011 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/scons-utils.eclass,v 1.10 2011/12/13 18:37:25 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/scons-utils.eclass,v 1.11 2012/09/27 16:35:42 axs Exp $
4 4
5# @ECLASS: scons-utils.eclass 5# @ECLASS: scons-utils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# mgorny@gentoo.org 7# mgorny@gentoo.org
8# @BLURB: helper functions to deal with SCons buildsystem 8# @BLURB: helper functions to deal with SCons buildsystem
71: ${USE_SCONS_FALSE:=0} 71: ${USE_SCONS_FALSE:=0}
72 72
73# -- EAPI support check -- 73# -- EAPI support check --
74 74
75case ${EAPI:-0} in 75case ${EAPI:-0} in
76 0|1|2|3|4) ;; 76 0|1|2|3|4|5) ;;
77 *) die "EAPI ${EAPI} unsupported." 77 *) die "EAPI ${EAPI} unsupported."
78esac 78esac
79 79
80# -- ebuild variables setup -- 80# -- ebuild variables setup --
81 81
103 "${myesconsargs[@]}" "${@}" 103 "${myesconsargs[@]}" "${@}"
104 echo "${@}" >&2 104 echo "${@}" >&2
105 "${@}" 105 "${@}"
106 ret=${?} 106 ret=${?}
107 107
108 [[ ${ret} -ne 0 && ${EAPI} == 4 ]] && die "escons failed." 108 [[ ${ret} -ne 0 ]] && has "${EAPI:-0}" 4 5 && die "escons failed."
109 return ${ret} 109 return ${ret}
110} 110}
111 111
112# @FUNCTION: scons_clean_makeopts 112# @FUNCTION: scons_clean_makeopts
113# @USAGE: [makeflags] [...] 113# @USAGE: [makeflags] [...]

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20