1 # Copyright © 2012-2014, 2018 Nick Bowler
2 # License GPLv3+: GNU General Public License version 3 or later.
3 # There is NO WARRANTY, to the extent permitted by law.
9 MY_P=${P/qcachegrind/kcachegrind}
11 DESCRIPTION="Qt-based GUI frontend for Callgrind"
12 HOMEPAGE="https://kcachegrind.github.io/"
13 SRC_URI="https://kcachegrind.github.io/files/$MY_P.tar.gz"
22 dbus? ( dev-qt/qtdbus:5 )
26 dbus? ( >=dev-qt/qtdbus-4.4:4 )
34 "$FILESDIR/$P-qt5-fix.patch"
38 use dbus || PATCHES+=("$FILESDIR/$PN-disable-dbus.patch")
42 eqmake$(usex qt5 5 4) qcg.pro
46 dobin qcachegrind/qcachegrind
49 newicon -s 48 kcachegrind/hi48-app-kcachegrind.png kcachegrind.png
50 newicon -s 32 kcachegrind/hi32-app-kcachegrind.png kcachegrind.png
52 insinto /usr/share/applications
53 doins qcachegrind/qcachegrind.desktop