commit:     d0d86b55de66994e06bef974bfd517e5b9e2a752
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 21 16:13:18 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Dec 21 21:01:09 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0d86b55

sys-libs/libcxxabi: Bump to 3.9.1

 sys-libs/libcxxabi/Manifest               |   2 +
 sys-libs/libcxxabi/libcxxabi-3.9.1.ebuild | 100 ++++++++++++++++++++++++++++++
 2 files changed, 102 insertions(+)

diff --git a/sys-libs/libcxxabi/Manifest b/sys-libs/libcxxabi/Manifest
index 6831ec4..f4f59b2 100644
--- a/sys-libs/libcxxabi/Manifest
+++ b/sys-libs/libcxxabi/Manifest
@@ -1,2 +1,4 @@
 DIST libcxx-3.9.0.src.tar.xz 1198308 SHA256 
d0b38d51365c6322f5666a2a8105785f2e114430858de4c25a86b49f227f5b06 SHA512 
55d5c4adff378ee02b0b99d732bc9f326910f9e49ab8c320a588eccdd0362fe009bc9a6a4337d29faf6338420c91b10d0d7d67f66128268f01258d30502c4f4a
 WHIRLPOOL 
3ee3519acfe95287a862a6c44e30ed52ced1204332913007797da4e4da40dfdc5991ae120f5686827cc208b559936da5bc5485dab75617bdd5cbbd9e95a6032a
+DIST libcxx-3.9.1.src.tar.xz 1209020 SHA256 
25e615e428f60e651ed09ffd79e563864e3f4bc69a9e93ee41505c419d1a7461 SHA512 
a5976e4096624a7307b3e43f4a22ac2dc74572226e0f57af9f3ef537a14c3cff1601b7042aef9dc40a0ee53ca76b08d72eb9c253dcf34f115d3153c302db7070
 WHIRLPOOL 
cad439979570192b195338d752a24fb0ad8704c0c8efed3b6d7724437763eab7bc3b8baaf2f0e6fff55c6d9be211dff6f7baf18dec55e3a29ad3b8a423cefb1e
 DIST libcxxabi-3.9.0.src.tar.xz 511324 SHA256 
b037a92717856882e05df57221e087d7d595a2ae9f170f7bc1a23ec7a92c8019 SHA512 
500207bfd59664bd42d920741d6b467c4b88569453742db6470af081c77be04894e097a14b8419e333b51abce484566366e35cbc3ed2607cd86dfc0ec0ddd0c5
 WHIRLPOOL 
7b2d3b022c4c539596ce7be0afac724df929f19fb80e6f5b14074e240fb252b04389fe121f987ceaf6f3567d59735238b2940546475e4107f3c32eb55a5f8a80
+DIST libcxxabi-3.9.1.src.tar.xz 510964 SHA256 
920d8be32e6f5574a3fb293f93a31225eeba15086820fcb942155bf50dc029e2 SHA512 
4f5603f1476b759c86d4784728fbdd212c59b30dc56d787c1834bf68a9cd83071fa22658d24e5a58beb94c0c656b0e4457d7da6e3048715dd36bd68380fc336e
 WHIRLPOOL 
8ff9d0a2d5657e384f3b624fe514ae4074552c34672e8b7caeb4870d700e71913447af75d56021d393c6eebd45018e5e80b706747b1433d9ec608a1d5b0b3051

diff --git a/sys-libs/libcxxabi/libcxxabi-3.9.1.ebuild 
b/sys-libs/libcxxabi/libcxxabi-3.9.1.ebuild
new file mode 100644
index 00000000..2d5c58e
--- /dev/null
+++ b/sys-libs/libcxxabi/libcxxabi-3.9.1.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
+CMAKE_MIN_VERSION=3.4.3
+PYTHON_COMPAT=( python2_7 )
+
+inherit cmake-multilib python-any-r1
+
+DESCRIPTION="Low level support for a standard C++ library"
+HOMEPAGE="http://libcxxabi.llvm.org/";
+# also needs libcxx sources for headers
+SRC_URI="http://llvm.org/releases/${PV}/${P}.src.tar.xz
+       http://llvm.org/releases/${PV}/${P/abi/}.src.tar.xz";
+LICENSE="|| ( UoI-NCSA MIT )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="elibc_musl libunwind +static-libs test"
+
+RDEPEND="
+       libunwind? (
+               || (
+                       
>=sys-libs/libunwind-1.0.1-r1[static-libs?,${MULTILIB_USEDEP}]
+                       
>=sys-libs/llvm-libunwind-3.9.0-r1[static-libs?,${MULTILIB_USEDEP}]
+               )
+       )"
+DEPEND="${RDEPEND}
+       >=sys-devel/llvm-3.9.0
+       test? ( >=sys-devel/clang-3.9.0
+               ~sys-libs/libcxx-${PV}[libcxxabi(-)]
+               $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') )"
+
+S=${WORKDIR}/${P}.src
+
+python_check_deps() {
+       has_version "dev-python/lit[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+       use test && python-any-r1_pkg_setup
+}
+
+src_prepare() {
+       default
+
+       # backport cmake path fix for llvm-3.9+
+       eapply "${FILESDIR}/${P}-cmake-path.patch"
+       # kill stray unwind test dep in stand-alone builds
+       eapply "${FILESDIR}/${P}-test-unwind.patch"
+}
+
+src_configure() {
+       NATIVE_LIBDIR=$(get_libdir)
+       cmake-multilib_src_configure
+}
+
+multilib_src_configure() {
+       local libdir=$(get_libdir)
+       local mycmakeargs=(
+               -DLLVM_LIBDIR_SUFFIX=${NATIVE_LIBDIR#lib}
+               -DLIBCXXABI_LIBDIR_SUFFIX=${libdir#lib}
+               -DLIBCXXABI_ENABLE_SHARED=ON
+               -DLIBCXXABI_ENABLE_STATIC=$(usex static-libs)
+               -DLIBCXXABI_USE_LLVM_UNWINDER=$(usex libunwind)
+               -DLLVM_INCLUDE_TESTS=$(usex test)
+
+               
-DLIBCXXABI_LIBCXX_INCLUDES="${WORKDIR}"/libcxx-${PV}.src/include
+               # upstream is omitting standard search path for this
+               # probably because gcc & clang are bundling their own unwind.h
+               -DLIBCXXABI_LIBUNWIND_INCLUDES="${EPREFIX}"/usr/include
+               # this only needs to exist, it does not have to make sense
+               -DLIBCXXABI_LIBUNWIND_SOURCES="${T}"
+       )
+       if use test; then
+               mycmakeargs+=(
+                       -DLIT_COMMAND="${EPREFIX}"/usr/bin/lit
+               )
+       fi
+       if use elibc_musl; then
+               local -x CPPFLAGS="${CPPFLAGS} -D_LIBCPP_HAS_MUSL_LIBC=1"
+       fi
+       cmake-utils_src_configure
+}
+
+multilib_src_test() {
+       local clang_path=$(type -P "${CHOST:+${CHOST}-}clang" 2>/dev/null)
+
+       [[ -n ${clang_path} ]] || die "Unable to find ${CHOST}-clang for tests"
+       sed -i -e "/cxx_under_test/s^\".*\"^\"${clang_path}\"^" 
test/lit.site.cfg || die
+
+       cmake-utils_src_make check-libcxxabi
+}
+
+multilib_src_install_all() {
+       insinto /usr/include/libcxxabi
+       doins -r include/.
+}

Reply via email to