Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/include-what-you-use/
Date: Fri, 08 Apr 2022 08:26:27
Message-Id: 1649406374.e44df6ee74cb29270f717eca970dfa5409567b8f.flow@gentoo
1 commit: e44df6ee74cb29270f717eca970dfa5409567b8f
2 Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 8 08:24:17 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 8 08:26:14 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e44df6ee
7
8 dev-util/include-what-you-use: add 0.18
9
10 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
11
12 dev-util/include-what-you-use/Manifest | 1 +
13 .../include-what-you-use-0.18.ebuild | 58 ++++++++++++++++++++++
14 2 files changed, 59 insertions(+)
15
16 diff --git a/dev-util/include-what-you-use/Manifest b/dev-util/include-what-you-use/Manifest
17 index c5487da81efb..8dd48d6f4fd0 100644
18 --- a/dev-util/include-what-you-use/Manifest
19 +++ b/dev-util/include-what-you-use/Manifest
20 @@ -1,2 +1,3 @@
21 DIST include-what-you-use-0.16.tar.gz 742573 BLAKE2B b8cd90db490d13f140126df8955d0968a9248480da09ca29b82fe1178c779ca75e6f29239bc6fb1556200c7d7c498f2340839e8500455ecaed9e6199fd3d55f7 SHA512 2923e18c40ddc5c03458b896d991adde03d489c6645ecc3cc4f69a508e323534afdef3233943e99533ffc21c64a10a8a5c635dc4797a61edf09d0a7a918a3cd5
22 DIST include-what-you-use-0.17.tar.gz 747385 BLAKE2B 0f584521b070eec6448d65d6dc4c4fe09110e85099d2696da82be800ee82522185f378c849559d899424a85864878d5b7b4790b900c438ef1f008262d6de6e28 SHA512 2439e3dd37163d3953fc1e45614fb4325be093a162f25d0f45fa8126b2313942a7c8d45ed12454dfbfeb4cb4fcf2f4e3eebdc0ec5da14dad23533f7a0bf58290
23 +DIST include-what-you-use-0.18.tar.gz 750341 BLAKE2B 6da65c3613abe36d09a07eb56cbc40054f9176771fea61fe9ad1b662abdb8b6d7e052f6c364d618856a5dbc54655157b2d023fa42cf7e7ddf9db8dc3e736cb67 SHA512 bfce2ff00b572961dcba83519959cbedaf1c2ec4bd4e0a2b8b6d12f440887ee64a1c9970fa1a80c7517898ce936219436ab709893cfed92891c5c2aa5d76770e
24
25 diff --git a/dev-util/include-what-you-use/include-what-you-use-0.18.ebuild b/dev-util/include-what-you-use/include-what-you-use-0.18.ebuild
26 new file mode 100644
27 index 000000000000..2afa1f67ebcc
28 --- /dev/null
29 +++ b/dev-util/include-what-you-use/include-what-you-use-0.18.ebuild
30 @@ -0,0 +1,58 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +
38 +inherit cmake llvm python-single-r1
39 +
40 +DESCRIPTION="Find unused include directives in C/C++ programs"
41 +HOMEPAGE="https://include-what-you-use.org/"
42 +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +
48 +LLVM_MAX_SLOT=14
49 +
50 +RDEPEND="
51 + sys-devel/clang:${LLVM_MAX_SLOT}
52 + sys-devel/llvm:${LLVM_MAX_SLOT}
53 + ${PYTHON_DEPS}
54 +"
55 +DEPEND="${RDEPEND}"
56 +
57 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
58 +
59 +llvm_check_deps() {
60 + has_version "sys-devel/clang:${LLVM_SLOT}"
61 +}
62 +
63 +pkg_setup() {
64 + llvm_pkg_setup
65 + python-single-r1_pkg_setup
66 +}
67 +
68 +src_prepare() {
69 + cmake_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_src_configure
84 +}
85 +
86 +src_test() {
87 + "${EPYTHON}" run_iwyu_tests.py
88 +}