1 |
commit: a51bf967fdf71b30a8ee3a938ad0bcaec419eeac |
2 |
Author: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 29 19:21:34 2020 +0000 |
4 |
Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 29 21:21:46 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a51bf967 |
7 |
|
8 |
dev-util/sysprof-capture: initial split from dev-util/sysprof |
9 |
|
10 |
Now with sysprof-capture-3.pc API, other GNOME components start to |
11 |
more widely make use of providing their own capture data, for which |
12 |
they use this sysprof-capture static library helper. This includes |
13 |
x11-libs/gtk+, which would be an out of the box circular dependency |
14 |
if sysprof-capture is kept as part of full dev-util/sysprof package. |
15 |
Add a split package as really intended, which gtk+, mutter and |
16 |
others can DEPEND on (but don't need to RDEPEND), probably even |
17 |
by default. |
18 |
|
19 |
Package-Manager: Portage-2.3.84, Repoman-2.3.20 |
20 |
Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org> |
21 |
|
22 |
dev-util/sysprof-capture/Manifest | 1 + |
23 |
dev-util/sysprof-capture/metadata.xml | 8 ++++ |
24 |
.../sysprof-capture/sysprof-capture-3.34.1.ebuild | 50 ++++++++++++++++++++++ |
25 |
3 files changed, 59 insertions(+) |
26 |
|
27 |
diff --git a/dev-util/sysprof-capture/Manifest b/dev-util/sysprof-capture/Manifest |
28 |
new file mode 100644 |
29 |
index 00000000000..c718e91a09e |
30 |
--- /dev/null |
31 |
+++ b/dev-util/sysprof-capture/Manifest |
32 |
@@ -0,0 +1 @@ |
33 |
+DIST sysprof-3.34.1.tar.xz 372612 BLAKE2B 3a50a00f29866ae8bf03cc7a57b598e40a6a37ad88ac2159087e4f2a8a6a5cef09b345dc5332fb1df9036c4e159e98f19adda45588150b059af313878b9b554c SHA512 5f2d820935291a3b578222d5daa87b0a2f74cd16d14daca19065495be61cf7359f00f12f452a5c0b4e05dfeb94e2376017c2288cad92dc0c4bb9bca51b903d19 |
34 |
|
35 |
diff --git a/dev-util/sysprof-capture/metadata.xml b/dev-util/sysprof-capture/metadata.xml |
36 |
new file mode 100644 |
37 |
index 00000000000..39980802b1d |
38 |
--- /dev/null |
39 |
+++ b/dev-util/sysprof-capture/metadata.xml |
40 |
@@ -0,0 +1,8 @@ |
41 |
+<?xml version="1.0" encoding="UTF-8"?> |
42 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
43 |
+<pkgmetadata> |
44 |
+<maintainer type="project"> |
45 |
+ <email>gnome@g.o</email> |
46 |
+ <name>Gentoo GNOME Desktop</name> |
47 |
+</maintainer> |
48 |
+</pkgmetadata> |
49 |
|
50 |
diff --git a/dev-util/sysprof-capture/sysprof-capture-3.34.1.ebuild b/dev-util/sysprof-capture/sysprof-capture-3.34.1.ebuild |
51 |
new file mode 100644 |
52 |
index 00000000000..fb4cdee3766 |
53 |
--- /dev/null |
54 |
+++ b/dev-util/sysprof-capture/sysprof-capture-3.34.1.ebuild |
55 |
@@ -0,0 +1,50 @@ |
56 |
+# Copyright 1999-2020 Gentoo Authors |
57 |
+# Distributed under the terms of the GNU General Public License v2 |
58 |
+ |
59 |
+EAPI=7 |
60 |
+GNOME_ORG_MODULE="sysprof" |
61 |
+ |
62 |
+inherit gnome.org meson systemd |
63 |
+ |
64 |
+DESCRIPTION="Static library for sysprof capture data generation" |
65 |
+HOMEPAGE="http://sysprof.com/" |
66 |
+ |
67 |
+LICENSE="GPL-3+ GPL-2+" |
68 |
+SLOT="3" |
69 |
+KEYWORDS="~amd64 ~x86" |
70 |
+IUSE="" |
71 |
+ |
72 |
+RDEPEND=">=dev-libs/glib-2.61.3:2" |
73 |
+DEPEND="${RDEPEND}" |
74 |
+BDEPEND=" |
75 |
+ dev-util/gdbus-codegen |
76 |
+ >=sys-kernel/linux-headers-2.6.32 |
77 |
+ virtual/pkgconfig |
78 |
+" |
79 |
+ |
80 |
+src_prepare() { |
81 |
+ default |
82 |
+ # In 3.34.1 -Dlibsysprof=false still installs various data files related with it; |
83 |
+ # some of these seem fixed by 3.36 |
84 |
+ sed -i -e '/subdir.*data/d' meson.build || die |
85 |
+} |
86 |
+ |
87 |
+src_configure() { |
88 |
+ local emesonargs=( |
89 |
+ -Denable_gtk=false |
90 |
+ -Dlibsysprof=false |
91 |
+ -Dwith_sysprofd=none |
92 |
+ -Dsystemdunitdir=$(systemd_get_systemunitdir) |
93 |
+ # -Ddebugdir |
94 |
+ -Dhelp=false |
95 |
+ ) |
96 |
+ meson_src_configure |
97 |
+} |
98 |
+ |
99 |
+src_install() { |
100 |
+ meson_src_install |
101 |
+ # In 3.36 these shouldn't be needed with with_sysprofd=none |
102 |
+ rm "${ED}"/usr/share/dbus-1/interfaces/org.gnome.Sysprof2.xml || die |
103 |
+ rm "${ED}"/usr/share/dbus-1/interfaces/org.gnome.Sysprof3.Service.xml || die |
104 |
+ rm "${ED}"/usr/share/dbus-1/interfaces/org.gnome.Sysprof3.Profiler.xml || die |
105 |
+} |