diff options
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/include-what-you-use/Manifest | 3 | ||||
-rw-r--r-- | dev-util/include-what-you-use/include-what-you-use-12.0.ebuild | 62 | ||||
-rw-r--r-- | dev-util/include-what-you-use/metadata.xml | 11 |
3 files changed, 76 insertions, 0 deletions
diff --git a/dev-util/include-what-you-use/Manifest b/dev-util/include-what-you-use/Manifest new file mode 100644 index 0000000..0a37051 --- /dev/null +++ b/dev-util/include-what-you-use/Manifest @@ -0,0 +1,3 @@ +DIST include-what-you-use-12.0.tar.gz 603435 BLAKE2B 7bfa37349cc4bf5d07033c28d9d3851f0ce2093f1703a0392ac633ab2761dfdfb7cd923099177747e3389d2d41330351242c6f936399acf73119c201d8776978 SHA512 db15efa9b92015322e9a188be6cf16a5c6fd71271c94fde45245676f2a8f6ffe4c7837e3b0bb5f9be6cbe78aab245129816a3b046c44c261a2b7ab5c3a9ea7b9 +EBUILD include-what-you-use-12.0.ebuild 1308 BLAKE2B 5f2a215ffcfeeec7430711e1cba5d33caa191cfe4190ccf56116b6d4c0757a7025c42930c6f7a4335858019e1cbde4d6abf80887bc0bb4284c40ffeee1dfa92d SHA512 0b649dbb9fa72f98fe9ddea779b897908822b2bac0a8059489346305273980f1648e2fb23034fa632c232fc4e6ba68e733308dd57af788e5871966e974a3c3fe +MISC metadata.xml 357 BLAKE2B f14a0380bab03b4bb916602ed495cf9c29a4ca5839f71dca0d5f4f14eeb5fd0ddaa66dfcb15d94cbeec2a9021a9e5522ef7ae531b5b6f111b769462596da4216 SHA512 03c298d184adee1c8bd96855ba3856dbc6797f6f866397485cc10c3e02956f7bb04811a086e9cf50bbd6f996011d08ca2d272aa4b06f13ee62af5a585f67b492 diff --git a/dev-util/include-what-you-use/include-what-you-use-12.0.ebuild b/dev-util/include-what-you-use/include-what-you-use-12.0.ebuild new file mode 100644 index 0000000..57019d3 --- /dev/null +++ b/dev-util/include-what-you-use/include-what-you-use-12.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7,8,9,10} ) + +inherit cmake flag-o-matic llvm python-single-r1 + +# Sometimes the tag is clang_9, sometimes it's IWYU-0.13 +UPSTREAM_PV=0.15 + +DESCRIPTION="Find unused include directives in C/C++ programs" +HOMEPAGE="https://include-what-you-use.org/" +SRC_URI="https://github.com/${PN}/${PN}/archive/${UPSTREAM_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +LLVM_MAX_SLOT=12 + +RDEPEND=" + sys-devel/clang:${LLVM_MAX_SLOT}= + ${PYTHON_DEPS} +" +DEPEND="${RDEPEND}" + +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +S=${WORKDIR}/${PN}-${UPSTREAM_PV} + +llvm_check_deps() { + has_version "sys-devel/clang:${LLVM_SLOT}" +} + +pkg_setup() { + llvm_pkg_setup + python-single-r1_pkg_setup +} + +src_prepare() { + cmake_src_prepare + python_fix_shebang . +} + +src_configure() { + local mycmakeargs=( + # Note [llvm install path] + # Unfortunately all binaries using clang driver + # have to reside at the same path depth as + # 'clang' binary itself. See bug #625972 + # Thus as a hack we install it to the same directory + # as llvm/clang itself. + -DCMAKE_INSTALL_PREFIX="$(get_llvm_prefix "${LLVM_MAX_SLOT}")" + ) + cmake_src_configure +} + +src_test() { + "${EPYTHON}" run_iwyu_tests.py +} diff --git a/dev-util/include-what-you-use/metadata.xml b/dev-util/include-what-you-use/metadata.xml new file mode 100644 index 0000000..06df0e1 --- /dev/null +++ b/dev-util/include-what-you-use/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>slyfox@gentoo.org</email> + <name>Sergei Trofimovich</name> + </maintainer> + <upstream> + <remote-id type="github">include-what-you-use/include-what-you-use</remote-id> + </upstream> +</pkgmetadata> |