Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] check-reqs.eclass.patch
Date: Tue, 30 Aug 2011 08:22:59
Message-Id: 20060.40383.682554.237009@a1i15.kph.uni-mainz.de
In Reply to: Re: [gentoo-dev] [RFC] check-reqs.eclass.patch by "Tomáš Chvátal"
1 >>>>> On Tue, 30 Aug 2011, TomᨠChvátal wrote:
2
3 > CHECKREQS_EXPORTED_FUNCTIONS="pkg_setup"
4 > case "${EAPI:-0}" in
5 > 0|1|2|3) ;;
6 > 4) CHECKREQS_EXPORTED_FUNCTIONS="${CHECKREQS_EXPORTED_FUNCTIONS} pkg_pretend" ;;
7 > *) die "EAPI=${EAPI} is not supported" ;;
8 > esac
9
10 > EXPORT_FUNCTIONS ${CHECKREQS_EXPORTED_FUNCTIONS}
11 > unset CHECKREQS_EXPORTED_FUNCTIONS
12
13 No need for a global variable here, the following works as well and is
14 easier to read:
15
16 EXPORT_FUNCTIONS pkg_setup
17 case "${EAPI:-0}" in
18 0|1|2|3) ;;
19 4) EXPORT_FUNCTIONS pkg_pretend ;;
20 *) die "EAPI=${EAPI} is not supported" ;;
21 esac
22
23 Ulrich

Replies

Subject Author
Re: [gentoo-dev] [RFC] check-reqs.eclass.patch "Tomáš Chvátal" <scarabeus@g.o>