blob: 8a59d6fe7cd54f09ce9d71848b0e907327dce220 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LLVM_COMPAT=( {16..23} )
inherit cmake llvm-r2
DESCRIPTION="LLDB Machine Interface Driver"
HOMEPAGE="https://github.com/lldb-tools/lldb-mi"
if [[ ${PV} = 9999* ]]; then
EGIT_REPO_URI="https://github.com/lldb-tools/lldb-mi.git"
EGIT_BRANCH="main"
inherit git-r3
else
SRC_URI="
https://github.com/lldb-tools/lldb-mi/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="Apache-2.0-with-LLVM-exceptions"
SLOT="0"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="
llvm-core/lldb:=
$(llvm_gen_dep '
llvm-core/llvm:${LLVM_SLOT}
')
"
DEPEND="${RDEPEND}
test? (
dev-cpp/gtest
)
"
PATCHES=(
"${FILESDIR}/${PN}-0.0.1-find_packages_GTest.patch"
)
src_configure() {
local mycmakeargs=(
-DINCLUDE_TESTS="$(usex test)"
)
cmake_src_configure
}
|