media-libs/mesa: Fix uncond call to llvm_pkg_setup, #608536
authorMichał Górny <mgorny@gentoo.org>
Wed, 15 Feb 2017 21:06:54 +0000 (22:06 +0100)
committerMichał Górny <mgorny@gentoo.org>
Wed, 15 Feb 2017 21:08:34 +0000 (22:08 +0100)
media-libs/mesa/mesa-17.0.0.ebuild
media-libs/mesa/mesa-9999.ebuild

index b35f0bc5ef275a34868acdafb52b4fc531ce421b..d6d58afc0dd628e2c49017666f933ddb0b7920e8 100644 (file)
@@ -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
 }
 
index fe87f66a7bdf3895531cbecf209dd6b2831b0736..2f05b05d304b86de37fe6030bde9846b0c50101d 100644 (file)
@@ -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
 }