1 |
commit: e24a14097a87b18124fd1a9bca987ede81e3119f |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun May 24 23:30:41 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun May 24 23:30:48 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e24a1409 |
7 |
|
8 |
dev-util/include-what-you-use: bump up to 10.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
dev-util/include-what-you-use/Manifest | 1 + |
14 |
.../include-what-you-use-10.0.ebuild | 58 ++++++++++++++++++++++ |
15 |
2 files changed, 59 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/include-what-you-use/Manifest b/dev-util/include-what-you-use/Manifest |
18 |
index 380480c41d9..8c52fd8cf1c 100644 |
19 |
--- a/dev-util/include-what-you-use/Manifest |
20 |
+++ b/dev-util/include-what-you-use/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
+DIST include-what-you-use-10.0.tar.gz 598644 BLAKE2B 36c81bd493edfdfdc4df31c2dcb49d5acd3f6016f706e0c9d2f031d668ca16d71797d40b04fc9dc25a21738f7075320406fd666db74a0baa3832c149fe674e0e SHA512 e54a7c7e3a6d3e0de7c263d1f26b373d95b8fab5f1f7e76f52d80341bda2bad0fb12238a325dc1e2f6d3ab5e6d8e0b4ed60b5a19dc82e06d480bcb461f9aefba |
23 |
DIST include-what-you-use-9.0.src.tar.gz 589377 BLAKE2B b695354787070948d81e3e80b07bbe47a84b5609262df2220b6a62e6d648865b17e060951819f45956c6ca858977614d6e0401640509599b391a1165521b20de SHA512 f2d6ba05121a9968da9e42e8ac66f83ca0f35bfbe7cb1d616e2c6479cf2833c4668cb86e46a04ffcd5e77f10a575da9eeee5272c7609b5afad555d79cb640fb4 |
24 |
|
25 |
diff --git a/dev-util/include-what-you-use/include-what-you-use-10.0.ebuild b/dev-util/include-what-you-use/include-what-you-use-10.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..da2675ad0e2 |
28 |
--- /dev/null |
29 |
+++ b/dev-util/include-what-you-use/include-what-you-use-10.0.ebuild |
30 |
@@ -0,0 +1,58 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
37 |
+ |
38 |
+inherit cmake-utils flag-o-matic llvm python-single-r1 |
39 |
+ |
40 |
+# Sometimes the tag is clang_9, timetimes it's IWYU-0.13 |
41 |
+UPSTREAM_PV=0.14 |
42 |
+ |
43 |
+DESCRIPTION="Find unused include directives in C/C++ programs" |
44 |
+HOMEPAGE="https://include-what-you-use.org/" |
45 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/${UPSTREAM_PV}.tar.gz -> ${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+ |
51 |
+LLVM_MAX_SLOT=10 |
52 |
+ |
53 |
+RDEPEND="sys-devel/llvm:${LLVM_MAX_SLOT} |
54 |
+ sys-devel/clang:${LLVM_MAX_SLOT} |
55 |
+ ${PYTHON_DEPS} |
56 |
+" |
57 |
+DEPEND="${RDEPEND}" |
58 |
+ |
59 |
+REQUIRED_USE=${PYTHON_REQUIRED_USE} |
60 |
+ |
61 |
+S=${WORKDIR}/${PN}-${UPSTREAM_PV} |
62 |
+ |
63 |
+pkg_setup() { |
64 |
+ llvm_pkg_setup |
65 |
+ python-single-r1_pkg_setup |
66 |
+} |
67 |
+ |
68 |
+src_prepare() { |
69 |
+ cmake-utils_src_prepare |
70 |
+ python_fix_shebang . |
71 |
+} |
72 |
+ |
73 |
+src_configure() { |
74 |
+ local mycmakeargs=( |
75 |
+ # Note [llvm install path] |
76 |
+ # Unfortunately all binaries using clang driver |
77 |
+ # have to reside at the same path depth as |
78 |
+ # 'clang' binary itself. See bug #625972 |
79 |
+ # Thus as a hack we install it to the same directory |
80 |
+ # as llvm/clang itself. |
81 |
+ -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix "${LLVM_MAX_SLOT}")" |
82 |
+ ) |
83 |
+ cmake-utils_src_configure |
84 |
+} |
85 |
+ |
86 |
+src_test() { |
87 |
+ "${EPYTHON}" run_iwyu_tests.py |
88 |
+} |