mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-09 00:07:57 +03:00
Bug: https://bugs.gentoo.org/923734 Bug: https://bugs.gentoo.org/940611 Closes: https://bugs.gentoo.org/933355 Thanks-to: Holger Hoffstätte <holger@applied-asynchrony.com> Signed-off-by: Sam James <sam@gentoo.org>
62 lines
1.3 KiB
Bash
62 lines
1.3 KiB
Bash
# Copyright 2019-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit flag-o-matic cmake
|
|
|
|
DESCRIPTION="Graphical reader for trace-cmd output"
|
|
HOMEPAGE="https://kernelshark.org/"
|
|
|
|
if [[ ${PV} =~ [9]{4,} ]]; then
|
|
EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/trace-cmd/kernel-shark.git/"
|
|
inherit git-r3
|
|
S="${WORKDIR}/${P}/kernel-shark"
|
|
|
|
else
|
|
MY_P="kernel-shark-${PN}-v${PV}"
|
|
SRC_URI="https://git.kernel.org/pub/scm/utils/trace-cmd/kernel-shark.git/snapshot/${MY_P}.tar.gz -> ${P}.tar.gz"
|
|
KEYWORDS="~amd64 ~x86"
|
|
S="${WORKDIR}/${MY_P}"
|
|
fi
|
|
|
|
LICENSE="GPL-2 LGPL-2.1"
|
|
SLOT="0"
|
|
IUSE="custom-optimization doc"
|
|
|
|
DEPEND="
|
|
dev-libs/libtracecmd
|
|
dev-libs/json-c:=
|
|
dev-qt/qtbase:6=[network,opengl,widgets]
|
|
dev-qt/qtscxml:6=
|
|
>=dev-libs/libtracefs-1.3
|
|
>=dev-libs/libtraceevent-1.5
|
|
dev-util/trace-cmd:=
|
|
>=media-libs/freeglut-3.0.0:=
|
|
sys-devel/gcc:=[openmp]
|
|
x11-libs/libXmu:=
|
|
x11-libs/libXi:=
|
|
media-fonts/freefont
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND="
|
|
doc? (
|
|
media-gfx/graphviz
|
|
app-text/doxygen
|
|
)"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-2.1.0-no-ldconfig.patch
|
|
"${FILESDIR}"/${PN}-2.3.1-algorithm.patch
|
|
)
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-D_INSTALL_PREFIX="${EPREFIX}/usr"
|
|
-D_LIBDIR="${EPREFIX}/usr/$(get_libdir)"
|
|
-D_DOXYGEN_DOC=$(usex doc)
|
|
)
|
|
use custom-optimization || replace-flags -O? -O3
|
|
cmake_src_configure
|
|
}
|