1 |
commit: 28ecdeb42c2eb1913b911dba62f72bc75dfa4cc9 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Apr 26 15:32:06 2019 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 26 15:32:06 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28ecdeb4 |
7 |
|
8 |
dev-util/include-what-you-use: bump up to 8.0 |
9 |
|
10 |
This release is compatible with llvm-8 \o/ |
11 |
|
12 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
13 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
14 |
|
15 |
dev-util/include-what-you-use/Manifest | 1 + |
16 |
.../include-what-you-use-8.0.ebuild | 55 ++++++++++++++++++++++ |
17 |
2 files changed, 56 insertions(+) |
18 |
|
19 |
diff --git a/dev-util/include-what-you-use/Manifest b/dev-util/include-what-you-use/Manifest |
20 |
index 109f68dafce..223f43a4405 100644 |
21 |
--- a/dev-util/include-what-you-use/Manifest |
22 |
+++ b/dev-util/include-what-you-use/Manifest |
23 |
@@ -2,3 +2,4 @@ DIST include-what-you-use-4.0.src.tar.gz 437340 BLAKE2B 744f7893169a637636107e23 |
24 |
DIST include-what-you-use-5.0.src.tar.gz 439081 BLAKE2B 85246aa5333a073bb195b873d7bfe084a56c343cece92322706717ce699bcd75b737203858277202791ec0eb91f560b06a371e902cb175cdb2858562a4830e74 SHA512 9d4a9717a3a3f6752f8bdd1392b6d7a5e8b8dc277ef46a50f24185a089360380e1da92a61fd150598843f5c24cff03e74bc674e57579960d977acde755e34c52 |
25 |
DIST include-what-you-use-6.0.src.tar.gz 440406 BLAKE2B 485a61dd4f72c158ad9c798c8121d7af9134d79b94c9c30c14674a62007e9fc05acc7e2341cc3282288611beb9138768bf11cd2d73efed372adab83e90b268db SHA512 2bf2593dba252d870074125f976a237e901e969323969f2c8fb030e8376bb230f1d5c2baecc8cd8fad7099e83589c7666c44cd178d2094f6e883cace1e53ad90 |
26 |
DIST include-what-you-use-7.0.src.tar.gz 541840 BLAKE2B bf20a5598f02f03e5f714582653b8062eab6e414967ef2374c28bb6c1cdce8f73f80e3b2f4953fd943587ce17dc657cf6ab2a9db4208a59030d432f6a40532e5 SHA512 50d186b2e09c3595cc2dc7513e5db74da0038987158c2c45ef4279c67c50de621ca6499b07894ee203f25566aafaddde4b05840946f921678499d2efc131575a |
27 |
+DIST include-what-you-use-8.0.src.tar.gz 545788 BLAKE2B 7b70d951b7ab2d62a8a6168ebf86dc76fd406159155dd93a509b8c39953506166ac18da3028be8dc7edfbb39eb96613b0e344067154dd8614fe7c63ad3ef04c6 SHA512 e75e91ce198b1ec446ed34afcf9fdbcb0534c5edc5346e4884f0f589c73512d778c428aa71c1b109d45a45543a952438610ab21e32ef1f03ff1a014823ed8425 |
28 |
|
29 |
diff --git a/dev-util/include-what-you-use/include-what-you-use-8.0.ebuild b/dev-util/include-what-you-use/include-what-you-use-8.0.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..b976a734afb |
32 |
--- /dev/null |
33 |
+++ b/dev-util/include-what-you-use/include-what-you-use-8.0.ebuild |
34 |
@@ -0,0 +1,55 @@ |
35 |
+# Copyright 1999-2019 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=6 |
39 |
+ |
40 |
+PYTHON_COMPAT=( python2_7 python3_{5,6} ) |
41 |
+ |
42 |
+inherit cmake-utils flag-o-matic llvm python-single-r1 |
43 |
+ |
44 |
+DESCRIPTION="Find unused include directives in C/C++ programs" |
45 |
+HOMEPAGE="https://include-what-you-use.org/" |
46 |
+SRC_URI="https://github.com/${PN}/${PN}/archive/clang_${PV}.tar.gz -> ${P}.src.tar.gz" |
47 |
+ |
48 |
+LICENSE="GPL-2" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+ |
52 |
+LLVM_MAX_SLOT=8 |
53 |
+ |
54 |
+RDEPEND="sys-devel/llvm:${LLVM_MAX_SLOT} |
55 |
+ sys-devel/clang:${LLVM_MAX_SLOT} |
56 |
+ ${PYTHON_DEPS} |
57 |
+" |
58 |
+DEPEND="${RDEPEND}" |
59 |
+ |
60 |
+REQUIRED_USE=${PYTHON_REQUIRED_USE} |
61 |
+ |
62 |
+S=${WORKDIR}/${PN}-clang_${PV} |
63 |
+ |
64 |
+pkg_setup() { |
65 |
+ llvm_pkg_setup |
66 |
+ python-single-r1_pkg_setup |
67 |
+} |
68 |
+ |
69 |
+src_prepare() { |
70 |
+ cmake-utils_src_prepare |
71 |
+ python_fix_shebang . |
72 |
+} |
73 |
+ |
74 |
+src_configure() { |
75 |
+ local mycmakeargs=( |
76 |
+ # Note [llvm install path] |
77 |
+ # Unfortunately all binaries using clang driver |
78 |
+ # have to reside at the same path depth as |
79 |
+ # 'clang' binary itself. See bug #625972 |
80 |
+ # Thus as a hack we install it to the same directory |
81 |
+ # as llvm/clang itself. |
82 |
+ -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix "${LLVM_MAX_SLOT}")" |
83 |
+ ) |
84 |
+ cmake-utils_src_configure |
85 |
+} |
86 |
+ |
87 |
+src_test() { |
88 |
+ "${EPYTHON}" run_iwyu_tests.py |
89 |
+} |