/[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.9 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/check-reqs.eclass,v 1.9 2011/09/05 08:22:31 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/check-reqs.eclass,v 1.11 2012/09/27 16:35:41 axs 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:
337 local size=${1} 337 local size=${1}
338 local location=${2} 338 local location=${2}
339 local sizeunit="$(check-reqs_get_number ${size}) $(check-reqs_get_unit ${size})" 339 local sizeunit="$(check-reqs_get_number ${size}) $(check-reqs_get_unit ${size})"
340 340
341 [[ ${EBUILD_PHASE} == "pretend" && -z ${I_KNOW_WHAT_I_AM_DOING} ]] && msg="eerror" 341 [[ ${EBUILD_PHASE} == "pretend" && -z ${I_KNOW_WHAT_I_AM_DOING} ]] && msg="eerror"
342 ${msg} "Don't have at least ${sizeunit} ${location}" 342 ${msg} "There is NOT at least ${sizeunit} ${location}"
343 343
344 # @ECLASS-VARIABLE: CHECKREQS_FAILED 344 # @ECLASS-VARIABLE: CHECKREQS_FAILED
345 # @DESCRIPTION: 345 # @DESCRIPTION:
346 # @INTERNAL 346 # @INTERNAL
347 # If set the checks failed and eclass should abort the build. 347 # If set the checks failed and eclass should abort the build.

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

  ViewVC Help
Powered by ViewVC 1.1.20