Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/llvm-libunwind/
Date: Mon, 24 Jul 2017 19:04:12
Message-Id: 1500923028.378cdc1215e43c02a03a0bbd7ab907611fc75af9.mgorny@gentoo
1 commit: 378cdc1215e43c02a03a0bbd7ab907611fc75af9
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 23 16:50:16 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 24 19:03:48 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=378cdc12
7
8 sys-libs/llvm-libunwind: Branch for 5.0.0 release
9
10 .../llvm-libunwind/llvm-libunwind-5.0.9999.ebuild | 47 ++++++++++++++++++++++
11 1 file changed, 47 insertions(+)
12
13 diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-5.0.9999.ebuild b/sys-libs/llvm-libunwind/llvm-libunwind-5.0.9999.ebuild
14 new file mode 100644
15 index 00000000000..fc8c13fc44b
16 --- /dev/null
17 +++ b/sys-libs/llvm-libunwind/llvm-libunwind-5.0.9999.ebuild
18 @@ -0,0 +1,47 @@
19 +# Copyright 1999-2017 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +
22 +EAPI=6
23 +
24 +: ${CMAKE_MAKEFILE_GENERATOR:=ninja}
25 +# (needed due to CMAKE_BUILD_TYPE != Gentoo)
26 +CMAKE_MIN_VERSION=3.7.0-r1
27 +inherit cmake-multilib git-r3 llvm
28 +
29 +DESCRIPTION="C++ runtime stack unwinder from LLVM"
30 +HOMEPAGE="https://github.com/llvm-mirror/libunwind"
31 +SRC_URI=""
32 +EGIT_REPO_URI="https://git.llvm.org/git/libunwind.git
33 + https://github.com/llvm-mirror/libunwind.git"
34 +EGIT_BRANCH="release_50"
35 +
36 +LICENSE="|| ( UoI-NCSA MIT )"
37 +SLOT="0"
38 +KEYWORDS=""
39 +IUSE="debug +static-libs"
40 +
41 +RDEPEND="!sys-libs/libunwind"
42 +# LLVM 4 required for llvm-config --cmakedir
43 +DEPEND=">=sys-devel/llvm-4"
44 +
45 +# least intrusive of all
46 +CMAKE_BUILD_TYPE=RelWithDebInfo
47 +
48 +multilib_src_configure() {
49 + local libdir=$(get_libdir)
50 +
51 + local mycmakeargs=(
52 + -DLLVM_LIBDIR_SUFFIX=${libdir#lib}
53 + -DLIBUNWIND_ENABLE_ASSERTIONS=$(usex debug)
54 + -DLIBUNWIND_ENABLE_STATIC=$(usex static-libs)
55 + )
56 +
57 + cmake-utils_src_configure
58 +}
59 +
60 +multilib_src_install() {
61 + cmake-utils_src_install
62 +
63 + # install headers like sys-libs/libunwind
64 + doheader "${S}"/include/*.h
65 +}