aboutsummaryrefslogtreecommitdiff
blob: 61f0633f4f435b6f620d4c77a21287e8dd7801a5 (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

KDE_AUTODEPS="false"
KDE_TEST="forceoptional"
inherit kde5

DESCRIPTION="A fast heap memory profiler"
HOMEPAGE="http://milianw.de/blog/heaptrack-a-heap-memory-profiler-for-linux"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS=""
IUSE="+qt5"

COMMON_DEPEND="
	dev-libs/boost
	sys-libs/libunwind
	sys-libs/zlib
	qt5? (
		$(add_frameworks_dep extra-cmake-modules)
		$(add_frameworks_dep kconfig)
		$(add_frameworks_dep kconfigwidgets)
		$(add_frameworks_dep kcoreaddons)
		$(add_frameworks_dep ki18n)
		$(add_frameworks_dep kitemmodels)
		$(add_frameworks_dep threadweaver)
		$(add_qt_dep qtcore)
		$(add_qt_dep qtgui)
		$(add_qt_dep qtwidgets)
		dev-libs/kdiagram:5
	)
"
DEPEND="${COMMON_DEPEND}
	sys-devel/gettext
"
RDEPEND="${COMMON_DEPEND}
	qt5? ( >=kde-frameworks/kf-env-3 )
"

src_configure() {
	local mycmakeargs=(
		$(cmake-utils_use_find_package qt5 Qt5)
		$(cmake-utils_use_find_package qt5 ECM)
		$(cmake-utils_use_find_package qt5 KChart)
	)

	kde5_src_configure
}