mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 14:07:27 -08:00
Done via: ``` git grep -l virtual/zlib$ | xargs sed -i -e 's@virtual/zlib$@&:=@' ``` Signed-off-by: Michał Górny <mgorny@gentoo.org>
72 lines
1.5 KiB
Bash
72 lines
1.5 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit cmake kde.org xdg
|
|
|
|
DESCRIPTION="Fast heap memory profiler"
|
|
HOMEPAGE="https://apps.kde.org/heaptrack/
|
|
https://milianw.de/blog/heaptrack-a-heap-memory-profiler-for-linux"
|
|
|
|
LICENSE="LGPL-2.1+"
|
|
SLOT="0"
|
|
KEYWORDS=""
|
|
IUSE="+gui test zstd"
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
DEPEND="
|
|
dev-cpp/robin-map
|
|
dev-libs/boost:=[zstd?,zlib]
|
|
sys-libs/libunwind:=
|
|
virtual/zlib:=
|
|
gui? (
|
|
dev-libs/kdiagram:6
|
|
dev-qt/qtbase:6[gui,widgets]
|
|
kde-frameworks/kconfig:6
|
|
kde-frameworks/kconfigwidgets:6
|
|
kde-frameworks/kcoreaddons:6
|
|
kde-frameworks/ki18n:6
|
|
kde-frameworks/kio:6
|
|
kde-frameworks/kitemmodels:6
|
|
kde-frameworks/kwidgetsaddons:6
|
|
kde-frameworks/threadweaver:6
|
|
)
|
|
zstd? ( app-arch/zstd:= )
|
|
"
|
|
RDEPEND="${DEPEND}
|
|
gui? ( >=kde-frameworks/kf-env-4 )
|
|
"
|
|
BDEPEND="gui? ( kde-frameworks/extra-cmake-modules:0 )"
|
|
|
|
PATCHES=( "${FILESDIR}/${PN}-1.5.80_pre20251017-unbundle-robin-map.patch" ) # bug #964521
|
|
|
|
QA_CONFIG_IMPL_DECL_SKIP=(
|
|
# This doesn't exist in libunwind (bug #898768).
|
|
unw_backtrace_skip
|
|
)
|
|
|
|
src_prepare() {
|
|
rm -r 3rdparty/{boost-zstd,robin-map} || die # ensure no bundling
|
|
cmake_src_prepare
|
|
}
|
|
|
|
src_configure() {
|
|
local mycmakeargs=(
|
|
-DHEAPTRACK_USE_SYSTEM_ROBINMAP=ON
|
|
-DHEAPTRACK_BUILD_GUI=$(usex gui)
|
|
-DBUILD_TESTING=$(usex test)
|
|
$(cmake_use_find_package zstd ZSTD)
|
|
)
|
|
cmake_src_configure
|
|
}
|
|
|
|
pkg_postinst() {
|
|
use gui && xdg_pkg_postinst
|
|
}
|
|
|
|
pkg_postrm() {
|
|
use gui && xdg_pkg_postrm
|
|
}
|