# Copyright 2019-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 LLVM_MAX_SLOT=18 inherit llvm linux-info cmake DESCRIPTION="High-level tracing language for eBPF" HOMEPAGE="https://github.com/bpftrace/bpftrace" MY_PV="${PV//_/}" SRC_URI="https://github.com/bpftrace/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.gh.tar.gz" SRC_URI+=" https://github.com/bpftrace/${PN}/releases/download/v${MY_PV}/man.tar.xz -> ${P}-man.gh.tar.xz" S="${WORKDIR}/${PN}-${MY_PV:-${PV}}" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="amd64 ~arm64 ~x86" IUSE="lldb test" # lots of fixing needed RESTRICT="test" RDEPEND=" >=dev-libs/libbpf-1.1:= >=dev-util/bcc-0.25.0:= lldb? ( >=llvm-core/lldb-15 ) >=llvm-core/llvm-15[llvm_targets_BPF(+)] >=llvm-core/clang-15