Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/heaptrack/
Date: Sun, 05 Sep 2021 09:06:18
Message-Id: 1630832765.bbd645e9f931048973fe8b2142a6afd1ba839e8c.asturm@gentoo
1 commit: bbd645e9f931048973fe8b2142a6afd1ba839e8c
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 5 08:59:14 2021 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 5 09:06:05 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbd645e9
7
8 dev-util/heaptrack: EAPI-8 bump, update IUSE=zstd DEPEND
9
10 Add missing desktop.eclass
11 Update HOMEPAGE
12
13 Package is effectively currently broken, but fixes are pending:
14 https://invent.kde.org/sdk/heaptrack/-/merge_requests/5
15 https://invent.kde.org/sdk/heaptrack/-/merge_requests/6
16
17 Package-Manager: Portage-3.0.22, Repoman-3.0.3
18 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
19
20 dev-util/heaptrack/heaptrack-9999.ebuild | 31 ++++++++++++++++++-------------
21 1 file changed, 18 insertions(+), 13 deletions(-)
22
23 diff --git a/dev-util/heaptrack/heaptrack-9999.ebuild b/dev-util/heaptrack/heaptrack-9999.ebuild
24 index 626643eac8c..cb0a7bdb802 100644
25 --- a/dev-util/heaptrack/heaptrack-9999.ebuild
26 +++ b/dev-util/heaptrack/heaptrack-9999.ebuild
27 @@ -1,12 +1,12 @@
28 -# Copyright 1999-2020 Gentoo Authors
29 +# Copyright 1999-2021 Gentoo Authors
30 # Distributed under the terms of the GNU General Public License v2
31
32 -EAPI=7
33 +EAPI=8
34
35 -inherit cmake kde.org xdg-utils
36 +inherit cmake desktop kde.org xdg-utils
37
38 DESCRIPTION="Fast heap memory profiler"
39 -HOMEPAGE="https://apps.kde.org/en/heaptrack
40 +HOMEPAGE="https://apps.kde.org/heaptrack/
41 https://milianw.de/blog/heaptrack-a-heap-memory-profiler-for-linux"
42
43 LICENSE="LGPL-2.1+"
44 @@ -14,12 +14,11 @@ SLOT="0"
45 KEYWORDS=""
46 IUSE="+gui test zstd"
47
48 -BDEPEND="
49 - gui? ( kde-frameworks/extra-cmake-modules:5 )
50 -"
51 +RESTRICT="!test? ( test )"
52 +
53 DEPEND="
54 - dev-libs/boost:=
55 - sys-libs/libunwind
56 + dev-libs/boost:=[zstd?]
57 + sys-libs/libunwind:=
58 sys-libs/zlib
59 gui? (
60 dev-libs/kdiagram:5
61 @@ -40,26 +39,32 @@ DEPEND="
62 RDEPEND="${DEPEND}
63 gui? ( >=kde-frameworks/kf-env-4 )
64 "
65 +BDEPEND="
66 + gui? ( kde-frameworks/extra-cmake-modules:5 )
67 +"
68
69 -RESTRICT+=" !test? ( test )"
70 +src_prepare() {
71 + cmake_src_prepare
72 + rm -rf 3rdparty/boost-zstd || die # ensure no bundling
73 +}
74
75 src_configure() {
76 local mycmakeargs=(
77 -DHEAPTRACK_BUILD_GUI=$(usex gui)
78 -DBUILD_TESTING=$(usex test)
79 - $(cmake_use_find_package zstd Zstd)
80 + $(cmake_use_find_package zstd ZSTD)
81 )
82 cmake_src_configure
83 }
84
85 -xdg_pkg_postinst() {
86 +pkg_postinst() {
87 if use gui; then
88 xdg_desktop_database_update
89 xdg_icon_cache_update
90 fi
91 }
92
93 -xdg_pkg_postrm() {
94 +pkg_postrm() {
95 if use gui; then
96 xdg_desktop_database_update
97 xdg_icon_cache_update