media-libs/mesa: Fix LLVM dep to pull exactly one version
authorMichał Górny <mgorny@gentoo.org>
Sun, 17 Sep 2017 09:34:08 +0000 (11:34 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 28 Sep 2017 13:15:21 +0000 (15:15 +0200)
commitf852c290ad649e8a299e285dae1d51fb55ded064
treeca790ee3376be2f8b475912ed01164f4fcd220ef
parent4254e8a8b8e5977e0a8a5bad9ac683c54b88530f
media-libs/mesa: Fix LLVM dep to pull exactly one version

Since LLVM is slotted, you can't expect multiple different
dependencies to apply to the same slot. For this reason, we need to
ensure that only one form of dependency (set of USE flags) is applied to
LLVM.

To cover all the necessary variants:

- when using [opencl], enforce LLVM version and USE flags through
  implicit dependency via sys-devel/clang;

- enforce [llvm_targets_AMDGPU] for all variants needing it,
  and the non-AMDGPU version only if neither of them applies.
media-libs/mesa/mesa-9999.ebuild