diff options
Diffstat (limited to 'sys-libs/llvm-libunwind')
-rw-r--r-- | sys-libs/llvm-libunwind/Manifest | 4 | ||||
-rw-r--r-- | sys-libs/llvm-libunwind/llvm-libunwind-10.0.0_rc1.ebuild | 126 | ||||
-rw-r--r-- | sys-libs/llvm-libunwind/llvm-libunwind-9.0.1.ebuild | 2 |
3 files changed, 130 insertions, 2 deletions
diff --git a/sys-libs/llvm-libunwind/Manifest b/sys-libs/llvm-libunwind/Manifest index 29a0f571ecf8..c3712290e77f 100644 --- a/sys-libs/llvm-libunwind/Manifest +++ b/sys-libs/llvm-libunwind/Manifest @@ -4,10 +4,12 @@ DIST libcxxabi-7.1.0.src.tar.xz 535180 BLAKE2B aa5952e3ca80f7ce2a0a79f3eaf385223 DIST libcxxabi-8.0.1.src.tar.xz 538356 BLAKE2B 52328c5890c9b9271877b953be30cc39be4758101e6b91ee45f06c81e960089523e80b83eb5c354336e4e0a140f7554640acf7b2d4fa619113f705108a314418 SHA512 577cfcb04ebb29ee84d35ed31aa8fecb28fc74b07ef7ff298f0fe2d440f823def73e092359c41d8d8600e6df18f55224ed89674d403c5ae56a7d7973487b8734 DIST libunwind-7.1.0.src.tar.xz 79780 BLAKE2B 8f15dcf4a9c8cb45f17c72bf058eed13a6cd52842ee8630781c3104be77d9a868e241eafd34a31b23aeff18dc49743dd5a566ce4cb866a170f1d09899584e2dd SHA512 8ebfeb821013167e866986a2f9cc6459e43d82f73560a15ee7e0d604a974e1c656f824c9f7ccb47da4b4830ad9a99c663961bdf7642cd105e666b8a8fdf7d03c DIST libunwind-8.0.1.src.tar.xz 87188 BLAKE2B 26f4d8ffbc8eb316e4e623280d6fe493e4c5c29489b90633c8215fe91349de7f7f0cfbfe8991ace11656d3782e13c7208b4a4adc04691746b4140187fba40043 SHA512 c115582ca879e215b97d24e4aa80696796383e79856cf26e40b4ddd6b255d598f9fa9867b30f0fd1691be770779835ac1d4b9a5e4a71424b18499b79ea37d060 +DIST llvmorg-10.0.0-rc1.tar.gz 120755822 BLAKE2B a729d37d96ba498cb865c6f708734dccb796b2caabb69167b9aa3b0e12c788f2a5980a048b99d5603da3d26af909fb31f406b4f4743cabae56c45f829a7bf695 SHA512 27137fc700971147c00ded6787eaae9f0bcf98c938fe227a5a559b38d983736f3d086f4ff6772d802c5f48a7d97a97c293261e4af88fcb5a720693b9cb5a4f02 DIST llvmorg-9.0.1.tar.gz 113193320 BLAKE2B b86e405f2b8e00436045fd409fe19cdde75c797b1192c62a22b5ec75e6b4dc8e874a0f33008dc31562445e4cbe53a992b6f48c684255a6a1ef261e595b8b161f SHA512 fa88beeaae94b6d0cd9b5ba38658d0ffed8004035d7d8a4f95c3d31a709b88b581ae9bd7761333c8e5375c44b8f6be01768b5a3be901163159d7e6c43b71da59 EBUILD llvm-libunwind-10.0.0.9999.ebuild 3343 BLAKE2B a9c1f200cc7f7805104d3698bc306b4a8b88e57727e0a4ac7b3273940aa78f9a12a7da1b1f31347bb6be64d59800fb3d206d22bc11cb09590bd4b10eeaa95dcc SHA512 7f4537953b24f842761531915f2ecd59de6574eae938947c7e1b9d979ef0941cc3f3d59a051ce54e23de38ff33065d869383253e32ecbfda602eb3c3a2509d4c +EBUILD llvm-libunwind-10.0.0_rc1.ebuild 3343 BLAKE2B a9c1f200cc7f7805104d3698bc306b4a8b88e57727e0a4ac7b3273940aa78f9a12a7da1b1f31347bb6be64d59800fb3d206d22bc11cb09590bd4b10eeaa95dcc SHA512 7f4537953b24f842761531915f2ecd59de6574eae938947c7e1b9d979ef0941cc3f3d59a051ce54e23de38ff33065d869383253e32ecbfda602eb3c3a2509d4c EBUILD llvm-libunwind-11.0.0.9999.ebuild 3343 BLAKE2B a9c1f200cc7f7805104d3698bc306b4a8b88e57727e0a4ac7b3273940aa78f9a12a7da1b1f31347bb6be64d59800fb3d206d22bc11cb09590bd4b10eeaa95dcc SHA512 7f4537953b24f842761531915f2ecd59de6574eae938947c7e1b9d979ef0941cc3f3d59a051ce54e23de38ff33065d869383253e32ecbfda602eb3c3a2509d4c EBUILD llvm-libunwind-7.1.0.ebuild 3723 BLAKE2B 4d26e255995242285e4793f0f377832e8e37751582659f233a9bd2b12545af49df0b5110f76285279cc6ddaf1aa5b42162e7d9ccd5acc1a5c06aca454b1ef5e2 SHA512 51999ce3889d6cb671073e64f1c3c5e6cd9206e55cc20c12412f98a208b1b8d32c2e0cdcefea404d15566776861d7b60dbde7b0485491a0ca7935c773d87a1d8 EBUILD llvm-libunwind-8.0.1.ebuild 3821 BLAKE2B 4855a5b1dbce552eed8887b6b6787c9c5a26c6b012e8140c2f31d5fb07fac9b2f30aed680068db4cd95294de91bcd5a71e6d23cbbd680f9d45c8d63cd1139deb SHA512 db30e0e4120ba7f8fd396b7452720637329d3007fef5ccec545d4d6040c3deaa27c423311b0034292fae6cd45ae2c4eec75dd884bd5d806e55da0cbf81fbe418 -EBUILD llvm-libunwind-9.0.1.ebuild 3364 BLAKE2B 37e179bf5c1f1b406f45f549e90df1f9943901a2c7a16b24130b94dd9f312655c50126f19c14475ac06a576b9bf5417e8ab2a7db91a20d9cb2eabdd4c670af57 SHA512 2a201148ae7c3983b4e60f64601ccbcf2bb3ceefa0dd6855ed0a3d022288fe3d4821f506a77bd5db4dd6850f1dab5882bd16ed1d8cc2727b5d5763268b875038 +EBUILD llvm-libunwind-9.0.1.ebuild 3363 BLAKE2B e6fa2592f1fed7adb612990ddd1f6ec765220c1ee05ec9b798bc7d74e89dc0ae56e5652864557d61c6fefc7c1bf9f7f286cafcf18f71bc3bb6ec033d069c8b65 SHA512 657b8bef8e262c08e1659da48996a08af9bb65e4ef2ae7c09ec2bbe5c3e5a4aec43be56707a9007dbb13a0d2247b4da8fa8e6eb8cd3c7c05adfaac1e80ab72ee MISC metadata.xml 302 BLAKE2B 1cdee7813ed9a3766b2eddccd14f9e0576ba5cc7f812d7af4f35c8c2e5991790f3800c6473c37da90d72804832fd9af969a2e3bf7aa625f0d3a32da1dbcefacf SHA512 3afaef82e6a495a81e221524ae7604dc170ef5c103333728674faf0417c45ba7996118c10466eaa24f8feef9ed8f0fc60d535a5195462317d61c61a531c8a285 diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-10.0.0_rc1.ebuild b/sys-libs/llvm-libunwind/llvm-libunwind-10.0.0_rc1.ebuild new file mode 100644 index 000000000000..3891515f46e9 --- /dev/null +++ b/sys-libs/llvm-libunwind/llvm-libunwind-10.0.0_rc1.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{6,7}} ) +inherit cmake-multilib llvm llvm.org multiprocessing python-any-r1 + +DESCRIPTION="C++ runtime stack unwinder from LLVM" +HOMEPAGE="https://github.com/llvm-mirror/libunwind" +LLVM_COMPONENTS=( libunwind ) +LLVM_TEST_COMPONENTS=( libcxx{,abi} ) +llvm.org_set_globals + +LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" +SLOT="0" +KEYWORDS="" +IUSE="debug +static-libs test" +RESTRICT="!test? ( test )" + +RDEPEND="!sys-libs/libunwind" +# llvm-6 for new lit options +DEPEND=" + >=sys-devel/llvm-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}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +multilib_src_configure() { + local libdir=$(get_libdir) + + local mycmakeargs=( + -DLLVM_LIBDIR_SUFFIX=${libdir#lib} + -DLIBUNWIND_ENABLE_ASSERTIONS=$(usex debug) + -DLIBUNWIND_ENABLE_STATIC=$(usex static-libs) + -DLLVM_INCLUDE_TESTS=$(usex test) + + # support non-native unwinding; given it's small enough, + # enable it unconditionally + -DLIBUNWIND_ENABLE_CROSS_UNWINDING=ON + ) + 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}" + -DLIBUNWIND_LIBCXX_PATH="${WORKDIR}/libcxx" + ) + fi + + cmake-utils_src_configure +} + +build_libcxxabi() { + local -x LDFLAGS="${LDFLAGS} -L${BUILD_DIR}/$(get_libdir)" + local CMAKE_USE_DIR=${WORKDIR}/libcxxabi + local BUILD_DIR=${BUILD_DIR}/libcxxabi + local mycmakeargs=( + -DLIBCXXABI_LIBDIR_SUFFIX= + -DLIBCXXABI_ENABLE_SHARED=OFF + -DLIBCXXABI_ENABLE_STATIC=ONF + -DLIBCXXABI_USE_LLVM_UNWINDER=ON + -DLIBCXXABI_INCLUDE_TESTS=OFF + + -DLIBCXXABI_LIBCXX_INCLUDES="${WORKDIR}"/libcxx/include + -DLIBCXXABI_LIBUNWIND_INCLUDES="${S}"/include + ) + + cmake-utils_src_configure + cmake-utils_src_compile +} + +build_libcxx() { + local -x LDFLAGS="${LDFLAGS} -L${BUILD_DIR}/libcxxabi/lib -L${BUILD_DIR}/$(get_libdir)" + local CMAKE_USE_DIR=${WORKDIR}/libcxx + local BUILD_DIR=${BUILD_DIR}/libcxx + local mycmakeargs=( + -DLIBCXX_LIBDIR_SUFFIX= + -DLIBCXX_ENABLE_SHARED=OFF + -DLIBCXX_ENABLE_STATIC=ON + -DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=OFF + -DLIBCXXABI_USE_LLVM_UNWINDER=ON + -DLIBCXX_CXX_ABI=libcxxabi + -DLIBCXX_CXX_ABI_INCLUDE_PATHS="${WORKDIR}"/libcxxabi/include + -DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=OFF + -DLIBCXX_HAS_MUSL_LIBC=$(usex elibc_musl) + -DLIBCXX_HAS_GCC_S_LIB=OFF + -DLIBCXX_INCLUDE_TESTS=OFF + ) + + cmake-utils_src_configure + cmake-utils_src_compile +} + +multilib_src_test() { + # build local copies of libc++ & libc++abi for testing to avoid + # circular deps + build_libcxxabi + build_libcxx + mv "${BUILD_DIR}"/libcxx*/lib/libc++* "${BUILD_DIR}/$(get_libdir)/" || die + + local -x LIT_PRESERVES_TMP=1 + cmake-utils_src_make check-unwind +} + +multilib_src_install() { + cmake-utils_src_install + + # install headers like sys-libs/libunwind + doheader "${S}"/include/*.h +} diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-9.0.1.ebuild b/sys-libs/llvm-libunwind/llvm-libunwind-9.0.1.ebuild index e498caf14d22..39b185ef6458 100644 --- a/sys-libs/llvm-libunwind/llvm-libunwind-9.0.1.ebuild +++ b/sys-libs/llvm-libunwind/llvm-libunwind-9.0.1.ebuild @@ -14,7 +14,7 @@ llvm.org_set_globals LICENSE="Apache-2.0-with-LLVM-exceptions || ( UoI-NCSA MIT )" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 x86" +KEYWORDS="amd64 arm ~arm64 x86" IUSE="debug +static-libs test" RESTRICT="!test? ( test )" |