Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/sysprof-capture/
Date: Mon, 02 Mar 2020 19:23:08
Message-Id: 1583176745.2de6ef5f0375eb9ac7ef795a5185782e7da2b2f9.leio@gentoo
1 commit: 2de6ef5f0375eb9ac7ef795a5185782e7da2b2f9
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Mon Mar 2 19:19:05 2020 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Mon Mar 2 19:19:05 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2de6ef5f
7
8 dev-util/sysprof-capture: Ship org.gnome.Sysprof3.Profiler.xml here
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
12
13 .../sysprof-capture-3.34.1-r1.ebuild | 50 ++++++++++++++++++++++
14 1 file changed, 50 insertions(+)
15
16 diff --git a/dev-util/sysprof-capture/sysprof-capture-3.34.1-r1.ebuild b/dev-util/sysprof-capture/sysprof-capture-3.34.1-r1.ebuild
17 new file mode 100644
18 index 00000000000..7e76591dccd
19 --- /dev/null
20 +++ b/dev-util/sysprof-capture/sysprof-capture-3.34.1-r1.ebuild
21 @@ -0,0 +1,50 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +GNOME_ORG_MODULE="sysprof"
27 +
28 +inherit gnome.org meson systemd
29 +
30 +DESCRIPTION="Static library for sysprof capture data generation"
31 +HOMEPAGE="http://sysprof.com/"
32 +
33 +LICENSE="GPL-3+ GPL-2+"
34 +SLOT="3"
35 +KEYWORDS="~amd64 ~x86"
36 +IUSE=""
37 +
38 +RDEPEND=">=dev-libs/glib-2.61.3:2
39 + !=dev-util/sysprof-3.34.1-r0"
40 +DEPEND="${RDEPEND}"
41 +BDEPEND="
42 + dev-util/gdbus-codegen
43 + >=sys-kernel/linux-headers-2.6.32
44 + virtual/pkgconfig
45 +"
46 +
47 +src_prepare() {
48 + default
49 + # In 3.34.1 -Dlibsysprof=false still installs various data files related with it;
50 + # some of these seem fixed by 3.36
51 + sed -i -e '/subdir.*data/d' meson.build || die
52 +}
53 +
54 +src_configure() {
55 + local emesonargs=(
56 + -Denable_gtk=false
57 + -Dlibsysprof=false
58 + -Dwith_sysprofd=none
59 + -Dsystemdunitdir=$(systemd_get_systemunitdir)
60 + # -Ddebugdir
61 + -Dhelp=false
62 + )
63 + meson_src_configure
64 +}
65 +
66 +src_install() {
67 + meson_src_install
68 + # In 3.36 these shouldn't be needed with with_sysprofd=none
69 + rm "${ED}"/usr/share/dbus-1/interfaces/org.gnome.Sysprof2.xml || die
70 + rm "${ED}"/usr/share/dbus-1/interfaces/org.gnome.Sysprof3.Service.xml || die
71 +}