summaryrefslogtreecommitdiff
path: root/dev-util/kernelshark
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-08-02 19:14:55 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-08-02 19:14:55 +0100
commitb24bd25253fe093f722ab576d29fdc41d04cb1ee (patch)
tree0fcf2afd9f852c4d4c291cf8afaa2c244d598105 /dev-util/kernelshark
parent121ed4eec41fbf03e1998d09eede1bf449da63b9 (diff)
gentoo resync : 02.08.2019
Diffstat (limited to 'dev-util/kernelshark')
-rw-r--r--dev-util/kernelshark/Manifest6
-rw-r--r--dev-util/kernelshark/files/kernelshark-1.0-build.patch33
-rw-r--r--dev-util/kernelshark/files/kernelshark-1.0-desktop-version.patch11
-rw-r--r--dev-util/kernelshark/kernelshark-1.0.ebuild58
-rw-r--r--dev-util/kernelshark/kernelshark-9999.ebuild58
-rw-r--r--dev-util/kernelshark/metadata.xml12
6 files changed, 178 insertions, 0 deletions
diff --git a/dev-util/kernelshark/Manifest b/dev-util/kernelshark/Manifest
new file mode 100644
index 000000000000..65db3afc6528
--- /dev/null
+++ b/dev-util/kernelshark/Manifest
@@ -0,0 +1,6 @@
+AUX kernelshark-1.0-build.patch 1288 BLAKE2B 4d79cb34c04186edf9a4787463eede7971177ccfa64988e931345ce66b86003482f1cdb6bb2609f3a7696a18f644204d61b85ad10988347c0db6ee23335ef873 SHA512 f257b73da9494297a44363a5126528dd03e018050464d12b414c4eb0a157da550318a430f40df17db0cf4e0b49feb904c071be42685c3cf64bf455ff9c2d0779
+AUX kernelshark-1.0-desktop-version.patch 313 BLAKE2B 64663bb60499910061328169e726f75e10f843c2dcf036f31954307ffeae863bedaca259ef8d6f1bb653f14c45ffd4a83d2687ed053263526001d8aa175ecaec SHA512 33f6c02a5c8328af71f12a452fa3e5efba1300977397a1382b1e4c04cc5e49fc6c50f95555a294b57ede4616e04bc10c7b8849010ca2a63cc8c1eb266fdb13af
+DIST kernelshark-1.0.tar.gz 4238163 BLAKE2B edae4bcaf646a8c430e64205cd5d137d8df7eb839075b4bb5da459852e1bb887eaa98de51afd1884cfd27833d3513fc26995fba6964220eb8b95a317d3e4e057 SHA512 ff9f0846ba7105813742bb56887870eff8af4f525864ab75d37dcb2dd6c2222fbd500fd08140d605c3f0021d88991c114e0ffeb7da9ada979bdd78defaa1c266
+EBUILD kernelshark-1.0.ebuild 1310 BLAKE2B 881d75f265abb22d9c7e8355e251031b8e3036e8c05e8a0c08a1898bbee895f94a1866f7fa4a176b793266b828c0c4f501199b1e1cee424ede90fe3638af2c3e SHA512 bd8295660c90ab229596eadfd548e4f3410e0c0d0de2360744cb83cb810d1efbffebf822908cfc00b7c1956376088da9248401fe0c442ba7577f98310ba4439a
+EBUILD kernelshark-9999.ebuild 1310 BLAKE2B 881d75f265abb22d9c7e8355e251031b8e3036e8c05e8a0c08a1898bbee895f94a1866f7fa4a176b793266b828c0c4f501199b1e1cee424ede90fe3638af2c3e SHA512 bd8295660c90ab229596eadfd548e4f3410e0c0d0de2360744cb83cb810d1efbffebf822908cfc00b7c1956376088da9248401fe0c442ba7577f98310ba4439a
+MISC metadata.xml 409 BLAKE2B a224422be52a292645aeafbd692638a1f07b1cce88debff7f3a25b9cccd02674ac1e448cb9ac329be6b8f3ff869c0aeb2d205d0930d9d5828eef88dbd295204e SHA512 2e9b3fb0033679637107c2c317fd98c0bd06ec7f8afc3fd2b7b3feef4a7188e818f3f82c6dfa704770b5c71b823e611b3d1445f22bb27ee42c2fd41c368f1708
diff --git a/dev-util/kernelshark/files/kernelshark-1.0-build.patch b/dev-util/kernelshark/files/kernelshark-1.0-build.patch
new file mode 100644
index 000000000000..411d4235a215
--- /dev/null
+++ b/dev-util/kernelshark/files/kernelshark-1.0-build.patch
@@ -0,0 +1,33 @@
+diff --git a/CMakeLists.txt b/kernel-shark/CMakeLists.txt
+index 45c6f23..e2394d9 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -63,11 +63,11 @@ set(KS_LOGO_LABEL KS_logo_horizontal.svg)
+
+ set(CMAKE_INSTALL_RPATH "${_INSTALL_PREFIX}/lib/${KS_APP_NAME}/")
+
+-if (CMAKE_BUILD_TYPE MATCHES Package)
++if (NOT CMAKE_BUILD_TYPE MATCHES Package)
+
+ set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
+
+-else (CMAKE_BUILD_TYPE MATCHES Package)
++else (CMAKE_BUILD_TYPE MATCHES Gentoo)
+
+ set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
+
+diff --git a/build/FindTraceCmd.cmake b/kernel-shark/build/FindTraceCmd.cmake
+index 2da4eee..c454ce6 100644
+--- a/build/FindTraceCmd.cmake
++++ b/build/FindTraceCmd.cmake
+@@ -40,8 +40,8 @@ find_library(TRACEEVENT_LIBRARY NAMES traceevent/libtraceevent.a
+ # search was successful "find_path" will do nothing this time.
+ find_program(TRACECMD_EXECUTABLE NAMES trace-cmd)
+ find_path(TRACECMD_INCLUDE_DIR NAMES trace-cmd/trace-cmd.h)
+-find_library(TRACECMD_LIBRARY NAMES trace-cmd/libtracecmd.so)
+-find_library(TRACEEVENT_LIBRARY NAMES traceevent/libtraceevent.so)
++find_library(TRACECMD_LIBRARY NAMES libtracecmd.so)
++find_library(TRACEEVENT_LIBRARY NAMES libtraceevent.so)
+
+ IF (TRACECMD_INCLUDE_DIR AND TRACECMD_LIBRARY AND TRACECMD_EXECUTABLE)
+
diff --git a/dev-util/kernelshark/files/kernelshark-1.0-desktop-version.patch b/dev-util/kernelshark/files/kernelshark-1.0-desktop-version.patch
new file mode 100644
index 000000000000..2b9b444958dc
--- /dev/null
+++ b/dev-util/kernelshark/files/kernelshark-1.0-desktop-version.patch
@@ -0,0 +1,11 @@
+diff --git a/kernel-shark/build/ks.desktop.cmake b/kernel-shark/build/ks.desktop.cmake
+index 2b02c0d..34c02ea 100644
+--- a/build/ks.desktop.cmake
++++ b/build/ks.desktop.cmake
+@@ -1,5 +1,5 @@
+ [Desktop Entry]
+-Version=@KS_VERSION_STRING@
++Version=1.1
+ Type=Application
+ Name=Kernel Shark
+ GenericName=Kernel Shark
diff --git a/dev-util/kernelshark/kernelshark-1.0.ebuild b/dev-util/kernelshark/kernelshark-1.0.ebuild
new file mode 100644
index 000000000000..44d6447fb0ee
--- /dev/null
+++ b/dev-util/kernelshark/kernelshark-1.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic cmake-utils
+
+DESCRIPTION="Graphical reader for trace-cmd output"
+HOMEPAGE="http://kernelshark.org/"
+
+if [[ ${PV} =~ [9]{4,} ]]; then
+ EGIT_REPO_URI="https://github.com/rostedt/trace-cmd.git"
+ inherit git-r3
+ S="${WORKDIR}/${P}/kernel-shark"
+
+else
+ MY_P="${PN}-v${PV}"
+ SRC_URI="https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/trace-cmd-${MY_P}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/trace-cmd-${MY_P}/kernel-shark"
+
+fi
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+IUSE="custom-optimization doc"
+
+DEPEND=">=dev-util/trace-cmd-2.8.3:=
+ dev-libs/json-c:=
+ >=media-libs/freeglut-3.0.0:=
+ x11-libs/libXmu:=
+ x11-libs/libXi:=
+ dev-qt/qtcore:5=
+ dev-qt/qtwidgets:5=
+ dev-qt/qtnetwork:5=
+"
+RDEPEND="${DEPEND}"
+BDEPEND=">=dev-util/cmake-2.8.11
+ doc? (
+ media-gfx/graphviz
+ app-doc/doxygen
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/kernelshark-1.0-build.patch"
+ "${FILESDIR}/kernelshark-1.0-desktop-version.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -D_INSTALL_PREFIX="${EPREFIX}/usr"
+ -DTRACECMD_INCLUDE_DIR="${EPREFIX}/usr/include/trace-cmd"
+ -D_DOXYGEN_DOC="$(usex doc)"
+ )
+ use custom-optimization || replace-flags -O? -O3
+ cmake-utils_src_configure
+}
diff --git a/dev-util/kernelshark/kernelshark-9999.ebuild b/dev-util/kernelshark/kernelshark-9999.ebuild
new file mode 100644
index 000000000000..44d6447fb0ee
--- /dev/null
+++ b/dev-util/kernelshark/kernelshark-9999.ebuild
@@ -0,0 +1,58 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic cmake-utils
+
+DESCRIPTION="Graphical reader for trace-cmd output"
+HOMEPAGE="http://kernelshark.org/"
+
+if [[ ${PV} =~ [9]{4,} ]]; then
+ EGIT_REPO_URI="https://github.com/rostedt/trace-cmd.git"
+ inherit git-r3
+ S="${WORKDIR}/${P}/kernel-shark"
+
+else
+ MY_P="${PN}-v${PV}"
+ SRC_URI="https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/trace-cmd-${MY_P}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+ S="${WORKDIR}/trace-cmd-${MY_P}/kernel-shark"
+
+fi
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+IUSE="custom-optimization doc"
+
+DEPEND=">=dev-util/trace-cmd-2.8.3:=
+ dev-libs/json-c:=
+ >=media-libs/freeglut-3.0.0:=
+ x11-libs/libXmu:=
+ x11-libs/libXi:=
+ dev-qt/qtcore:5=
+ dev-qt/qtwidgets:5=
+ dev-qt/qtnetwork:5=
+"
+RDEPEND="${DEPEND}"
+BDEPEND=">=dev-util/cmake-2.8.11
+ doc? (
+ media-gfx/graphviz
+ app-doc/doxygen
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}/kernelshark-1.0-build.patch"
+ "${FILESDIR}/kernelshark-1.0-desktop-version.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -D_INSTALL_PREFIX="${EPREFIX}/usr"
+ -DTRACECMD_INCLUDE_DIR="${EPREFIX}/usr/include/trace-cmd"
+ -D_DOXYGEN_DOC="$(usex doc)"
+ )
+ use custom-optimization || replace-flags -O? -O3
+ cmake-utils_src_configure
+}
diff --git a/dev-util/kernelshark/metadata.xml b/dev-util/kernelshark/metadata.xml
new file mode 100644
index 000000000000..8de31ac92c9a
--- /dev/null
+++ b/dev-util/kernelshark/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>chutzpah@gentoo.org</email>
+ <name>Patrick McLean</name>
+ </maintainer>
+ <use>
+ <flag name="custom-optimization">Build with user-specified compiler optimizations
+ (-Os, -O0, -O1, -O2, -O3) from CFLAGS</flag>
+ </use>
+</pkgmetadata>