Signed-off-by: Michał Górny <mgo...@gentoo.org>
---
 .../llvm-libunwind-10.0.1.9999.ebuild            | 16 ++--------------
 .../llvm-libunwind-10.0.1_rc1.ebuild             | 16 ++--------------
 .../llvm-libunwind-11.0.0.9999.ebuild            | 16 ++--------------
 3 files changed, 6 insertions(+), 42 deletions(-)

diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-10.0.1.9999.ebuild 
b/sys-libs/llvm-libunwind/llvm-libunwind-10.0.1.9999.ebuild
index 6d15a7f4a17c..711bac7d068f 100644
--- a/sys-libs/llvm-libunwind/llvm-libunwind-10.0.1.9999.ebuild
+++ b/sys-libs/llvm-libunwind/llvm-libunwind-10.0.1.9999.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 
 CMAKE_ECLASS=cmake
 PYTHON_COMPAT=( python3_{6..9} )
-inherit cmake-multilib llvm llvm.org multiprocessing python-any-r1
+inherit cmake-multilib llvm llvm.org python-any-r1
 
 DESCRIPTION="C++ runtime stack unwinder from LLVM"
 HOMEPAGE="https://github.com/llvm-mirror/libunwind";
@@ -27,9 +27,6 @@ BDEPEND="
        test? ( >=sys-devel/clang-3.9.0
                $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') )"
 
-# least intrusive of all
-CMAKE_BUILD_TYPE=RelWithDebInfo
-
 python_check_deps() {
        has_version "dev-python/lit[${PYTHON_USEDEP}]"
 }
@@ -38,13 +35,6 @@ pkg_setup() {
        use test && python-any-r1_pkg_setup
 }
 
-src_prepare() {
-       # cmake eclasses suck by forcing ${S} here
-       CMAKE_USE_DIR=${S} \
-       S=${WORKDIR} \
-       cmake_src_prepare
-}
-
 multilib_src_configure() {
        local libdir=$(get_libdir)
 
@@ -60,13 +50,11 @@ multilib_src_configure() {
        )
        if use test; then
                local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 
2>/dev/null)
-               local jobs=${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" 
"$(get_nproc)")}
-
                [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang 
for tests"
 
                mycmakeargs+=(
                        -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit"
-                       
-DLLVM_LIT_ARGS="-vv;-j;${jobs};--param=cxx_under_test=${clang_path}"
+                       
-DLLVM_LIT_ARGS="$(get_lit_flags);--param=cxx_under_test=${clang_path}"
                        -DLIBUNWIND_LIBCXX_PATH="${WORKDIR}/libcxx"
                )
        fi
diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-10.0.1_rc1.ebuild 
b/sys-libs/llvm-libunwind/llvm-libunwind-10.0.1_rc1.ebuild
index 6d15a7f4a17c..711bac7d068f 100644
--- a/sys-libs/llvm-libunwind/llvm-libunwind-10.0.1_rc1.ebuild
+++ b/sys-libs/llvm-libunwind/llvm-libunwind-10.0.1_rc1.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 
 CMAKE_ECLASS=cmake
 PYTHON_COMPAT=( python3_{6..9} )
-inherit cmake-multilib llvm llvm.org multiprocessing python-any-r1
+inherit cmake-multilib llvm llvm.org python-any-r1
 
 DESCRIPTION="C++ runtime stack unwinder from LLVM"
 HOMEPAGE="https://github.com/llvm-mirror/libunwind";
@@ -27,9 +27,6 @@ BDEPEND="
        test? ( >=sys-devel/clang-3.9.0
                $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') )"
 
-# least intrusive of all
-CMAKE_BUILD_TYPE=RelWithDebInfo
-
 python_check_deps() {
        has_version "dev-python/lit[${PYTHON_USEDEP}]"
 }
@@ -38,13 +35,6 @@ pkg_setup() {
        use test && python-any-r1_pkg_setup
 }
 
-src_prepare() {
-       # cmake eclasses suck by forcing ${S} here
-       CMAKE_USE_DIR=${S} \
-       S=${WORKDIR} \
-       cmake_src_prepare
-}
-
 multilib_src_configure() {
        local libdir=$(get_libdir)
 
@@ -60,13 +50,11 @@ multilib_src_configure() {
        )
        if use test; then
                local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 
2>/dev/null)
-               local jobs=${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" 
"$(get_nproc)")}
-
                [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang 
for tests"
 
                mycmakeargs+=(
                        -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit"
-                       
-DLLVM_LIT_ARGS="-vv;-j;${jobs};--param=cxx_under_test=${clang_path}"
+                       
-DLLVM_LIT_ARGS="$(get_lit_flags);--param=cxx_under_test=${clang_path}"
                        -DLIBUNWIND_LIBCXX_PATH="${WORKDIR}/libcxx"
                )
        fi
diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-11.0.0.9999.ebuild 
b/sys-libs/llvm-libunwind/llvm-libunwind-11.0.0.9999.ebuild
index 6d15a7f4a17c..711bac7d068f 100644
--- a/sys-libs/llvm-libunwind/llvm-libunwind-11.0.0.9999.ebuild
+++ b/sys-libs/llvm-libunwind/llvm-libunwind-11.0.0.9999.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 
 CMAKE_ECLASS=cmake
 PYTHON_COMPAT=( python3_{6..9} )
-inherit cmake-multilib llvm llvm.org multiprocessing python-any-r1
+inherit cmake-multilib llvm llvm.org python-any-r1
 
 DESCRIPTION="C++ runtime stack unwinder from LLVM"
 HOMEPAGE="https://github.com/llvm-mirror/libunwind";
@@ -27,9 +27,6 @@ BDEPEND="
        test? ( >=sys-devel/clang-3.9.0
                $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') )"
 
-# least intrusive of all
-CMAKE_BUILD_TYPE=RelWithDebInfo
-
 python_check_deps() {
        has_version "dev-python/lit[${PYTHON_USEDEP}]"
 }
@@ -38,13 +35,6 @@ pkg_setup() {
        use test && python-any-r1_pkg_setup
 }
 
-src_prepare() {
-       # cmake eclasses suck by forcing ${S} here
-       CMAKE_USE_DIR=${S} \
-       S=${WORKDIR} \
-       cmake_src_prepare
-}
-
 multilib_src_configure() {
        local libdir=$(get_libdir)
 
@@ -60,13 +50,11 @@ multilib_src_configure() {
        )
        if use test; then
                local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 
2>/dev/null)
-               local jobs=${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" 
"$(get_nproc)")}
-
                [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang 
for tests"
 
                mycmakeargs+=(
                        -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit"
-                       
-DLLVM_LIT_ARGS="-vv;-j;${jobs};--param=cxx_under_test=${clang_path}"
+                       
-DLLVM_LIT_ARGS="$(get_lit_flags);--param=cxx_under_test=${clang_path}"
                        -DLIBUNWIND_LIBCXX_PATH="${WORKDIR}/libcxx"
                )
        fi
-- 
2.27.0


Reply via email to