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: Wed, 03 Jan 2018 22:22:39
Message-Id: 1515018102.ba473854215f2defd9a96f88b3d0cd88cccd470d.mgorny@gentoo
1 commit: ba473854215f2defd9a96f88b3d0cd88cccd470d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 3 21:27:03 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 3 22:21:42 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba473854
7
8 sys-libs/llvm-libunwind: Add a live ebuild for 6.0 branch
9
10 .../llvm-libunwind/llvm-libunwind-6.0.9999.ebuild | 47 ++++++++++++++++++++++
11 1 file changed, 47 insertions(+)
12
13 diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild b/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild
14 new file mode 100644
15 index 00000000000..6c50f73f19b
16 --- /dev/null
17 +++ b/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild
18 @@ -0,0 +1,47 @@
19 +# Copyright 1999-2018 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_60"
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 +}