1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit gnome.org gnome2-utils meson systemd xdg
8 DESCRIPTION="System-wide Linux Profiler"
9 HOMEPAGE="http://sysprof.com/"
11 LICENSE="GPL-3+ GPL-2+"
13 KEYWORDS="~amd64 ~x86"
17 >=dev-libs/glib-2.44:2
19 gtk? ( >=x11-libs/gtk+-3.22.0:3 )
20 systemd? ( >=sys-apps/systemd-222 )
22 # libxml2 required for glib-compile-resources; appstream-glib for appdata.xml translations
25 dev-libs/appstream-glib
27 >=sys-devel/gettext-0.19.6
28 >=sys-kernel/linux-headers-2.6.32
32 PATCHES=( "${FILESDIR}"/${PV}-fix-nosystemd-build.patch )
35 # -Dwith_sysprofd=host currently unavailable from ebuild
37 $(meson_use gtk enable_gtk)
38 -Dwith_sysprofd=$(usex systemd bundled none)
39 -Dsystemdunitdir=$(systemd_get_systemunitdir)
47 gnome2_icon_cache_update
50 elog "On many systems, especially amd64, it is typical that with a modern"
51 elog "toolchain -fomit-frame-pointer for gcc is the default, because"
52 elog "debugging is still possible thanks to gcc4/gdb location list feature."
53 elog "However sysprof is not able to construct call trees if frame pointers"
54 elog "are not present. Therefore -fno-omit-frame-pointer CFLAGS is suggested"
55 elog "for the libraries and applications involved in the profiling. That"
56 elog "means a CPU register is used for the frame pointer instead of other"
57 elog "purposes, which means a very minimal performance loss when there is"
58 elog "register pressure."
59 if ! use systemd; then
61 elog "Without systemd, sysprof may not function when launched as a regular user,"
62 elog "thus suboptimal running from root account may be necessary."
64 elog "Under wayland, that limits the recording usage to sysprof-cli utility."
71 gnome2_icon_cache_update