diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-23 17:30:18 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-23 17:30:18 +0100 |
commit | 0e7ef53ddcc33809bcb2644d3649617113b78ea3 (patch) | |
tree | f1665ac62e9addb6b2c3663e7f7507b84c82a43e /dev-util/kernelshark/kernelshark-2.1.1.ebuild | |
parent | 55a7866dd6169a108d3a9e8d6696a970dea8a0b6 (diff) |
gentoo auto-resync : 23:09:2022 - 17:30:17
Diffstat (limited to 'dev-util/kernelshark/kernelshark-2.1.1.ebuild')
-rw-r--r-- | dev-util/kernelshark/kernelshark-2.1.1.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/dev-util/kernelshark/kernelshark-2.1.1.ebuild b/dev-util/kernelshark/kernelshark-2.1.1.ebuild new file mode 100644 index 000000000000..3c8e34a184d4 --- /dev/null +++ b/dev-util/kernelshark/kernelshark-2.1.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 2019-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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-util/trace-cmd-3.0.2 + dev-libs/json-c:= + dev-qt/qtcore:5= + dev-qt/qtnetwork:5= + dev-qt/qtwidgets:5= + >=media-libs/freeglut-3.0.0:= + x11-libs/libXmu:= + x11-libs/libXi:= + >=dev-libs/libtracefs-1.3 + >=dev-libs/libtraceevent-1.5 + media-fonts/freefont +" +RDEPEND="${DEPEND}" +BDEPEND=" + doc? ( + media-gfx/graphviz + app-doc/doxygen + )" + +PATCHES=( + "${FILESDIR}"/${PN}-2.1.0-no-ldconfig.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 +} |