commit:     9412ed7b7eddf60336398c8520d71fe6e4509d97
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Aug  5 18:22:28 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Aug  5 18:22:28 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9412ed7b

dev-debug/lldb: Add 19.1.0_rc2

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-debug/lldb/Manifest               |   2 +
 dev-debug/lldb/lldb-19.1.0_rc2.ebuild | 110 ++++++++++++++++++++++++++++++++++
 2 files changed, 112 insertions(+)

diff --git a/dev-debug/lldb/Manifest b/dev-debug/lldb/Manifest
index 279925324291..0f284eff910c 100644
--- a/dev-debug/lldb/Manifest
+++ b/dev-debug/lldb/Manifest
@@ -9,3 +9,5 @@ DIST llvm-project-18.1.8.src.tar.xz 132067260 BLAKE2B 
a950492f1dbfb874dff63b1ffe
 DIST llvm-project-18.1.8.src.tar.xz.sig 566 BLAKE2B 
6ab0efc5b38d4483f4e32e8b85774b2edd5d88fdf29f23b88eb0b5130a7a7f0e80549612b025f927e92de4a08ff7c292cff224dbda91a5d598244e98f7ad0fbd
 SHA512 
ddfd1e8a06756759af6cbe488c82a6d6a62ba91f3e8a0eb4cece561321824f5d165b08ed91010588790b76e19790931d2651b24dba8567e3b151d3cb43bec25b
 DIST llvm-project-19.1.0-rc1.src.tar.xz 141259912 BLAKE2B 
e882ff54a96900b4948e572cf073c897df6b4ce159869a42c56a4c830187d83b8d9d9b3940dad22346f142f9674575191cc9d079312f0d9aa1105390c07f504f
 SHA512 
9f43dbe8d5f1322f73fb1c638ce4fc7a8179c9ca33fdbfbb6d72632a3d6bf4bc4993f8f5ec827510af55f4f013fba8fe3d7d9e45f262eec16ecf9ab39296b4b8
 DIST llvm-project-19.1.0-rc1.src.tar.xz.sig 438 BLAKE2B 
cc1acbd33440bb14f78c19cc3061a5c0cb3d9dbcd6f0d1516fe118ac02c500ba4df129f870ddf3fe1a52519feab4b631866413fce9c726272d52c3865a9eea27
 SHA512 
a3361992b55be13aeff5d91bb90a15e3a2ab89e486328fa4d9abc9efa3925aee70bea48449b003ae1926909d389bf71afcf6dc56d800ed2e0e3dbc65da6e4e92
+DIST llvm-project-19.1.0-rc2.src.tar.xz 141264388 BLAKE2B 
690b4912d9e4a8019b7990934dd6486362337ccb303dca119c0e75aa1063ad452222be1ee965e43b160dfcea20e491a20c289344152666b618712a1d76dc4780
 SHA512 
508a401e8433b1ac9a399246eb1a3c18faed7c3d41d8c118e77cefbb64cc6d6e171bd41a3e5584f6c84df141ba6819f1a1cce75b5c1ef33e3d2ac239e662d07c
+DIST llvm-project-19.1.0-rc2.src.tar.xz.sig 438 BLAKE2B 
1eaf10a1419ecf009c033a8f6ecb6eec86107d81621d5b4665c8d929b05f4845ce0c432017343d7b06f33e6ff6384df9e1d8fc7b9c6efe7f10ef69798891b7e5
 SHA512 
b46e9a1d40f891c5f3544d8cc6295900bff5dda9a4a526b8db55a42a37ae90deb216b316d2117984e82f4e918d15343e75b3b9e6d6c773866707c3398e032826

