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