From: | Ciaran McCreesh <ciaran.mccreesh@××××××××××.com> | ||
---|---|---|---|
To: | gentoo-dev@l.g.o | ||
Subject: | Re: [gentoo-dev] patch eutils.eclass for EAPI 5 | ||
Date: | Sat, 29 Sep 2012 16:02:01 | ||
Message-Id: | 20120929165715.3815aa26@googlemail.com | ||
In Reply to: | Re: [gentoo-dev] patch eutils.eclass for EAPI 5 by Zac Medico |
1 | On Thu, 27 Sep 2012 10:23:50 -0700 |
2 | Zac Medico <zmedico@g.o> wrote: |
3 | > Something like this would work with current versions of portage: |
4 | > |
5 | > if ! declare -F usex >/dev/null ; then |
6 | > usex() { use "$1" && echo "${2-yes}$4" || echo "${3-no}$5" ; } |
7 | > fi |
8 | > |
9 | > However, it's probably not a good idea to assume that the package |
10 | > manager defines usex prior to sourcing the eclass. |
11 | |
12 | It's also not a good idea to assume that usex is a function. |
13 | |
14 | -- |
15 | Ciaran McCreesh |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |