summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYixun Lan <dlan@gentoo.org>2023-01-28 21:19:35 +0800
committerYixun Lan <dlan@gentoo.org>2023-01-28 23:23:17 +0800
commit8c9da448f257c0a168bb44bc801b5006025fa823 (patch)
treeace71155527956f623d3324871a88b383a5f2af9 /dev-util/kernelshark
parentmedia-libs/netpbm: Stabilize 10.86.36 arm, #892115 (diff)
downloadgentoo-8c9da448f257c0a168bb44bc801b5006025fa823.tar.gz
gentoo-8c9da448f257c0a168bb44bc801b5006025fa823.tar.bz2
gentoo-8c9da448f257c0a168bb44bc801b5006025fa823.zip
dev-util/kernelshark: add 2.2.0
Signed-off-by: Yixun Lan <dlan@gentoo.org>
Diffstat (limited to 'dev-util/kernelshark')
-rw-r--r--dev-util/kernelshark/Manifest1
-rw-r--r--dev-util/kernelshark/kernelshark-2.2.0.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-util/kernelshark/Manifest b/dev-util/kernelshark/Manifest
index e7d6e1d5bdba..e6b3d2362196 100644
--- a/dev-util/kernelshark/Manifest
+++ b/dev-util/kernelshark/Manifest
@@ -1,3 +1,4 @@
DIST kernelshark-1.2.tar.gz 4298175 BLAKE2B 2ebe70c2b7c0691b65b0251027f1c558fc2fc5ef9bf61512d3ddd554fbb6ec349e36fca4dd0060c6b7db49eca0ec81a2f1296d635459b91883e54e77146ea3ae SHA512 059ac0ced71fa00de34c30ece433430f1e2fc36acb1b3a3f15cb84ce74d7a4f115e4ee8fbf9a256d5a731050aee02823a90a024dca4b4f6a17061652b871b935
DIST kernelshark-2.1.0.tar.gz 4098666 BLAKE2B 2798626c598ec2464f018b5808a6da460a552920c373dbf1eaba5d243e2f150da2a9a25668f8cb27e2ddc7dc286d4d5215d942893456de9339a63bde0e4d7381 SHA512 4b463cf06a919d67fa38ada8221e4702e2fac725d917e7abd12e1d69880ba964881ac549caf90bd7cb22edea4f28d7937494a05f75218f16fe2edcdff7161c3e
DIST kernelshark-2.1.1.tar.gz 4099851 BLAKE2B d686a0c19b9daeb355fa3c57104b9147cd0b4e492a3b0b57e5fdbd450d265f963bb35c99b896039007ea47c983d86649381fd81ec9402e4482a39e962322de3a SHA512 8fd9d117401961bf892a46890a7fd97c17a2d9839704b43730a5bf90f5e2cf73c68da2453a2e208b1732055abfaf5ddd7532efe8de9256b4232abd172a04f89c
+DIST kernelshark-2.2.0.tar.gz 4100601 BLAKE2B e68275b91a5a629a868e95c9b5f807c46e445e9d6e131093eb38b5a350af47dec5da9d4ec24a4b60a90ac6b3c70438236f6cd7d80fabccf420bae1603fc13338 SHA512 a2d2d2c9494189322ddb45eabe3aded8db9c72eca3d5afefc8d97b4b5011e9f93a3324aeabe19bc1917c3dbf67c75dcefbda831a2e82722bde5599f01e88c047
diff --git a/dev-util/kernelshark/kernelshark-2.2.0.ebuild b/dev-util/kernelshark/kernelshark-2.2.0.ebuild
new file mode 100644
index 000000000000..660f4388e049
--- /dev/null
+++ b/dev-util/kernelshark/kernelshark-2.2.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 2019-2023 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-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
+}