From 398c033d3c836f59a4f2668f3c27b680b7ed1f54 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 6 Sep 2022 10:26:32 +0100 Subject: gentoo auto-resync : 06:09:2022 - 10:26:32 --- sys-libs/libcxxabi/libcxxabi-15.0.0.ebuild | 128 +++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 sys-libs/libcxxabi/libcxxabi-15.0.0.ebuild (limited to 'sys-libs/libcxxabi/libcxxabi-15.0.0.ebuild') diff --git a/sys-libs/libcxxabi/libcxxabi-15.0.0.ebuild b/sys-libs/libcxxabi/libcxxabi-15.0.0.ebuild new file mode 100644 index 000000000000..893a76363592 --- /dev/null +++ b/sys-libs/libcxxabi/libcxxabi-15.0.0.ebuild @@ -0,0 +1,128 @@ +# 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="" +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 +} -- cgit v1.2.3