1 |
commit: 8ba1f92adf19943d5ef646291e98c338a360c459 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 25 21:10:21 2021 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 25 21:10:50 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ba1f92a |
7 |
|
8 |
dev-util/include-what-you-use: bump up to 12.0 |
9 |
|
10 |
Package-Manager: Portage-3.0.19, Repoman-3.0.3 |
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-12.0.ebuild | 62 ++++++++++++++++++++++ |
15 |
2 files changed, 63 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/include-what-you-use/Manifest b/dev-util/include-what-you-use/Manifest |
18 |
index 03e0eed1375..76cb95843f4 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-11.0.tar.gz 603435 BLAKE2B 7bfa37349cc4bf5d07033c28d9d3851f0ce2093f1703a0392ac633ab2761dfdfb7cd923099177747e3389d2d41330351242c6f936399acf73119c201d8776978 SHA512 db15efa9b92015322e9a188be6cf16a5c6fd71271c94fde45245676f2a8f6ffe4c7837e3b0bb5f9be6cbe78aab245129816a3b046c44c261a2b7ab5c3a9ea7b9 |
23 |
+DIST include-what-you-use-12.0.tar.gz 742573 BLAKE2B b8cd90db490d13f140126df8955d0968a9248480da09ca29b82fe1178c779ca75e6f29239bc6fb1556200c7d7c498f2340839e8500455ecaed9e6199fd3d55f7 SHA512 2923e18c40ddc5c03458b896d991adde03d489c6645ecc3cc4f69a508e323534afdef3233943e99533ffc21c64a10a8a5c635dc4797a61edf09d0a7a918a3cd5 |
24 |
|
25 |
diff --git a/dev-util/include-what-you-use/include-what-you-use-12.0.ebuild b/dev-util/include-what-you-use/include-what-you-use-12.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..ecd93d6af5f |
28 |
--- /dev/null |
29 |
+++ b/dev-util/include-what-you-use/include-what-you-use-12.0.ebuild |
30 |
@@ -0,0 +1,62 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{7,8,9,10} ) |
37 |
+ |
38 |
+inherit cmake flag-o-matic llvm python-single-r1 |
39 |
+ |
40 |
+# Sometimes the tag is clang_9, sometimes it's IWYU-0.13 |
41 |
+UPSTREAM_PV=0.16 |
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=12 |
52 |
+ |
53 |
+RDEPEND=" |
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 |
+llvm_check_deps() { |
64 |
+ has_version "sys-devel/clang:${LLVM_SLOT}" |
65 |
+} |
66 |
+ |
67 |
+pkg_setup() { |
68 |
+ llvm_pkg_setup |
69 |
+ python-single-r1_pkg_setup |
70 |
+} |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ cmake_src_prepare |
74 |
+ python_fix_shebang . |
75 |
+} |
76 |
+ |
77 |
+src_configure() { |
78 |
+ local mycmakeargs=( |
79 |
+ # Note [llvm install path] |
80 |
+ # Unfortunately all binaries using clang driver |
81 |
+ # have to reside at the same path depth as |
82 |
+ # 'clang' binary itself. See bug #625972 |
83 |
+ # Thus as a hack we install it to the same directory |
84 |
+ # as llvm/clang itself. |
85 |
+ -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix "${LLVM_MAX_SLOT}")" |
86 |
+ ) |
87 |
+ cmake_src_configure |
88 |
+} |
89 |
+ |
90 |
+src_test() { |
91 |
+ "${EPYTHON}" run_iwyu_tests.py |
92 |
+} |