You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sys-libs/llvm-libunwind/llvm-libunwind-3.8.1.ebuild

43 lines
893 B

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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="http://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
}