Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/include-what-you-use/
Date: Wed, 19 Jul 2017 08:27:45
Message-Id: 1500452858.78579a637842b8fbca0df36d32a83183f53fea28.slyfox@gentoo
1 commit: 78579a637842b8fbca0df36d32a83183f53fea28
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 19 08:27:24 2017 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 19 08:27:38 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78579a63
7
8 dev-util/include-what-you-use: bump up to 4.0, clang-4 compatible, bug #625528
9
10 Upstream did not yet publish the release on it's site.
11 We might need to update the ebuild if release re-cut happens.
12
13 Reported-by: Daniel M. Weeks
14 Bug: https://bugs.gentoo.org/625528
15 Package-Manager: Portage-2.3.6, Repoman-2.3.3
16
17 dev-util/include-what-you-use/Manifest | 1 +
18 .../include-what-you-use-4.0.ebuild | 43 ++++++++++++++++++++++
19 2 files changed, 44 insertions(+)
20
21 diff --git a/dev-util/include-what-you-use/Manifest b/dev-util/include-what-you-use/Manifest
22 index 23c05a1d0b8..78604e47b64 100644
23 --- a/dev-util/include-what-you-use/Manifest
24 +++ b/dev-util/include-what-you-use/Manifest
25 @@ -1 +1,2 @@
26 DIST include-what-you-use-3.9.src.tar.gz 446773 SHA256 bbea3ddbd2e0990f4edd92a994a94ca24e2ee0edba6bd5612f62e872554d777a SHA512 dd7990fa4112ddb0434807efd9dcf0f77bbecaa61eab51be24428f8e45b9321c7647a979278f3f1266ba9be05c6f1de536fc084613d38638b795248001ce4b44 WHIRLPOOL 67b4acabb887cb80c290817ab848a115b2559bcc5187f05e320ea4bdef6e9915766d824069ce1f060058ba3597b85223419fb4d932ebb536d25ef0a6de64aee2
27 +DIST include-what-you-use-4.0.src.tar.gz 437340 SHA256 8f6d4a279afcbbfa7247a97a03d9abc1d6834954eec7ba733519401392b328c6 SHA512 c96b78ec8f8289bfd7830acaf533aea0077bb36311d3b8bb7f31464c1b3a5b3f353b24e81ffc581811b4083d3b5959e4e947e3a3d16cb7c77de00b05b9972a90 WHIRLPOOL 63fc4df0ca3be81a8856aec22bffe3dbdebde060a91c85b38ad2e1202d8e20291d006c1739851434cc5c98dc6b3b66b9287623a8576976c741dfd6c08f5677c6
28
29 diff --git a/dev-util/include-what-you-use/include-what-you-use-4.0.ebuild b/dev-util/include-what-you-use/include-what-you-use-4.0.ebuild
30 new file mode 100644
31 index 00000000000..cb7b16cd717
32 --- /dev/null
33 +++ b/dev-util/include-what-you-use/include-what-you-use-4.0.ebuild
34 @@ -0,0 +1,43 @@
35 +# Copyright 1999-2017 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
41 +
42 +inherit cmake-utils flag-o-matic 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 +RDEPEND="=sys-devel/llvm-${PV}*
53 + =sys-devel/clang-${PV}*
54 + ${PYTHON_DEPS}
55 +"
56 +DEPEND="${RDEPEND}"
57 +
58 +REQUIRED_USE=${PYTHON_REQUIRED_USE}
59 +
60 +S=${WORKDIR}/${PN}-clang_${PV}
61 +
62 +src_prepare() {
63 + python_fix_shebang .
64 + default
65 +}
66 +
67 +src_configure() {
68 + local mycmakeargs=(
69 + -DIWYU_LLVM_INCLUDE_PATH=$(llvm-config --includedir)
70 + -DIWYU_LLVM_LIB_PATH=$(llvm-config --libdir)
71 + )
72 + cmake-utils_src_configure
73 +}
74 +
75 +src_test() {
76 + "${EPYTHON}" run_iwyu_tests.py
77 +}