1 |
On 08-02-2015 13:06:45 +0100, Michael Weiser wrote: |
2 |
> So what we'd need is something like: |
3 |
> |
4 |
> DEPEND="${COMMON_DEPEND} |
5 |
> [...] |
6 |
> || ( >=sys-devel/binutils-2.18 sys-devel/binutils-apple ) |
7 |
> kernel_Darwin_ge_107? ( >=sys-devel/binutils-apple-5.1 ) |
8 |
> |
9 |
> kernel_Darwin_ge_107 meaning "We're on an OS X 10.7 or newer.". As a |
10 |
> workaround I guess we could do: |
11 |
|
12 |
DEPEND needs to be a "constant", for the metadata cache, so we can't do |
13 |
tricks with bash conditionals indeed. |
14 |
|
15 |
> DEPEND="${COMMON_DEPEND} |
16 |
> [...] |
17 |
> || ( >=sys-devel/binutils-2.18 sys-devel/binutils-apple ) |
18 |
> !ppc-macos? ( >=sys-devel/binutils-apple-5.1 ) |
19 |
> |
20 |
> This would work since binutils-apple-5.1 (and 6.1) are available as far |
21 |
> back as 10.4 on Intel. |
22 |
|
23 |
To me this feels like an acceptable hack. I probably would write it as |
24 |
|| ( >=sys-devel/binutils-2.18 ppc-macos? ( sys-devel/binutils-apple ) |
25 |
!ppc-macos? ( >=sys-devel/binutils-apple-5.1 ) ) |
26 |
|
27 |
|
28 |
-- |
29 |
Fabian Groffen |
30 |
Gentoo on a different level |