mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-09 06:37:10 -08:00
47 lines
1.1 KiB
Bash
47 lines
1.1 KiB
Bash
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=6
|
|
|
|
: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
|
|
# (needed due to CMAKE_BUILD_TYPE != Gentoo)
|
|
CMAKE_MIN_VERSION=3.7.0-r1
|
|
inherit cmake-multilib llvm
|
|
|
|
DESCRIPTION="C++ runtime stack unwinder from LLVM"
|
|
HOMEPAGE="https://github.com/llvm-mirror/libunwind"
|
|
SRC_URI="http://releases.llvm.org/${PV/_//}/libunwind-${PV/_/}.src.tar.xz"
|
|
|
|
LICENSE="|| ( UoI-NCSA MIT )"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64 ~x86"
|
|
IUSE="debug +static-libs"
|
|
|
|
RDEPEND="!sys-libs/libunwind"
|
|
# LLVM 4 required for llvm-config --cmakedir
|
|
DEPEND=">=sys-devel/llvm-4"
|
|
|
|
S=${WORKDIR}/libunwind-${PV/_/}.src
|
|
|
|
# least intrusive of all
|
|
CMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
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)
|
|
)
|
|
|
|
cmake-utils_src_configure
|
|
}
|
|
|
|
multilib_src_install() {
|
|
cmake-utils_src_install
|
|
|
|
# install headers like sys-libs/libunwind
|
|
doheader "${S}"/include/*.h
|
|
}
|