# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 inherit cmake-utils MY_P="libunwind-${PV}" DESCRIPTION="C++ runtime stack unwinder from LLVM" HOMEPAGE="https://github.com/llvm-mirror/libunwind" SRC_URI="https://llvm.org/releases/${PV}/${MY_P}.src.tar.xz" LICENSE="|| ( UoI-NCSA MIT )" SLOT="0" KEYWORDS="~amd64" IUSE="+static-libs" DEPEND="" RDEPEND="!sys-libs/libunwind" S="${WORKDIR}/${MY_P}.src" src_prepare() { default eapply "${FILESDIR}/libunwind-3.8-cmake.patch" } src_configure() { local libdir=$(get_libdir) local mycmakeargs=( # work-around attempting to use llvm-config to get llvm sources # (that are not needed at all) -DLLVM_CONFIG=OFF -DLLVM_LIBDIR_SUFFIX=${libdir#lib} -DLIBUNWIND_BUILT_STANDALONE=ON -DLIBUNWIND_ENABLE_STATIC=$(usex static-libs) ) cmake-utils_src_configure }