commit: 2ab8e37dec3077908ffcc69f10578caae6936c31
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 1 11:35:18 2016 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Oct 1 13:05:57 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ab8e37d
sys-devel/llvm: Use installed lit for tests
sys-devel/llvm/llvm-9999.ebuild | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild
index 6af306e..4717837 100644
--- a/sys-devel/llvm/llvm-9999.ebuild
+++ b/sys-devel/llvm/llvm-9999.ebuild
@@ -51,6 +51,7 @@ DEPEND="${RDEPEND}
libffi? ( virtual/pkgconfig )
ocaml? ( dev-ml/findlib
test? ( dev-ml/ounit ) )
+ test? ( $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') )
!!<dev-python/configparser-3.3.0.2
${PYTHON_DEPS}"
@@ -58,6 +59,11 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}
|| ( ${ALL_LLVM_TARGETS[*]} )
multitarget? ( ${ALL_LLVM_TARGETS[*]} )"
+python_check_deps() {
+ ! use test \
+ || has_version "dev-python/lit[${PYTHON_USEDEP}]"
+}
+
pkg_pretend() {
# in megs
# !debug !multitarget -O2 400
@@ -168,6 +174,10 @@ multilib_src_configure() {
)
# fi
+ use test && mycmakeargs+=(
+ -DLIT_COMMAND="${EPREFIX}/usr/bin/lit"
+ )
+
if multilib_is_native_abi; then
mycmakeargs+=(
-DLLVM_BUILD_DOCS=$(usex doc)