From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1BDFD158087 for ; Sat, 11 Dec 2021 01:16:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E124CE07BA; Sat, 11 Dec 2021 01:16:30 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CB288E07BA for ; Sat, 11 Dec 2021 01:16:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ACB24342EA3 for ; Sat, 11 Dec 2021 01:16:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7610014D for ; Sat, 11 Dec 2021 01:16:27 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1639185376.15d1e9c51bee91279e79fad16777338e6aff1b8b.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/clazy/clazy-1.10-r1.ebuild dev-util/clazy/clazy-1.10.ebuild X-VCS-Directories: dev-util/clazy/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 15d1e9c51bee91279e79fad16777338e6aff1b8b X-VCS-Branch: master Date: Sat, 11 Dec 2021 01:16:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ef0e1ab1-6dc2-4501-992e-5ddeaac86b27 X-Archives-Hash: ce3304b0fafe13442c36a0af7637d2da commit: 15d1e9c51bee91279e79fad16777338e6aff1b8b Author: Sam James gentoo org> AuthorDate: Fri Dec 10 23:24:37 2021 +0000 Commit: Sam James gentoo org> CommitDate: Sat Dec 11 01:16:16 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15d1e9c5 dev-util/clazy: use llvm.eclass to declare compatibility We need to use llvm.eclass to ensure we don't use too new of a version of LLVM and Clang. Closes: https://bugs.gentoo.org/823726 Bug: https://bugs.gentoo.org/823726 Signed-off-by: Sam James gentoo.org> dev-util/clazy/{clazy-1.10.ebuild => clazy-1.10-r1.ebuild} | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/dev-util/clazy/clazy-1.10.ebuild b/dev-util/clazy/clazy-1.10-r1.ebuild similarity index 83% rename from dev-util/clazy/clazy-1.10.ebuild rename to dev-util/clazy/clazy-1.10-r1.ebuild index 160c50c5c641..d8be54c089d8 100644 --- a/dev-util/clazy/clazy-1.10.ebuild +++ b/dev-util/clazy/clazy-1.10-r1.ebuild @@ -3,7 +3,8 @@ EAPI=7 -inherit cmake +LLVM_MAX_SLOT=12 +inherit cmake llvm DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics" HOMEPAGE="https://apps.kde.org/clazy" @@ -14,12 +15,13 @@ SLOT="0" KEYWORDS="~amd64 arm64 ~x86" IUSE="" -RDEPEND=" - >=sys-devel/clang-8.0:= - >=sys-devel/llvm-8.0:= -" +RDEPEND=">=sys-devel/clang-$((${LLVM_MAX_SLOT} + 1)):=" DEPEND="${RDEPEND}" +llvm_check_deps() { + has_version "sys-devel/clang:${LLVM_SLOT}" && has_version "sys-devel/llvm:${LLVM_SLOT}" +} + src_prepare() { cmake_src_prepare