# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{8..11} ) inherit cmake-multilib flag-o-matic llvm llvm.org python-any-r1 \ toolchain-funcs DESCRIPTION="Low level support for a standard C++ library" HOMEPAGE="https://libcxxabi.llvm.org/" LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" SLOT="0" KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~sparc ~x86 ~x64-macos" IUSE="+clang static-libs test" REQUIRED_USE="test? ( clang )" RESTRICT="!test? ( test )" # in 15.x, cxxabi.h is moving from libcxx to libcxxabi RDEPEND+=" !/dev/null) [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests" mycmakeargs+=( -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" -DLLVM_LIT_ARGS="$(get_lit_flags)" -DPython3_EXECUTABLE="${PYTHON}" ) fi cmake_src_configure } multilib_src_compile() { cmake_build cxxabi } multilib_src_test() { local -x LIT_PRESERVES_TMP=1 cmake_build check-cxxabi } multilib_src_install() { DESTDIR="${D}" cmake_build install-cxxabi }