diff --git a/dev-debug/lldb/lldb-19.1.0_rc2.ebuild 
b/dev-debug/lldb/lldb-19.1.0_rc2.ebuild
new file mode 100644
index 000000000000..c79bdcdf6f3d
--- /dev/null
+++ b/dev-debug/lldb/lldb-19.1.0_rc2.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit cmake flag-o-matic llvm.org llvm-utils python-single-r1
+
+DESCRIPTION="The LLVM debugger"
+HOMEPAGE="https://llvm.org/";
+
+LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
+SLOT="0/${LLVM_SOABI}"
+IUSE="+debug debuginfod +libedit lzma ncurses +python test +xml"
+RESTRICT="test"
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+DEPEND="
+       debuginfod? (
+               net-misc/curl:=
+               dev-cpp/cpp-httplib:=
+       )
+       libedit? ( dev-libs/libedit:0= )
+       lzma? ( app-arch/xz-utils:= )
+       ncurses? ( >=sys-libs/ncurses-5.9-r3:0= )
+       xml? ( dev-libs/libxml2:= )
+       ~sys-devel/clang-${PV}
+       ~sys-devel/llvm-${PV}[debuginfod=]
+"
+RDEPEND="
+       ${DEPEND}
+       python? (
+               ${PYTHON_DEPS}
+       )
+"
+BDEPEND="
+       ${PYTHON_DEPS}
+       python? (
+               >=dev-lang/swig-3.0.11
+       )
+       test? (
+               $(python_gen_cond_dep "
+                       ~dev-python/lit-${PV}[\${PYTHON_USEDEP}]
+                       dev-python/psutil[\${PYTHON_USEDEP}]
+               ")
+               sys-devel/lld
+       )
+"
+
+LLVM_COMPONENTS=( lldb cmake llvm/utils )
+LLVM_TEST_COMPONENTS=( llvm/lib/Testing/Support third-party )
+llvm.org_set_globals
+
+src_configure() {
+       llvm_prepend_path "${LLVM_MAJOR}"
+
+       # bug #858389 (https://github.com/llvm/llvm-project/issues/83636)
+       filter-lto
+
+       # LLVM_ENABLE_ASSERTIONS=NO does not guarantee this for us, #614844
+       use debug || local -x CPPFLAGS="${CPPFLAGS} -DNDEBUG"
+
+       local mycmakeargs=(
+               -DLLDB_ENABLE_CURSES=$(usex ncurses)
+               -DLLDB_ENABLE_LIBEDIT=$(usex libedit)
+               -DLLDB_ENABLE_PYTHON=$(usex python)
+               -DLLDB_ENABLE_LUA=OFF
+               -DLLDB_ENABLE_LZMA=$(usex lzma)
+               -DLLDB_ENABLE_LIBXML2=$(usex xml)
+               -DLLVM_ENABLE_TERMINFO=$(usex ncurses)
+
+               -DLLDB_INCLUDE_TESTS=$(usex test)
+
+               -DCLANG_LINK_CLANG_DYLIB=ON
+               # TODO: fix upstream to detect this properly
+               -DHAVE_LIBDL=ON
+               -DHAVE_LIBPTHREAD=ON
+
+               # normally we'd have to set LLVM_ENABLE_TERMINFO, HAVE_TERMINFO
+               # and TERMINFO_LIBS... so just force FindCurses.cmake to use
+               # ncurses with complete library set (including autodetection
+               # of -ltinfo)
+               -DCURSES_NEED_NCURSES=ON
+
+               -DCLANG_RESOURCE_DIR="../../../clang/${LLVM_MAJOR}"
+
+               -DLLVM_MAIN_SRC_DIR="${WORKDIR}/llvm"
+               -DPython3_EXECUTABLE="${PYTHON}"
+       )
+       use test && mycmakeargs+=(
+               -DLLVM_EXTERNAL_LIT="${EPREFIX}/usr/bin/lit"
+               -DLLVM_LIT_ARGS="$(get_lit_flags)"
+       )
+
+       cmake_src_configure
+}
+
+src_test() {
+       local -x LIT_PRESERVES_TMP=1
+       cmake_build check-lldb-{shell,unit}
+       # failures + hangs
+       #use python && cmake_build check-lldb-api
+}
+
+src_install() {
+       cmake_src_install
+       find "${D}" -name '*.a' -delete || die
+
+       use python && python_optimize
+}

Reply via email to