1 |
commit: 2ab8e37dec3077908ffcc69f10578caae6936c31 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 1 11:35:18 2016 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 1 13:05:57 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ab8e37d |
7 |
|
8 |
sys-devel/llvm: Use installed lit for tests |
9 |
|
10 |
sys-devel/llvm/llvm-9999.ebuild | 10 ++++++++++ |
11 |
1 file changed, 10 insertions(+) |
12 |
|
13 |
diff --git a/sys-devel/llvm/llvm-9999.ebuild b/sys-devel/llvm/llvm-9999.ebuild |
14 |
index 6af306e..4717837 100644 |
15 |
--- a/sys-devel/llvm/llvm-9999.ebuild |
16 |
+++ b/sys-devel/llvm/llvm-9999.ebuild |
17 |
@@ -51,6 +51,7 @@ DEPEND="${RDEPEND} |
18 |
libffi? ( virtual/pkgconfig ) |
19 |
ocaml? ( dev-ml/findlib |
20 |
test? ( dev-ml/ounit ) ) |
21 |
+ test? ( $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') ) |
22 |
!!<dev-python/configparser-3.3.0.2 |
23 |
${PYTHON_DEPS}" |
24 |
|
25 |
@@ -58,6 +59,11 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE} |
26 |
|| ( ${ALL_LLVM_TARGETS[*]} ) |
27 |
multitarget? ( ${ALL_LLVM_TARGETS[*]} )" |
28 |
|
29 |
+python_check_deps() { |
30 |
+ ! use test \ |
31 |
+ || has_version "dev-python/lit[${PYTHON_USEDEP}]" |
32 |
+} |
33 |
+ |
34 |
pkg_pretend() { |
35 |
# in megs |
36 |
# !debug !multitarget -O2 400 |
37 |
@@ -168,6 +174,10 @@ multilib_src_configure() { |
38 |
) |
39 |
# fi |
40 |
|
41 |
+ use test && mycmakeargs+=( |
42 |
+ -DLIT_COMMAND="${EPREFIX}/usr/bin/lit" |
43 |
+ ) |
44 |
+ |
45 |
if multilib_is_native_abi; then |
46 |
mycmakeargs+=( |
47 |
-DLLVM_BUILD_DOCS=$(usex doc) |