summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2022-06-18 12:52:49 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2022-06-18 13:03:18 +0200
commit04ed3b7881b24929cf5a77146ccd0b3d87197456 (patch)
tree41e04ce1ee97888714ea96b9d6075e905b55ddb1 /dev-util/heaptrack
parentkde-apps/cantor: Fix build with >=KF-5.94 (diff)
downloadgentoo-04ed3b7881b24929cf5a77146ccd0b3d87197456.tar.gz
gentoo-04ed3b7881b24929cf5a77146ccd0b3d87197456.tar.bz2
gentoo-04ed3b7881b24929cf5a77146ccd0b3d87197456.zip
dev-util/heaptrack: 1.4.0 version bump
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'dev-util/heaptrack')
-rw-r--r--dev-util/heaptrack/Manifest1
-rw-r--r--dev-util/heaptrack/heaptrack-1.4.0.ebuild73
2 files changed, 74 insertions, 0 deletions
diff --git a/dev-util/heaptrack/Manifest b/dev-util/heaptrack/Manifest
index 0e7d6463d844..6777eef06521 100644
--- a/dev-util/heaptrack/Manifest
+++ b/dev-util/heaptrack/Manifest
@@ -1 +1,2 @@
DIST heaptrack-1.3.0.tar.xz 5521900 BLAKE2B b633ff53d83bd001705a93e2d9ffec1a994a3860cc2154334deda24c7b9d015d233e09e091201351cd3f885668a97d51eafc3b63604996c3a47ed3fdc87446da SHA512 803cc41cbd22090f3478b92097119d03a47ace8d81dc1f30490bea8f9460ae4b9fb7c9d5f64818961c8e118eafce486bea2b6765e5f2a81c91eef5690b1246de
+DIST heaptrack-1.4.0.tar.xz 5526100 BLAKE2B ffb912bc080cf966d670fcafcce682ddc5793878b73b8480b40aaf6b3c9596e892b646f9ca2ce40c195ed32d595e265e9c3a49095ac725b95a0845b2c4a7a81a SHA512 8d34356c9ecf2f9901e15ff7f24e6772e35d31ea9634d7b3ce5615df6f4f7ed024a7a4336f3b6fca648632c4c1693411641782fe60bf4cfeeb1d07d8607636a4
diff --git a/dev-util/heaptrack/heaptrack-1.4.0.ebuild b/dev-util/heaptrack/heaptrack-1.4.0.ebuild
new file mode 100644
index 000000000000..fd9b0ba63961
--- /dev/null
+++ b/dev-util/heaptrack/heaptrack-1.4.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake desktop kde.org xdg-utils
+
+DESCRIPTION="Fast heap memory profiler"
+HOMEPAGE="https://apps.kde.org/heaptrack/
+https://milianw.de/blog/heaptrack-a-heap-memory-profiler-for-linux"
+SRC_URI="mirror://kde/stable/${PN}/${PV}/${P}.tar.xz"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+gui test zstd"
+
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ dev-libs/boost:=[zstd?,zlib]
+ sys-libs/libunwind:=
+ sys-libs/zlib
+ gui? (
+ dev-libs/kdiagram:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ kde-frameworks/kconfig:5
+ kde-frameworks/kconfigwidgets:5
+ kde-frameworks/kcoreaddons:5
+ kde-frameworks/ki18n:5
+ kde-frameworks/kio:5
+ kde-frameworks/kitemmodels:5
+ kde-frameworks/kwidgetsaddons:5
+ kde-frameworks/threadweaver:5
+ )
+ zstd? ( app-arch/zstd:= )
+"
+RDEPEND="${DEPEND}
+ gui? ( >=kde-frameworks/kf-env-4 )
+"
+BDEPEND="
+ gui? ( kde-frameworks/extra-cmake-modules:5 )
+"
+
+src_prepare() {
+ cmake_src_prepare
+ rm -rf 3rdparty/boost-zstd || die # ensure no bundling
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DHEAPTRACK_BUILD_GUI=$(usex gui)
+ -DBUILD_TESTING=$(usex test)
+ $(cmake_use_find_package zstd ZSTD)
+ )
+ cmake_src_configure
+}
+
+pkg_postinst() {
+ if use gui; then
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+ fi
+}
+
+pkg_postrm() {
+ if use gui; then
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+ fi
+}