sys-devel/clang: Use installed lit for tests
authorMichał Górny <mgorny@gentoo.org>
Sat, 1 Oct 2016 11:45:23 +0000 (13:45 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sat, 1 Oct 2016 13:05:59 +0000 (15:05 +0200)
sys-devel/clang/clang-9999.ebuild

index c201bba2cea8d1d0637f10c967c2da0ff71848bd..cedfc02923f9c86c1cc24134dfe59c9c1f9225ef 100644 (file)
@@ -38,6 +38,7 @@ RDEPEND="
 # configparser-3.2 breaks the build (3.3 or none at all are fine)
 DEPEND="${RDEPEND}
        doc? ( dev-python/sphinx )
+       test? ( dev-python/lit[${PYTHON_USEDEP}] )
        xml? ( virtual/pkgconfig )
        !!<dev-python/configparser-3.3.0.2
        ${PYTHON_DEPS}"
@@ -160,6 +161,9 @@ multilib_src_configure() {
        )
        use test && mycmakeargs+=(
                -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
+               -DLIT_COMMAND="${EPREFIX}/usr/bin/lit"
+       fi
+
        )
 
        if multilib_is_native_abi; then