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