1 |
commit: 74488c7252412f6f2a57a55b0804dbf50bbf8dcd |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 1 10:32:35 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 1 23:40:31 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74488c72 |
7 |
|
8 |
dev-util/lldb: Bump to 5.0.1_rc2 |
9 |
|
10 |
dev-util/lldb/Manifest | 6 +- |
11 |
dev-util/lldb/lldb-5.0.1_rc2.ebuild | 119 ++++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 123 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/dev-util/lldb/Manifest b/dev-util/lldb/Manifest |
15 |
index 814b759317b..32e8b6e6807 100644 |
16 |
--- a/dev-util/lldb/Manifest |
17 |
+++ b/dev-util/lldb/Manifest |
18 |
@@ -1,4 +1,6 @@ |
19 |
DIST lldb-4.0.1.src.tar.xz 19088212 SHA256 8432d2dfd86044a0fc21713e0b5c1d98e1d8aad863cf67562879f47f841ac47b SHA512 1d94d7dfcc0614b16d0ef83436bbe814b39e34ba18394361bb9f13ad408ae9b29affa9a5d58c50c8dcd83765a39ae4d59ffabb7d8cd1358fd2fbd198b2de2ab6 WHIRLPOOL d7897416b89c683702bec9bd244caa911e24e5801270b64b119caf0e617f4bdc714d10bcea3963f229273d040ffdebcb8c5737a71ca17fc92e2bbbf93af002bb |
20 |
DIST lldb-5.0.0.src.tar.xz 19203772 SHA256 c0a0ca32105e9881d86b7ca886220147e686edc97fdb9f3657c6659dc6568b7d SHA512 bc70953c7f6b3f0bc797461fb53d9c60c5ab36c0b9aae815a3c37fc597a61c7220695ee3b60a9682486d2e4713c5f78ea85e853e13c587e356510a1c99a62ba9 WHIRLPOOL 25b88b8b0678afe5aaf9e108dd154b874defc63ff41c48a495c91b98a22844e614142e2240515d9996d794ed5322aec26c977ed156cc2d5081ffe5a0c0999cd3 |
21 |
-DIST llvm-4.0.1.src.tar.xz 21065652 SHA256 da783db1f82d516791179fe103c71706046561f7972b18f0049242dee6712b51 SHA512 16adc39b34ddb628f81b171119a8e2a0e9138b25011e803ef0b688e2fbea116fc4953d3a1b61b90a98a75e33619f81566b7cb06a9a2ea4d04ac5e0eb303a2d1d WHIRLPOOL 1626ff270f7ce4801d02a0797b227fda9314ff5c0c01d653111599e9a4d2854c4d9edc3c698a7abee8d79d6bce8b18dc619fbced3c07ca610d44a248d65830cc |
22 |
-DIST llvm-5.0.0.src.tar.xz 23411980 SHA256 e35dcbae6084adcf4abb32514127c5eabd7d63b733852ccdb31e06f1373136da SHA512 e6d8fdcb5bf27bded814d02f39f69c6171bc3a512d5957c03e5ac2e231f903b7de87634b059bd5c5da670f7c3a8f7a538f6299225799f15f921857f1452f6b3a WHIRLPOOL 6a99edbdc3e6726dc8ff9126b110fd7560faac46601407722e6dd80b5d894ff242521dc8fda7f4d879de83dac51c65645a37224f7e8def0d8d2f1e564b0531bb |
23 |
+DIST lldb-5.0.1rc2.src.tar.xz 19182108 BLAKE2B 711b2eed319f8f9b170317c1d6b9f755e8ed8019bb14b551e20dd50f3a09d8cba7c9aca155ed173e9720e42d8058efa725f216eb037ca0a6754f4453a645f87e SHA512 428edfb0e882f41410fa789a3a96a10ae28e614e486e43160872adb92e61a0950d97e6347f9e78d931b74e7fadc826608a27edbd773dc0bfae338e0e07ebce85 |
24 |
+DIST llvm-4.0.1.src.tar.xz 21065652 BLAKE2B 6327eed2d1feb108440f22d2581d1ff86c10a10c29793538d8d899c7e2dc83d3f7b147d3fd4bcce2bd2bf57c071b08c624aeafe40a3e7a3914506e7751727e6c SHA512 16adc39b34ddb628f81b171119a8e2a0e9138b25011e803ef0b688e2fbea116fc4953d3a1b61b90a98a75e33619f81566b7cb06a9a2ea4d04ac5e0eb303a2d1d |
25 |
+DIST llvm-5.0.0.src.tar.xz 23411980 BLAKE2B bc3d8b75b766c83912252b51d6b57c8151c9d83415eff7bc771923d35138ed253a788d6c8e0a384c5e78ce1a1065f10d66ef5004df163b4c3b0c6274bb3aa6b7 SHA512 e6d8fdcb5bf27bded814d02f39f69c6171bc3a512d5957c03e5ac2e231f903b7de87634b059bd5c5da670f7c3a8f7a538f6299225799f15f921857f1452f6b3a |
26 |
+DIST llvm-5.0.1rc2.src.tar.xz 23508164 BLAKE2B 3594d1658310a99787b4ff6f85aa8dd12a0405464bcb095ba4f205ce5b4ed3240a8ae1bef726ff98aba61ae5c8f8c10eeb8e415320d210af60f9e74bff7a8d5c SHA512 0a156e3949d22304b5e173dc9a3628161dff2798ad67924341c11494544350ef3a35a3ebb6ec8e7223b2407ce47cf12dafa6de8c006c5799a620e35a86c30b1b |
27 |
|
28 |
diff --git a/dev-util/lldb/lldb-5.0.1_rc2.ebuild b/dev-util/lldb/lldb-5.0.1_rc2.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..5ddf9b76049 |
31 |
--- /dev/null |
32 |
+++ b/dev-util/lldb/lldb-5.0.1_rc2.ebuild |
33 |
@@ -0,0 +1,119 @@ |
34 |
+# Copyright 1999-2017 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=6 |
38 |
+ |
39 |
+: ${CMAKE_MAKEFILE_GENERATOR:=ninja} |
40 |
+# (needed due to CMAKE_BUILD_TYPE != Gentoo) |
41 |
+CMAKE_MIN_VERSION=3.7.0-r1 |
42 |
+PYTHON_COMPAT=( python2_7 ) |
43 |
+ |
44 |
+inherit cmake-utils llvm python-single-r1 toolchain-funcs |
45 |
+ |
46 |
+MY_P=${P/_/}.src |
47 |
+LLVM_P=llvm-${PV/_/}.src |
48 |
+ |
49 |
+DESCRIPTION="The LLVM debugger" |
50 |
+HOMEPAGE="https://llvm.org/" |
51 |
+SRC_URI="http://prereleases.llvm.org/${PV/_//}/${MY_P}.tar.xz |
52 |
+ test? ( http://prereleases.llvm.org/${PV/_//}/${LLVM_P}.tar.xz )" |
53 |
+ |
54 |
+LICENSE="UoI-NCSA" |
55 |
+SLOT="0" |
56 |
+KEYWORDS="" |
57 |
+IUSE="libedit ncurses python test" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ libedit? ( dev-libs/libedit:0= ) |
61 |
+ ncurses? ( >=sys-libs/ncurses-5.9-r3:0= ) |
62 |
+ python? ( dev-python/six[${PYTHON_USEDEP}] |
63 |
+ ${PYTHON_DEPS} ) |
64 |
+ ~sys-devel/clang-${PV}[xml] |
65 |
+ ~sys-devel/llvm-${PV} |
66 |
+ !<sys-devel/llvm-4.0" |
67 |
+# swig-3.0.9+ generates invalid wrappers, #598708 |
68 |
+# upstream: https://github.com/swig/swig/issues/769 |
69 |
+DEPEND="${RDEPEND} |
70 |
+ python? ( <dev-lang/swig-3.0.9 ) |
71 |
+ test? ( ~dev-python/lit-${PV}[${PYTHON_USEDEP}] ) |
72 |
+ ${PYTHON_DEPS}" |
73 |
+ |
74 |
+REQUIRED_USE=${PYTHON_REQUIRED_USE} |
75 |
+ |
76 |
+S=${WORKDIR}/${MY_P} |
77 |
+ |
78 |
+# least intrusive of all |
79 |
+CMAKE_BUILD_TYPE=RelWithDebInfo |
80 |
+ |
81 |
+pkg_setup() { |
82 |
+ LLVM_MAX_SLOT=${PV%%.*} llvm_pkg_setup |
83 |
+ python-single-r1_pkg_setup |
84 |
+} |
85 |
+ |
86 |
+src_unpack() { |
87 |
+ einfo "Unpacking ${MY_P}.tar.xz ..." |
88 |
+ tar -xf "${DISTDIR}/${MY_P}.tar.xz" || die |
89 |
+ |
90 |
+ if use test; then |
91 |
+ einfo "Unpacking parts of ${LLVM_P}.tar.xz ..." |
92 |
+ tar -xf "${DISTDIR}/${LLVM_P}.tar.xz" \ |
93 |
+ "${LLVM_P}"/{lib/Testing/Support,utils/unittest} || die |
94 |
+ mv "${LLVM_P}" llvm || die |
95 |
+ fi |
96 |
+} |
97 |
+ |
98 |
+src_configure() { |
99 |
+ local mycmakeargs=( |
100 |
+ -DLLDB_DISABLE_CURSES=$(usex !ncurses) |
101 |
+ -DLLDB_DISABLE_LIBEDIT=$(usex !libedit) |
102 |
+ -DLLDB_DISABLE_PYTHON=$(usex !python) |
103 |
+ -DLLVM_ENABLE_TERMINFO=$(usex ncurses) |
104 |
+ |
105 |
+ -DLLVM_BUILD_TESTS=$(usex test) |
106 |
+ # compilers for lit tests |
107 |
+ -DLLDB_TEST_C_COMPILER="$(type -P clang)" |
108 |
+ -DLLDB_TEST_CXX_COMPILER="$(type -P clang++)" |
109 |
+ # compiler for ole' python tests |
110 |
+ -DLLDB_TEST_COMPILER="$(type -P clang)" |
111 |
+ |
112 |
+ # TODO: fix upstream to detect this properly |
113 |
+ -DHAVE_LIBDL=ON |
114 |
+ -DHAVE_LIBPTHREAD=ON |
115 |
+ |
116 |
+ # normally we'd have to set LLVM_ENABLE_TERMINFO, HAVE_TERMINFO |
117 |
+ # and TERMINFO_LIBS... so just force FindCurses.cmake to use |
118 |
+ # ncurses with complete library set (including autodetection |
119 |
+ # of -ltinfo) |
120 |
+ -DCURSES_NEED_NCURSES=ON |
121 |
+ ) |
122 |
+ use test && mycmakeargs+=( |
123 |
+ -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm" |
124 |
+ -DLIT_COMMAND="${EPREFIX}/usr/bin/lit" |
125 |
+ ) |
126 |
+ |
127 |
+ cmake-utils_src_configure |
128 |
+} |
129 |
+ |
130 |
+src_test() { |
131 |
+ cmake-utils_src_make check-lldb-lit |
132 |
+ use python && cmake-utils_src_make check-lldb |
133 |
+} |
134 |
+ |
135 |
+src_install() { |
136 |
+ cmake-utils_src_install |
137 |
+ |
138 |
+ # oh my... |
139 |
+ if use python; then |
140 |
+ # remove bundled six module |
141 |
+ rm "${D}$(python_get_sitedir)/six.py" || die |
142 |
+ |
143 |
+ # remove custom readline.so for now |
144 |
+ # TODO: figure out how to deal with it |
145 |
+ # upstream is basically building a custom readline.so with -ledit |
146 |
+ # to avoid symbol collisions between readline and libedit... |
147 |
+ rm "${D}$(python_get_sitedir)/readline.so" || die |
148 |
+ |
149 |
+ # byte-compile the modules |
150 |
+ python_optimize |
151 |
+ fi |
152 |
+} |