1 |
commit: cc60b70cf27768772866aeadb2fdfd652e19368d |
2 |
Author: Guillermo Joandet <gjoandet <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Mar 17 20:10:11 2023 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 18 02:28:46 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cc60b70c |
7 |
|
8 |
dev-util/sysprof: Version bump to 3.48.0 |
9 |
|
10 |
Signed-off-by: Guillermo Joandet <gjoandet <AT> gmail.com> |
11 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
12 |
|
13 |
dev-util/sysprof/Manifest | 1 + |
14 |
dev-util/sysprof/sysprof-3.48.0.ebuild | 98 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 99 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/sysprof/Manifest b/dev-util/sysprof/Manifest |
18 |
index afc1092787b0..c4ac53a2c38e 100644 |
19 |
--- a/dev-util/sysprof/Manifest |
20 |
+++ b/dev-util/sysprof/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST sysprof-3.46.0.tar.xz 518536 BLAKE2B 8925f0cbe34411cce6bd86e9f4a924d3ff627429812682898fffe0a08c2dab9228e5d8bde44b460404f90fb29961a30154af1e8240df24bfa20b70cc7a36448e SHA512 ac248e2a06d2f7905bebae4e685dd320e3ac85097e33b9c6b8482a4647a5bfcaadc4d9a1fe117b3a74cb855d6c72d9a1453a37d7b64762a223c0fe5da2653a87 |
23 |
+DIST sysprof-3.48.0.tar.xz 533092 BLAKE2B 5af48d9216f13ffcc8824b0ba6a4e0ff931c903991953e66c2b50534399320d3d3fccd6e8478b10dc895d19544f9c08733565d95fe9c2c70d64f2294ccce2330 SHA512 100b79fabee005b5445dab3ad78d43facf375a488aa6513e987deecd6a3036cc43bfd78db106a4b8a15b4280dcd975872784c839f560779183adb5a339b0648c |
24 |
|
25 |
diff --git a/dev-util/sysprof/sysprof-3.48.0.ebuild b/dev-util/sysprof/sysprof-3.48.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..0c25b17a6237 |
28 |
--- /dev/null |
29 |
+++ b/dev-util/sysprof/sysprof-3.48.0.ebuild |
30 |
@@ -0,0 +1,98 @@ |
31 |
+# Copyright 1999-2023 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+inherit gnome.org gnome2-utils meson systemd xdg |
37 |
+ |
38 |
+DESCRIPTION="System-wide Linux Profiler" |
39 |
+HOMEPAGE="http://sysprof.com/" |
40 |
+ |
41 |
+LICENSE="GPL-3+ GPL-2+" |
42 |
+API_VERSION="4" |
43 |
+SLOT="0/${API_VERSION}" |
44 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
45 |
+IUSE="gtk test +unwind" |
46 |
+RESTRICT="!test? ( test )" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ >=dev-libs/glib-2.73.0:2 |
50 |
+ gtk? ( |
51 |
+ >=gui-libs/gtk-4.6:4 |
52 |
+ gui-libs/libadwaita:1 |
53 |
+ x11-libs/cairo |
54 |
+ x11-libs/pango |
55 |
+ ) |
56 |
+ dev-libs/json-glib |
57 |
+ >=sys-auth/polkit-0.114 |
58 |
+ unwind? ( sys-libs/libunwind:= ) |
59 |
+ >=dev-util/sysprof-common-${PV} |
60 |
+ >=dev-util/sysprof-capture-${PV}:${API_VERSION} |
61 |
+" |
62 |
+DEPEND="${RDEPEND}" |
63 |
+BDEPEND=" |
64 |
+ dev-libs/appstream-glib |
65 |
+ dev-util/gdbus-codegen |
66 |
+ dev-util/itstool |
67 |
+ >=sys-devel/gettext-0.19.8 |
68 |
+ >=sys-kernel/linux-headers-2.6.32 |
69 |
+ virtual/pkgconfig |
70 |
+" |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ default |
74 |
+ xdg_environment_reset |
75 |
+ |
76 |
+ # These are installed by dev-util/sysprof-capture |
77 |
+ sed -i \ |
78 |
+ -e '/install: not meson.is_subproject/d' \ |
79 |
+ -e '/install.*sysprof_header_subdir/d' \ |
80 |
+ -e 's/pkgconfig\.generate/subdir_done()\npkgconfig\.generate/' \ |
81 |
+ src/libsysprof-capture/meson.build || die |
82 |
+} |
83 |
+ |
84 |
+src_configure() { |
85 |
+ # -Dsysprofd=host currently unavailable from ebuild |
86 |
+ local emesonargs=( |
87 |
+ $(meson_use gtk) |
88 |
+ -Dlibsysprof=true |
89 |
+ -Dinstall-static=false |
90 |
+ -Dsysprofd=bundled |
91 |
+ -Dsystemdunitdir=$(systemd_get_systemunitdir) |
92 |
+ # -Ddebugdir |
93 |
+ -Dhelp=true |
94 |
+ $(meson_use unwind libunwind) |
95 |
+ -Dtools=true |
96 |
+ $(meson_use test tests) |
97 |
+ -Dexamples=false |
98 |
+ -Dagent=true |
99 |
+ ) |
100 |
+ meson_src_configure |
101 |
+} |
102 |
+ |
103 |
+src_install() { |
104 |
+ meson_src_install |
105 |
+ |
106 |
+ # We want to ship org.gnome.Sysprof3.Profiler.xml in sysprof-common for the benefit of x11-wm/mutter |
107 |
+ rm "${ED}"/usr/share/dbus-1/interfaces/org.gnome.Sysprof3.Profiler.xml || die |
108 |
+} |
109 |
+ |
110 |
+pkg_postinst() { |
111 |
+ xdg_pkg_postinst |
112 |
+ gnome2_schemas_update |
113 |
+ |
114 |
+ elog "On many systems, especially amd64, it is typical that with a modern" |
115 |
+ elog "toolchain -fomit-frame-pointer for gcc is the default, because" |
116 |
+ elog "debugging is still possible thanks to gcc4/gdb location list feature." |
117 |
+ elog "However sysprof is not able to construct call trees if frame pointers" |
118 |
+ elog "are not present. Therefore -fno-omit-frame-pointer CFLAGS is suggested" |
119 |
+ elog "for the libraries and applications involved in the profiling. That" |
120 |
+ elog "means a CPU register is used for the frame pointer instead of other" |
121 |
+ elog "purposes, which means a very minimal performance loss when there is" |
122 |
+ elog "register pressure." |
123 |
+} |
124 |
+ |
125 |
+pkg_postrm() { |
126 |
+ xdg_pkg_postrm |
127 |
+ gnome2_schemas_update |
128 |
+} |