1 |
commit: 6c72f62f0d497b7465cba3a8ef9bd2688083f522 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 30 11:16:38 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 30 18:13:53 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c72f62f |
7 |
|
8 |
dev-util/lldb: Bump live to 14* |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-util/lldb/lldb-14.0.0.9999.ebuild | 102 ++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 102 insertions(+) |
14 |
|
15 |
diff --git a/dev-util/lldb/lldb-14.0.0.9999.ebuild b/dev-util/lldb/lldb-14.0.0.9999.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..468fe7b0cf6 |
18 |
--- /dev/null |
19 |
+++ b/dev-util/lldb/lldb-14.0.0.9999.ebuild |
20 |
@@ -0,0 +1,102 @@ |
21 |
+# Copyright 1999-2021 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=7 |
25 |
+ |
26 |
+PYTHON_COMPAT=( python3_{8..10} ) |
27 |
+inherit cmake llvm llvm.org python-single-r1 toolchain-funcs |
28 |
+ |
29 |
+DESCRIPTION="The LLVM debugger" |
30 |
+HOMEPAGE="https://llvm.org/" |
31 |
+ |
32 |
+LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="" |
35 |
+IUSE="+libedit lzma ncurses +python test" |
36 |
+REQUIRED_USE=${PYTHON_REQUIRED_USE} |
37 |
+RESTRICT="test" |
38 |
+ |
39 |
+RDEPEND=" |
40 |
+ libedit? ( dev-libs/libedit:0= ) |
41 |
+ lzma? ( app-arch/xz-utils:= ) |
42 |
+ ncurses? ( >=sys-libs/ncurses-5.9-r3:0= ) |
43 |
+ python? ( |
44 |
+ $(python_gen_cond_dep ' |
45 |
+ dev-python/six[${PYTHON_USEDEP}] |
46 |
+ ') |
47 |
+ ${PYTHON_DEPS} |
48 |
+ ) |
49 |
+ ~sys-devel/clang-${PV}[xml] |
50 |
+ ~sys-devel/llvm-${PV} |
51 |
+ !<sys-devel/llvm-4.0" |
52 |
+DEPEND="${RDEPEND}" |
53 |
+BDEPEND=" |
54 |
+ >=dev-util/cmake-3.16 |
55 |
+ python? ( >=dev-lang/swig-3.0.11 ) |
56 |
+ test? ( |
57 |
+ $(python_gen_cond_dep " |
58 |
+ ~dev-python/lit-${PV}[\${PYTHON_USEDEP}] |
59 |
+ dev-python/psutil[\${PYTHON_USEDEP}] |
60 |
+ ") |
61 |
+ sys-devel/lld |
62 |
+ ) |
63 |
+ ${PYTHON_DEPS}" |
64 |
+ |
65 |
+LLVM_COMPONENTS=( lldb ) |
66 |
+LLVM_TEST_COMPONENTS=( llvm/lib/Testing/Support llvm/utils/unittest ) |
67 |
+llvm.org_set_globals |
68 |
+ |
69 |
+pkg_setup() { |
70 |
+ LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup |
71 |
+ python-single-r1_pkg_setup |
72 |
+} |
73 |
+ |
74 |
+src_configure() { |
75 |
+ local mycmakeargs=( |
76 |
+ -DLLDB_ENABLE_CURSES=$(usex ncurses) |
77 |
+ -DLLDB_ENABLE_LIBEDIT=$(usex libedit) |
78 |
+ -DLLDB_ENABLE_PYTHON=$(usex python) |
79 |
+ -DLLDB_ENABLE_LZMA=$(usex lzma) |
80 |
+ -DLLDB_USE_SYSTEM_SIX=1 |
81 |
+ -DLLVM_ENABLE_TERMINFO=$(usex ncurses) |
82 |
+ |
83 |
+ -DLLDB_INCLUDE_TESTS=$(usex test) |
84 |
+ |
85 |
+ -DCLANG_LINK_CLANG_DYLIB=ON |
86 |
+ # TODO: fix upstream to detect this properly |
87 |
+ -DHAVE_LIBDL=ON |
88 |
+ -DHAVE_LIBPTHREAD=ON |
89 |
+ |
90 |
+ # normally we'd have to set LLVM_ENABLE_TERMINFO, HAVE_TERMINFO |
91 |
+ # and TERMINFO_LIBS... so just force FindCurses.cmake to use |
92 |
+ # ncurses with complete library set (including autodetection |
93 |
+ # of -ltinfo) |
94 |
+ -DCURSES_NEED_NCURSES=ON |
95 |
+ |
96 |
+ -DLLDB_EXTERNAL_CLANG_RESOURCE_DIR="${BROOT}/usr/lib/clang/${PV%_*}" |
97 |
+ |
98 |
+ -DPython3_EXECUTABLE="${PYTHON}" |
99 |
+ ) |
100 |
+ use test && mycmakeargs+=( |
101 |
+ -DLLVM_BUILD_TESTS=$(usex test) |
102 |
+ -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm" |
103 |
+ -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
104 |
+ -DLLVM_LIT_ARGS="$(get_lit_flags)" |
105 |
+ ) |
106 |
+ |
107 |
+ cmake_src_configure |
108 |
+} |
109 |
+ |
110 |
+src_test() { |
111 |
+ local -x LIT_PRESERVES_TMP=1 |
112 |
+ cmake_build check-lldb-lit |
113 |
+ # failures + hangs |
114 |
+ #use python && cmake_build check-lldb |
115 |
+} |
116 |
+ |
117 |
+src_install() { |
118 |
+ cmake_src_install |
119 |
+ find "${D}" -name '*.a' -delete || die |
120 |
+ |
121 |
+ use python && python_optimize |
122 |
+} |