blob: eb794b0466adec467e3d446d5a7ffae8a944292c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake 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:0 )"
QA_CONFIG_IMPL_DECL_SKIP=(
# This doesn't exist in libunwind (bug #898768).
unw_backtrace_skip
)
PATCHES=(
"${FILESDIR}"/${PN}-1.5.0-c99.patch
)
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
}
|