Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/clazy/
Date: Thu, 29 Jul 2021 18:18:08
Message-Id: 1627582662.d096e08e672b70624fc0ff2b6574f8dccca2d89c.asturm@gentoo
1 commit: d096e08e672b70624fc0ff2b6574f8dccca2d89c
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 29 18:14:55 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 29 18:17:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d096e08e
7
8 dev-util/clazy: 1.10 version bump
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 dev-util/clazy/Manifest | 1 +
14 dev-util/clazy/clazy-1.10.ebuild | 38 ++++++++++++++++++++++++++++++++++++++
15 2 files changed, 39 insertions(+)
16
17 diff --git a/dev-util/clazy/Manifest b/dev-util/clazy/Manifest
18 index 98c700ef3fc..1a0031b71dd 100644
19 --- a/dev-util/clazy/Manifest
20 +++ b/dev-util/clazy/Manifest
21 @@ -1 +1,2 @@
22 +DIST clazy-1.10.tar.xz 398920 BLAKE2B 1cdc160de21363c7dc9c93ea7e780412a4971b18e97c7ec6e06f1c7450c56e0fbbdb7592d6b92ae53e4c161f6d9abca205984f83b68646f04ea11d63e3c45fa6 SHA512 59dd8c6903bcc239dfc356804cab265597a771de3858a6add4877149e0e7875b3c9ddae9aeec889c9102fb9ec6b0125bb8a786344e47872b01ba87425ba021eb
23 DIST clazy-1.9.tar.xz 394856 BLAKE2B 641ca46a31475cf7bd03ba921e390cb2712362dc97b960a519e05c47049927f805d3ef6f1c756b96d3483e8f4b75e2dc41a2419a462ed2e45cbd08c88c07f933 SHA512 2e8bec44a027366263de23c50d14192e310fd38fa2b369afb21413da9cb78da9882b2153daf1784c4c9076cc62e2867b5211c75ff9a1eabcb583e405f20f5912
24
25 diff --git a/dev-util/clazy/clazy-1.10.ebuild b/dev-util/clazy/clazy-1.10.ebuild
26 new file mode 100644
27 index 00000000000..a4846ed8082
28 --- /dev/null
29 +++ b/dev-util/clazy/clazy-1.10.ebuild
30 @@ -0,0 +1,38 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +inherit cmake
37 +
38 +DESCRIPTION="Compiler plugin which allows clang to understand Qt semantics"
39 +HOMEPAGE="https://apps.kde.org/clazy"
40 +SRC_URI="mirror://kde/stable/${PN}/${PV}/src/${P}.tar.xz"
41 +
42 +LICENSE="LGPL-2+"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm64 ~x86"
45 +IUSE=""
46 +
47 +RDEPEND="
48 + >=sys-devel/clang-8.0:=
49 + >=sys-devel/llvm-8.0:=
50 +"
51 +DEPEND="${RDEPEND}"
52 +
53 +src_prepare() {
54 + cmake_src_prepare
55 +
56 + sed -e '/install(FILES README.md COPYING-LGPL2.txt checks.json DESTINATION/d' \
57 + -i CMakeLists.txt || die
58 +}
59 +
60 +src_configure() {
61 + # this package requires both llvm and clang of the same version.
62 + # clang pulls in the equivalent llvm version, but not vice versa.
63 + # so, we must find llvm based on the installed clang version.
64 + # bug #681568
65 + local clang_version=$(best_version "sys-devel/clang")
66 + export LLVM_ROOT="/usr/lib/llvm/$(ver_cut 1 ${clang_version##sys-devel/clang-})"
67 + cmake_src_configure
68 +}