commit:     aa9d13ef6a2f77c7a7e7e16d0723d378b6c3eafe
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 31 21:48:09 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Aug 31 21:48:44 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa9d13ef

dev-lang/ghc: cleanup obsolete LLVM slots; conditionalise llvm_pkg_setup call

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-lang/ghc/ghc-9.0.2.ebuild | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/dev-lang/ghc/ghc-9.0.2.ebuild b/dev-lang/ghc/ghc-9.0.2.ebuild
index d3bdecd30539..dc0d530b0785 100644
--- a/dev-lang/ghc/ghc-9.0.2.ebuild
+++ b/dev-lang/ghc/ghc-9.0.2.ebuild
@@ -90,12 +90,8 @@ RDEPEND="
        !ghcmakebinary? ( dev-libs/libffi:= )
        numa? ( sys-process/numactl )
        llvm? (
-               <sys-devel/llvm-$(("${LLVM_MAX_SLOT}" + 1)):=
+               <sys-devel/llvm-$((${LLVM_MAX_SLOT} + 1)):=
                || (
-                       sys-devel/llvm:9
-                       sys-devel/llvm:10
-                       sys-devel/llvm:11
-                       sys-devel/llvm:12
                        sys-devel/llvm:13
                )
        )
@@ -406,7 +402,7 @@ pkg_setup() {
                python-any-r1_pkg_setup
        fi
 
-       llvm_pkg_setup
+       use llvm && llvm_pkg_setup
 }
 
 src_unpack() {

Reply via email to