/[gentoo-x86]/eclass/check-reqs.eclass
Gentoo

Diff of /eclass/check-reqs.eclass

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

Revision 1.10 Revision 1.12
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/check-reqs.eclass,v 1.10 2011/09/06 13:57:51 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/check-reqs.eclass,v 1.12 2012/10/19 02:44:21 patrick Exp $
4 4
5# @ECLASS: check-reqs.eclass 5# @ECLASS: check-reqs.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# QA Team <qa@gentoo.org> 7# QA Team <qa@gentoo.org>
8# @AUTHOR: 8# @AUTHOR:
61# How much space is needed in /var? Eg.: CHECKREQS_DISK_VAR=3000M 61# How much space is needed in /var? Eg.: CHECKREQS_DISK_VAR=3000M
62 62
63EXPORT_FUNCTIONS pkg_setup 63EXPORT_FUNCTIONS pkg_setup
64case "${EAPI:-0}" in 64case "${EAPI:-0}" in
65 0|1|2|3) ;; 65 0|1|2|3) ;;
66 4) EXPORT_FUNCTIONS pkg_pretend ;; 66 4|5) EXPORT_FUNCTIONS pkg_pretend ;;
67 *) die "EAPI=${EAPI} is not supported" ;; 67 *) die "EAPI=${EAPI} is not supported" ;;
68esac 68esac
69 69
70# @FUNCTION: check_reqs 70# @FUNCTION: check_reqs
71# @DESCRIPTION: 71# @DESCRIPTION:
88# Exported function running the resources checks in pkg_setup phase. 88# Exported function running the resources checks in pkg_setup phase.
89# It should be run in both phases to ensure condition changes between 89# It should be run in both phases to ensure condition changes between
90# pkg_pretend and pkg_setup won't affect the build. 90# pkg_pretend and pkg_setup won't affect the build.
91check-reqs_pkg_setup() { 91check-reqs_pkg_setup() {
92 debug-print-function ${FUNCNAME} "$@" 92 debug-print-function ${FUNCNAME} "$@"
93
94 [[ ${MERGE_TYPE} == binary ]] && return
93 95
94 check-reqs_prepare 96 check-reqs_prepare
95 check-reqs_run 97 check-reqs_run
96 check-reqs_output 98 check-reqs_output
97} 99}

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

  ViewVC Help
Powered by ViewVC 1.1.20