dev-debug/lldb-mi: new package

Used by dev-util/kdevelop.

Bug: https://bugs.gentoo.org/730304
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
Paul Zander
2024-05-05 15:58:13 +02:00
parent 4478487ff0
commit 4d461beb17
5 changed files with 152 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
LLVM_COMPAT=( {15..19} )
inherit cmake llvm-r1
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="
dev-debug/lldb:=
$(llvm_gen_dep '
sys-devel/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
}