1 |
commit: 2113d786733d37734c7870094be25864cb77e3e7 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 1 20:57:14 2016 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 2 21:40:05 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2113d786 |
7 |
|
8 |
sys-libs/llvm-libunwind: Add a live ebuild |
9 |
|
10 |
sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild | 36 ++++++++++++++++++++++ |
11 |
1 file changed, 36 insertions(+) |
12 |
|
13 |
diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild b/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild |
14 |
new file mode 100644 |
15 |
index 00000000..1dc0656 |
16 |
--- /dev/null |
17 |
+++ b/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild |
18 |
@@ -0,0 +1,36 @@ |
19 |
+# Copyright 1999-2016 Gentoo Foundation |
20 |
+# Distributed under the terms of the GNU General Public License v2 |
21 |
+# $Id$ |
22 |
+ |
23 |
+EAPI=6 |
24 |
+ |
25 |
+: ${CMAKE_MAKEFILE_GENERATOR:=ninja} |
26 |
+CMAKE_MIN_VERSION=3.4.3 |
27 |
+inherit cmake-utils git-r3 |
28 |
+ |
29 |
+DESCRIPTION="C++ runtime stack unwinder from LLVM" |
30 |
+HOMEPAGE="https://github.com/llvm-mirror/libunwind" |
31 |
+SRC_URI="" |
32 |
+EGIT_REPO_URI="http://llvm.org/git/libunwind.git |
33 |
+ https://github.com/llvm-mirror/libunwind.git" |
34 |
+ |
35 |
+LICENSE="|| ( UoI-NCSA MIT )" |
36 |
+SLOT="0" |
37 |
+KEYWORDS="" |
38 |
+IUSE="debug +static-libs" |
39 |
+ |
40 |
+RDEPEND="!sys-libs/libunwind" |
41 |
+# llvm-config and cmake files needed to get proper flags |
42 |
+DEPEND=">=sys-devel/llvm-3.8.1-r2" |
43 |
+ |
44 |
+src_configure() { |
45 |
+ local libdir=$(get_libdir) |
46 |
+ |
47 |
+ local mycmakeargs=( |
48 |
+ -DLLVM_LIBDIR_SUFFIX=${libdir#lib} |
49 |
+ -DLIBUNWIND_ENABLE_ASSERTIONS=$(usex debug) |
50 |
+ -DLIBUNWIND_ENABLE_STATIC=$(usex static-libs) |
51 |
+ ) |
52 |
+ |
53 |
+ cmake-utils_src_configure |
54 |
+} |