diff options
author | V3n3RiX <venerix@koprulu.sector> | 2021-12-22 14:08:05 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2021-12-22 14:08:05 +0000 |
commit | 93a93e9a3b53c1a73142a305ea1f8136846942ee (patch) | |
tree | b9791a06ab3284e27b568412c59316c66240c682 /dev-util/heaptrack/heaptrack-1.3.0.ebuild | |
parent | 2771f79232c273bc2a57d23bf335dd81ccf6af28 (diff) |
gentoo resync : 22.12.2021
Diffstat (limited to 'dev-util/heaptrack/heaptrack-1.3.0.ebuild')
-rw-r--r-- | dev-util/heaptrack/heaptrack-1.3.0.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/dev-util/heaptrack/heaptrack-1.3.0.ebuild b/dev-util/heaptrack/heaptrack-1.3.0.ebuild new file mode 100644 index 000000000000..bca3728eeba1 --- /dev/null +++ b/dev-util/heaptrack/heaptrack-1.3.0.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2021 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?] + 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 ) +" + +PATCHES=( "${FILESDIR}/${P}-cmake.patch" ) # bug 829606 + +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 +} |