diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2016-11-05 20:21:00 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2016-11-05 20:21:06 +0000 |
commit | a8ee461d9a6a803e73ac89c92392ef6a4b532aa4 (patch) | |
tree | 37c45a7356146448966d7c521e34b85776024fea /dev-util | |
parent | 87ea3648133394279aacfd2d2340dfca9c9ed92d (diff) | |
download | gentoo-a8ee461d9a6a803e73ac89c92392ef6a4b532aa4.tar.gz gentoo-a8ee461d9a6a803e73ac89c92392ef6a4b532aa4.tar.xz |
dev-util/include-what-you-use: bump up to 3.9, bug #598778
I've only slightly tweaked nado@'s ebuild.
Bug: https://bugs.gentoo.org/598778
Reported-by: nado@troglodyte.be
Package-Manager: portage-2.3.2
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/include-what-you-use/Manifest | 1 | ||||
-rw-r--r-- | dev-util/include-what-you-use/include-what-you-use-3.9.ebuild | 46 |
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-util/include-what-you-use/Manifest b/dev-util/include-what-you-use/Manifest index 3215c150066..4bf20b0f832 100644 --- a/dev-util/include-what-you-use/Manifest +++ b/dev-util/include-what-you-use/Manifest @@ -2,3 +2,4 @@ DIST include-what-you-use-3.5.src.tar.gz 302759 SHA256 bc8475fc853a4b60941eb30ea DIST include-what-you-use-3.6.src.tar.gz 308678 SHA256 0571fe55c0af5d38bfd5e71d8d4743f09f2d404e3725a027b20665b7f983fca6 SHA512 3d8c80e6f60f24774cb7b6fae53f4fac2ef368737a1cd8646c3b80029b2b1d0e439aa4185935759dc37e2b9a3ee06e79af8b262af8bbfd38597d8c509942356b WHIRLPOOL c886169f7bb1bc1ff8f89e25452558607f1ad9cff5b45bbf5e9a0ee129695a2741baa2c144d1198a488fa0455b055722db4404f8b0e843100891aa19fd2abe58 DIST include-what-you-use-3.7.src.tar.gz 404081 SHA256 ef2b6a62bf82455148bbe2a711245a7fd3ee36a9b8ab431d50d683fd6346e538 SHA512 805395873b59e4f4236853ba9ac6818d60968190ad485d580ea80d69c518eb8c44822a4281a4219b4ccc02e2dc8f3db5c470170e27e67ea0d8e04ef78da9078c WHIRLPOOL d83d26afb1ffed8652b2c15b38fc5546f1302999009778d7e116abfe2ee574206fcded09712f26fd6d0f1d509a0a1cfa40ae37bd3d18e1c5b63a2ce457f23336 DIST include-what-you-use-3.8.src.tar.gz 434980 SHA256 ab2faddc5c80faaa52462abd2e90fad6c9cab6277ae588c6a019f8b5dc257f58 SHA512 9dcc37666819084a0e084513c62599b8ffb6f9eb8a9de759d4b1e2813ae759f2aed2e2233fdc6428dc676668102b738fe7bd990561293626d9aa427849ccec35 WHIRLPOOL 4e7176977a9db0d824ccaa7dfc82f592bfa1b3225d7f270d6f20271bc9a9953cd9fade3322bbf7e44fc1e846c0a48fe901025de866828c101e6938ab9ac27bde +DIST include-what-you-use-3.9.src.tar.gz 446773 SHA256 bbea3ddbd2e0990f4edd92a994a94ca24e2ee0edba6bd5612f62e872554d777a SHA512 dd7990fa4112ddb0434807efd9dcf0f77bbecaa61eab51be24428f8e45b9321c7647a979278f3f1266ba9be05c6f1de536fc084613d38638b795248001ce4b44 WHIRLPOOL 67b4acabb887cb80c290817ab848a115b2559bcc5187f05e320ea4bdef6e9915766d824069ce1f060058ba3597b85223419fb4d932ebb536d25ef0a6de64aee2 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 new file mode 100644 index 00000000000..60635bac75c --- /dev/null +++ b/dev-util/include-what-you-use/include-what-you-use-3.9.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +PYTHON_COMPAT=( python2_7 python3_{4,5} ) + +inherit cmake-utils flag-o-matic python-single-r1 + +WEIRD_UPSTREAM_VERSION=0.7 + +DESCRIPTION="Find unused include directives in C/C++ programs" +HOMEPAGE="http://include-what-you-use.org/" +SRC_URI="http://include-what-you-use.org/downloads/${PN}-${WEIRD_UPSTREAM_VERSION}.src.tar.gz -> ${P}.src.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="=sys-devel/llvm-${PV}* + =sys-devel/clang-${PV}* + ${PYTHON_DEPS} +" +DEPEND="${RDEPEND}" + +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +S=${WORKDIR}/llvm/tools/clang/tools/${PN} + +src_prepare() { + python_fix_shebang . + default +} + +src_configure() { + local mycmakeargs=( + -DIWYU_LLVM_INCLUDE_PATH=$(llvm-config --includedir) + -DIWYU_LLVM_LIB_PATH=$(llvm-config --libdir) + ) + cmake-utils_src_configure +} + +src_test() { + "${EPYTHON}" run_iwyu_tests.py +} |