# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{8,9,10,11} )

EGIT_REPO_URI="https://github.com/KDAB/hotspot"

inherit cmake git-r3 desktop

DESCRIPTION="a GUI for the Linux perf profiler"
HOMEPAGE="https://github.com/KDAB/hotspot"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""

RDEPEND="${PYTHON_DEPS}
	dev-libs/elfutils
	>=dev-qt/qtcore-5.7.1
	>=dev-qt/qtgui-5.7.1
	>=dev-qt/qtwidgets-5.7.1
	>=dev-qt/qtnetwork-5.7.1
	>=dev-qt/qttest-5.7.1
	kde-frameworks/extra-cmake-modules
	kde-frameworks/kconfigwidgets
	kde-frameworks/kcoreaddons
	kde-frameworks/ki18n
	kde-frameworks/kio
	kde-frameworks/kitemmodels
	kde-frameworks/kitemviews
	kde-frameworks/threadweaver
	sys-devel/gettext
	"
DEPEND="${RDEPEND}"

src_install() {
	cmake_src_install

	make_desktop_entry hotspot Hotspot hotspot Development;
}