1 |
commit: 2260d6feadea1a78a2200c1f58d58b5a054eff6c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 12 13:00:02 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 12 13:14:05 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2260d6fe |
7 |
|
8 |
dev-util/lldb: Bump to 8.0.0rc5 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-util/lldb/Manifest | 2 + |
13 |
dev-util/lldb/lldb-8.0.0_rc5.ebuild | 118 ++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 120 insertions(+) |
15 |
|
16 |
diff --git a/dev-util/lldb/Manifest b/dev-util/lldb/Manifest |
17 |
index fc21c34e65b..d649f7d46cb 100644 |
18 |
--- a/dev-util/lldb/Manifest |
19 |
+++ b/dev-util/lldb/Manifest |
20 |
@@ -1,6 +1,8 @@ |
21 |
DIST lldb-7.0.1.src.tar.xz 19384628 BLAKE2B 4720aa85afb90b84264f53736ca8a225bfc807cd84271f8be35a06437e718fb40a0f5090f213e203ffb746b254583f59e912d00300635e78f43aeb75a8dc4048 SHA512 7e98c3148ac34b42404e5aaaff91728d19e9062110a333f0bc7a62ec324fbb6d033ea44b56e144dc1e94febb2107cfb33c71bb3602c2168a6270dd807a2cc5ff |
22 |
DIST lldb-8.0.0rc2.src.tar.xz 19603496 BLAKE2B e13ae6c20a34e0b77729abfd1c6108b213fcfbd31674b52e42d21ee3b9db334a1c4e772e787cb7ac3f3695078d3ea37b7d6f464bf575460dada59356131c8460 SHA512 5cc3687999356c6b17fe8eaea9187e2b7e275a641aefa3e94a45d6016df67fdfd2c25a77e225516496503074284be2ccfbca0d43912e8b5a9f5f72d231f85261 |
23 |
DIST lldb-8.0.0rc3.src.tar.xz 19605220 BLAKE2B 20cc9bf0680162628d7d09d3589151255fac74eac5be0b99bad2b6a810bc77f12403a7d9b7ae420c918643966271aaa49a13435e5668b6ce5be7525356361bd8 SHA512 abda094092fc40d83ea98a2cb19aeb3f5a51ffbeb810e8aaebf3eac9c7be84f0123bf5397d7ac74109b8aa45d589e4e38646efe1817bdb6272bd957ba7a92cd2 |
24 |
+DIST lldb-8.0.0rc5.src.tar.xz 19602752 BLAKE2B 4f861bf53b254d3b2496b954a566ae02fe043d938cc04b931c88237dbf593de42c1e51ace0f81280b9e646a2febe853f9be72bec8f91d351ba7f9fe3b4d46df9 SHA512 b10e57410b4414e9f373bb2486690108d6a83c8268c9fcc4e30af60f488bf0dec660c4556ff384cb12b0af29d3c9e5a05a9bf57a0bc9acd1d3c39cf071304440 |
25 |
DIST llvm-7.0.1.src.tar.xz 28311056 BLAKE2B 737aa6144a415e41a4ff2c8bd5a727d6f14d7b1810c62cbefa5a25fe642c98cddf8a28e35c7e9783373aa3b96f5c0943229e229ad1b43e56e9ed6db0f27ab128 SHA512 ac43a3cb71a53deb55e3693653847cf20bf6f5d9056f224e6956c96d63bc59ebee9404f088eec9cabe65337b4607a905ef931354b373cf64e0004c6905a6b5df |
26 |
DIST llvm-8.0.0rc2.src.tar.xz 30492444 BLAKE2B e7afd3b66e3eb204e07348f0bc77f0ae03d8e9581de4c94cba7c0b43b53f36ecd891c1272ce43ea6c78999fd404a7db105266a2eaca22975133571e1152961af SHA512 9d93197848e9472cc2fef2477897e4f4d74a79b17a164fd43446b0ffb327e7f484cf64f0c294d9a99707c0b46282eb0d16e6ceb5d2d568f25e4235f70ae3c5e7 |
27 |
DIST llvm-8.0.0rc3.src.tar.xz 30507604 BLAKE2B c9baaca537d292af9f12368df86090750508113eb7db393fe44c1ba7579df947f0a7092e6ddd4403bda9f9ed75fe8c049f3baf6d8671faa0c91e3267c584893a SHA512 82199841c2084cffe4e86b4f2d5ebe404059196f1f6d000ee69cfddba05d78c4500ad7499615fa67e9774ead6cba5a23db484dd85f752c8d08e8067f7d7b98ca |
28 |
+DIST llvm-8.0.0rc5.src.tar.xz 30507432 BLAKE2B 3f20c3dc270439a32fe23e403ca5190e624f329a10d424d15475d32d89725b021f12af19845928da41be4b83afd254df1f6d27f235b0d2ab81ff76d9e588250f SHA512 b015bab2f0b0644d9fab295dee5d3b2a4d4d7c9d5870a06d7829f43d61e92aeb31b28d4c074f6a20ad803dde06399ef3298c951f1580b010f4b756f75bb4453b |
29 |
|
30 |
diff --git a/dev-util/lldb/lldb-8.0.0_rc5.ebuild b/dev-util/lldb/lldb-8.0.0_rc5.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..cab280bed82 |
33 |
--- /dev/null |
34 |
+++ b/dev-util/lldb/lldb-8.0.0_rc5.ebuild |
35 |
@@ -0,0 +1,118 @@ |
36 |
+# Copyright 1999-2019 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=6 |
40 |
+ |
41 |
+: ${CMAKE_MAKEFILE_GENERATOR:=ninja} |
42 |
+# (needed due to CMAKE_BUILD_TYPE != Gentoo) |
43 |
+CMAKE_MIN_VERSION=3.7.0-r1 |
44 |
+PYTHON_COMPAT=( python2_7 ) |
45 |
+ |
46 |
+inherit cmake-utils llvm multiprocessing python-single-r1 \ |
47 |
+ toolchain-funcs |
48 |
+ |
49 |
+MY_P=${P/_/}.src |
50 |
+LLVM_P=llvm-${PV/_/}.src |
51 |
+ |
52 |
+DESCRIPTION="The LLVM debugger" |
53 |
+HOMEPAGE="https://llvm.org/" |
54 |
+SRC_URI="https://prereleases.llvm.org/${PV/_//}/${MY_P}.tar.xz |
55 |
+ test? ( https://prereleases.llvm.org/${PV/_//}/${LLVM_P}.tar.xz )" |
56 |
+ |
57 |
+LICENSE="UoI-NCSA" |
58 |
+SLOT="0" |
59 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
60 |
+IUSE="libedit ncurses python test" |
61 |
+RESTRICT="!test? ( test )" |
62 |
+ |
63 |
+RDEPEND=" |
64 |
+ libedit? ( dev-libs/libedit:0= ) |
65 |
+ ncurses? ( >=sys-libs/ncurses-5.9-r3:0= ) |
66 |
+ python? ( dev-python/six[${PYTHON_USEDEP}] |
67 |
+ ${PYTHON_DEPS} ) |
68 |
+ ~sys-devel/clang-${PV}[xml] |
69 |
+ ~sys-devel/llvm-${PV} |
70 |
+ !<sys-devel/llvm-4.0" |
71 |
+DEPEND="${RDEPEND} |
72 |
+ python? ( >=dev-lang/swig-3.0.11 ) |
73 |
+ test? ( ~dev-python/lit-${PV}[${PYTHON_USEDEP}] ) |
74 |
+ ${PYTHON_DEPS}" |
75 |
+ |
76 |
+REQUIRED_USE=${PYTHON_REQUIRED_USE} |
77 |
+ |
78 |
+S=${WORKDIR}/${MY_P} |
79 |
+ |
80 |
+# least intrusive of all |
81 |
+CMAKE_BUILD_TYPE=RelWithDebInfo |
82 |
+ |
83 |
+pkg_setup() { |
84 |
+ LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup |
85 |
+ python-single-r1_pkg_setup |
86 |
+} |
87 |
+ |
88 |
+src_unpack() { |
89 |
+ einfo "Unpacking ${MY_P}.tar.xz ..." |
90 |
+ tar -xf "${DISTDIR}/${MY_P}.tar.xz" || die |
91 |
+ |
92 |
+ if use test; then |
93 |
+ einfo "Unpacking parts of ${LLVM_P}.tar.xz ..." |
94 |
+ tar -xf "${DISTDIR}/${LLVM_P}.tar.xz" \ |
95 |
+ "${LLVM_P}"/{lib/Testing/Support,utils/unittest} || die |
96 |
+ mv "${LLVM_P}" llvm || die |
97 |
+ fi |
98 |
+} |
99 |
+ |
100 |
+src_configure() { |
101 |
+ local mycmakeargs=( |
102 |
+ -DLLDB_DISABLE_CURSES=$(usex !ncurses) |
103 |
+ -DLLDB_DISABLE_LIBEDIT=$(usex !libedit) |
104 |
+ -DLLDB_DISABLE_PYTHON=$(usex !python) |
105 |
+ -DLLDB_USE_SYSTEM_SIX=1 |
106 |
+ -DLLVM_ENABLE_TERMINFO=$(usex ncurses) |
107 |
+ |
108 |
+ -DLLDB_INCLUDE_TESTS=$(usex test) |
109 |
+ |
110 |
+ # TODO: fix upstream to detect this properly |
111 |
+ -DHAVE_LIBDL=ON |
112 |
+ -DHAVE_LIBPTHREAD=ON |
113 |
+ |
114 |
+ # normally we'd have to set LLVM_ENABLE_TERMINFO, HAVE_TERMINFO |
115 |
+ # and TERMINFO_LIBS... so just force FindCurses.cmake to use |
116 |
+ # ncurses with complete library set (including autodetection |
117 |
+ # of -ltinfo) |
118 |
+ -DCURSES_NEED_NCURSES=ON |
119 |
+ ) |
120 |
+ use test && mycmakeargs+=( |
121 |
+ -DLLVM_BUILD_TESTS=$(usex test) |
122 |
+ # compilers for lit tests |
123 |
+ -DLLDB_TEST_C_COMPILER="$(type -P clang)" |
124 |
+ -DLLDB_TEST_CXX_COMPILER="$(type -P clang++)" |
125 |
+ |
126 |
+ -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm" |
127 |
+ -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit" |
128 |
+ -DLLVM_LIT_ARGS="-vv;-j;${LIT_JOBS:-$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")}" |
129 |
+ ) |
130 |
+ |
131 |
+ cmake-utils_src_configure |
132 |
+} |
133 |
+ |
134 |
+src_test() { |
135 |
+ cmake-utils_src_make check-lldb-lit |
136 |
+ use python && cmake-utils_src_make check-lldb |
137 |
+} |
138 |
+ |
139 |
+src_install() { |
140 |
+ cmake-utils_src_install |
141 |
+ |
142 |
+ # oh my... |
143 |
+ if use python; then |
144 |
+ # remove custom readline.so for now |
145 |
+ # TODO: figure out how to deal with it |
146 |
+ # upstream is basically building a custom readline.so with -ledit |
147 |
+ # to avoid symbol collisions between readline and libedit... |
148 |
+ rm "${D}$(python_get_sitedir)/readline.so" || die |
149 |
+ |
150 |
+ # byte-compile the modules |
151 |
+ python_optimize |
152 |
+ fi |
153 |
+} |