mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 23:46:14 -04:00
Used by dev-util/kdevelop. Bug: https://bugs.gentoo.org/730304 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
53 lines
897 B
Bash
53 lines
897 B
Bash
# 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
|
|
}
|