media-libs/mesa: Do not depend on llvm if USE=-gallium
authorMatt Turner <mattst88@gentoo.org>
Wed, 16 Oct 2019 06:08:05 +0000 (23:08 -0700)
committerMatt Turner <mattst88@gentoo.org>
Wed, 16 Oct 2019 06:08:44 +0000 (23:08 -0700)
Closes: https://bugs.gentoo.org/697806
Signed-off-by: Matt Turner <mattst88@gentoo.org>
media-libs/mesa/mesa-9999.ebuild

index cad8a11cea0eceb2498482922ada643262b76327..92046ad35fa213a029e697f043c4e63c076e75a3 100644 (file)
@@ -161,51 +161,53 @@ LLVM_DEPSTR_AMDGPU=${LLVM_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
 CLANG_DEPSTR=${LLVM_DEPSTR//llvm/clang}
 CLANG_DEPSTR_AMDGPU=${CLANG_DEPSTR//]/,llvm_targets_AMDGPU(-)]}
 RDEPEND="${RDEPEND}
-       llvm? (
-               opencl? (
-                       video_cards_r600? (
-                               ${CLANG_DEPSTR_AMDGPU}
-                       )
-                       !video_cards_r600? (
-                               video_cards_radeonsi? (
+       gallium?
+               llvm? (
+                       opencl? (
+                               video_cards_r600? (
                                        ${CLANG_DEPSTR_AMDGPU}
                                )
-                       )
-                       !video_cards_r600? (
-                               !video_cards_radeonsi? (
-                                       video_cards_radeon? (
+                               !video_cards_r600? (
+                                       video_cards_radeonsi? (
                                                ${CLANG_DEPSTR_AMDGPU}
                                        )
                                )
-                       )
-                       !video_cards_r600? (
-                               !video_cards_radeon? (
+                               !video_cards_r600? (
                                        !video_cards_radeonsi? (
-                                               ${CLANG_DEPSTR}
+                                               video_cards_radeon? (
+                                                       ${CLANG_DEPSTR_AMDGPU}
+                                               )
+                                       )
+                               )
+                               !video_cards_r600? (
+                                       !video_cards_radeon? (
+                                               !video_cards_radeonsi? (
+                                                       ${CLANG_DEPSTR}
+                                               )
                                        )
                                )
                        )
-               )
-               !opencl? (
-                       video_cards_r600? (
-                               ${LLVM_DEPSTR_AMDGPU}
-                       )
-                       !video_cards_r600? (
-                               video_cards_radeonsi? (
+                       !opencl? (
+                               video_cards_r600? (
                                        ${LLVM_DEPSTR_AMDGPU}
                                )
-                       )
-                       !video_cards_r600? (
-                               !video_cards_radeonsi? (
-                                       video_cards_radeon? (
+                               !video_cards_r600? (
+                                       video_cards_radeonsi? (
                                                ${LLVM_DEPSTR_AMDGPU}
                                        )
                                )
-                       )
-                       !video_cards_r600? (
-                               !video_cards_radeon? (
+                               !video_cards_r600? (
                                        !video_cards_radeonsi? (
-                                               ${LLVM_DEPSTR}
+                                               video_cards_radeon? (
+                                                       ${LLVM_DEPSTR_AMDGPU}
+                                               )
+                                       )
+                               )
+                               !video_cards_r600? (
+                                       !video_cards_radeon? (
+                                               !video_cards_radeonsi? (
+                                                       ${LLVM_DEPSTR}
+                                               )
                                        )
                                )
                        )