On 08-02-2015 13:06:45 +0100, Michael Weiser wrote:
> So what we'd need is something like:
>
> DEPEND="${COMMON_DEPEND}
> [...]
> || ( >=sys-devel/binutils-2.18 sys-devel/binutils-apple )
> kernel_Darwin_ge_107? ( >=sys-devel/binutils-apple-5.1 )
>
> kernel_Darwin_ge_107 meaning "We're on an OS X 10.7 or newer.". As a
> workaround I guess we could do:
DEPEND needs to be a "constant", for the metadata cache, so we can't do
tricks with bash conditionals indeed.
> DEPEND="${COMMON_DEPEND}
> [...]
> || ( >=sys-devel/binutils-2.18 sys-devel/binutils-apple )
> !ppc-macos? ( >=sys-devel/binutils-apple-5.1 )
>
> This would work since binutils-apple-5.1 (and 6.1) are available as far
> back as 10.4 on Intel.
To me this feels like an acceptable hack. I probably would write it as
|| ( >=sys-devel/binutils-2.18 ppc-macos? ( sys-devel/binutils-apple )
!ppc-macos? ( >=sys-devel/binutils-apple-5.1 ) )
--
Fabian Groffen
Gentoo on a different level
signature.asc
Description: Digital signature
