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: Sat, 05 Nov 2016 20:21:21
Message-Id: 1478377266.a8ee461d9a6a803e73ac89c92392ef6a4b532aa4.slyfox@gentoo
1 commit: a8ee461d9a6a803e73ac89c92392ef6a4b532aa4
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 5 20:21:00 2016 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 5 20:21:06 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8ee461d
7
8 dev-util/include-what-you-use: bump up to 3.9, bug #598778
9
10 I've only slightly tweaked nado@'s ebuild.
11
12 Bug: https://bugs.gentoo.org/598778
13 Reported-by: nado <AT> troglodyte.be
14
15 Package-Manager: portage-2.3.2
16
17 dev-util/include-what-you-use/Manifest | 1 +
18 .../include-what-you-use-3.9.ebuild | 46 ++++++++++++++++++++++
19 2 files changed, 47 insertions(+)
20
21 diff --git a/dev-util/include-what-you-use/Manifest b/dev-util/include-what-you-use/Manifest
22 index 3215c15..4bf20b0 100644
23 --- a/dev-util/include-what-you-use/Manifest
24 +++ b/dev-util/include-what-you-use/Manifest
25 @@ -2,3 +2,4 @@ DIST include-what-you-use-3.5.src.tar.gz 302759 SHA256 bc8475fc853a4b60941eb30ea
26 DIST include-what-you-use-3.6.src.tar.gz 308678 SHA256 0571fe55c0af5d38bfd5e71d8d4743f09f2d404e3725a027b20665b7f983fca6 SHA512 3d8c80e6f60f24774cb7b6fae53f4fac2ef368737a1cd8646c3b80029b2b1d0e439aa4185935759dc37e2b9a3ee06e79af8b262af8bbfd38597d8c509942356b WHIRLPOOL c886169f7bb1bc1ff8f89e25452558607f1ad9cff5b45bbf5e9a0ee129695a2741baa2c144d1198a488fa0455b055722db4404f8b0e843100891aa19fd2abe58
27 DIST include-what-you-use-3.7.src.tar.gz 404081 SHA256 ef2b6a62bf82455148bbe2a711245a7fd3ee36a9b8ab431d50d683fd6346e538 SHA512 805395873b59e4f4236853ba9ac6818d60968190ad485d580ea80d69c518eb8c44822a4281a4219b4ccc02e2dc8f3db5c470170e27e67ea0d8e04ef78da9078c WHIRLPOOL d83d26afb1ffed8652b2c15b38fc5546f1302999009778d7e116abfe2ee574206fcded09712f26fd6d0f1d509a0a1cfa40ae37bd3d18e1c5b63a2ce457f23336
28 DIST include-what-you-use-3.8.src.tar.gz 434980 SHA256 ab2faddc5c80faaa52462abd2e90fad6c9cab6277ae588c6a019f8b5dc257f58 SHA512 9dcc37666819084a0e084513c62599b8ffb6f9eb8a9de759d4b1e2813ae759f2aed2e2233fdc6428dc676668102b738fe7bd990561293626d9aa427849ccec35 WHIRLPOOL 4e7176977a9db0d824ccaa7dfc82f592bfa1b3225d7f270d6f20271bc9a9953cd9fade3322bbf7e44fc1e846c0a48fe901025de866828c101e6938ab9ac27bde
29 +DIST include-what-you-use-3.9.src.tar.gz 446773 SHA256 bbea3ddbd2e0990f4edd92a994a94ca24e2ee0edba6bd5612f62e872554d777a SHA512 dd7990fa4112ddb0434807efd9dcf0f77bbecaa61eab51be24428f8e45b9321c7647a979278f3f1266ba9be05c6f1de536fc084613d38638b795248001ce4b44 WHIRLPOOL 67b4acabb887cb80c290817ab848a115b2559bcc5187f05e320ea4bdef6e9915766d824069ce1f060058ba3597b85223419fb4d932ebb536d25ef0a6de64aee2
30
31 diff --git a/dev-util/include-what-you-use/include-what-you-use-3.9.ebuild b/dev-util/include-what-you-use/include-what-you-use-3.9.ebuild
32 new file mode 100644
33 index 00000000..60635ba
34 --- /dev/null
35 +++ b/dev-util/include-what-you-use/include-what-you-use-3.9.ebuild
36 @@ -0,0 +1,46 @@
37 +# Copyright 1999-2016 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +# $Id$
40 +
41 +EAPI=6
42 +
43 +PYTHON_COMPAT=( python2_7 python3_{4,5} )
44 +
45 +inherit cmake-utils flag-o-matic python-single-r1
46 +
47 +WEIRD_UPSTREAM_VERSION=0.7
48 +
49 +DESCRIPTION="Find unused include directives in C/C++ programs"
50 +HOMEPAGE="http://include-what-you-use.org/"
51 +SRC_URI="http://include-what-you-use.org/downloads/${PN}-${WEIRD_UPSTREAM_VERSION}.src.tar.gz -> ${P}.src.tar.gz"
52 +
53 +LICENSE="GPL-2"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~x86"
56 +
57 +RDEPEND="=sys-devel/llvm-${PV}*
58 + =sys-devel/clang-${PV}*
59 + ${PYTHON_DEPS}
60 +"
61 +DEPEND="${RDEPEND}"
62 +
63 +REQUIRED_USE=${PYTHON_REQUIRED_USE}
64 +
65 +S=${WORKDIR}/llvm/tools/clang/tools/${PN}
66 +
67 +src_prepare() {
68 + python_fix_shebang .
69 + default
70 +}
71 +
72 +src_configure() {
73 + local mycmakeargs=(
74 + -DIWYU_LLVM_INCLUDE_PATH=$(llvm-config --includedir)
75 + -DIWYU_LLVM_LIB_PATH=$(llvm-config --libdir)
76 + )
77 + cmake-utils_src_configure
78 +}
79 +
80 +src_test() {
81 + "${EPYTHON}" run_iwyu_tests.py
82 +}