1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
7 inherit llvm.org python-r1
9 DESCRIPTION="Python bindings for sys-devel/clang"
10 HOMEPAGE="https://llvm.org/"
11 LLVM_COMPONENTS=( clang/bindings/python )
14 LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
16 KEYWORDS="~amd64 ~arm ~arm64 ~x86"
18 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
19 RESTRICT="!test? ( test )"
21 # The module is opening libclang.so directly, and doing some blasphemy
24 >=sys-devel/clang-${PV}:*
25 !sys-devel/llvm:0[clang(-),python(-)]
26 !sys-devel/clang:0[python(-)]
31 "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}"
35 python_foreach_impl python_test
39 python_foreach_impl python_domodule clang