diff --git a/media-libs/mesa/mesa-17.0.0.ebuild b/media-libs/mesa/mesa-17.0.0.ebuild index b35f0bc5ef275..d6d58afc0dd62 100644 --- a/media-libs/mesa/mesa-17.0.0.ebuild +++ b/media-libs/mesa/mesa-17.0.0.ebuild @@ -201,7 +201,9 @@ pkg_setup() { ewarn "detected! This can cause problems. For details, see bug 459306." fi - LLVM_MAX_SLOT=4 llvm_pkg_setup + if use llvm || use opencl; then + LLVM_MAX_SLOT=4 llvm_pkg_setup + fi python-any-r1_pkg_setup } diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild index fe87f66a7bdf3..2f05b05d304b8 100644 --- a/media-libs/mesa/mesa-9999.ebuild +++ b/media-libs/mesa/mesa-9999.ebuild @@ -188,7 +188,9 @@ pkg_setup() { ewarn "detected! This can cause problems. For details, see bug 459306." fi - llvm_pkg_setup + if use llvm || use opencl; then + llvm_pkg_setup + fi python-any-r1_pkg_setup }