1 # Copyright © 2012-2014, 2018, 2020 Nick Bowler
2 # License GPLv3+: GNU General Public License version 3 or any later version.
3 # This is free software: you are free to change and redistribute it.
4 # There is NO WARRANTY, to the extent permitted by law.
10 MY_P=${P/qcachegrind/kcachegrind}
12 DESCRIPTION="Qt-based GUI frontend for Callgrind"
13 HOMEPAGE="https://kcachegrind.github.io/"
14 SRC_URI="https://kcachegrind.github.io/files/$MY_P.tar.gz"
24 dbus? ( dev-qt/qtdbus:5 )
28 dbus? ( >=dev-qt/qtdbus-4.4:4 )
36 "$FILESDIR/$P-qt5-fix.patch"
40 use dbus || PATCHES+=("$FILESDIR/$PN-disable-dbus.patch")
44 eqmake$(usex qt5 5 4) qcg.pro
50 dobin qcachegrind/qcachegrind
53 newicon -s 48 kcachegrind/hi48-app-kcachegrind.png kcachegrind.png
54 newicon -s 32 kcachegrind/hi32-app-kcachegrind.png kcachegrind.png
56 insinto /usr/share/applications
57 doins qcachegrind/qcachegrind.desktop