public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/heaptrack/
Date: Tue, 12 Nov 2019 01:13:35 +0000 (UTC)	[thread overview]
Message-ID: <1573521056.8c045761c87dae25033dfb856d1c567444b27560.asturm@gentoo> (raw)

commit:     8c045761c87dae25033dfb856d1c567444b27560
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 12 01:08:43 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Nov 12 01:10:56 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c045761

dev-util/heaptrack: Switch to cmake-utils, kde.org, xdg-utils

Fix LICENSE.

Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 dev-util/heaptrack/heaptrack-9999.ebuild | 58 ++++++++++++++++++++------------
 dev-util/heaptrack/metadata.xml          |  3 ++
 2 files changed, 39 insertions(+), 22 deletions(-)

diff --git a/dev-util/heaptrack/heaptrack-9999.ebuild b/dev-util/heaptrack/heaptrack-9999.ebuild
index ca6434866c2..99a1d52e0ce 100644
--- a/dev-util/heaptrack/heaptrack-9999.ebuild
+++ b/dev-util/heaptrack/heaptrack-9999.ebuild
@@ -3,50 +3,64 @@
 
 EAPI=7
 
-KDE_AUTODEPS="false"
-KDE_TEST="forceoptional"
-inherit kde5
+inherit cmake-utils kde.org xdg-utils
 
-DESCRIPTION="A fast heap memory profiler"
+DESCRIPTION="Fast heap memory profiler"
 HOMEPAGE="http://milianw.de/blog/heaptrack-a-heap-memory-profiler-for-linux"
 
-LICENSE="LGPL-2.1"
+LICENSE="LGPL-2.1+"
 SLOT="0"
 KEYWORDS=""
-IUSE="+qt5 zstd"
+IUSE="+gui test zstd"
 
 BDEPEND="
-	$(add_frameworks_dep extra-cmake-modules)
+	gui? ( kde-frameworks/extra-cmake-modules:5 )
 "
 DEPEND="
 	dev-libs/boost:=
 	sys-libs/libunwind
 	sys-libs/zlib
-	qt5? (
-		$(add_frameworks_dep kconfig)
-		$(add_frameworks_dep kconfigwidgets)
-		$(add_frameworks_dep kcoreaddons)
-		$(add_frameworks_dep ki18n)
-		$(add_frameworks_dep kio)
-		$(add_frameworks_dep kitemmodels)
-		$(add_frameworks_dep kwidgetsaddons)
-		$(add_frameworks_dep threadweaver)
-		$(add_qt_dep qtcore)
-		$(add_qt_dep qtgui)
-		$(add_qt_dep qtwidgets)
+	gui? (
 		dev-libs/kdiagram:5
+		dev-qt/qtcore:5
+		dev-qt/qtgui:5
+		dev-qt/qtwidgets:5
+		kde-frameworks/kconfig:5
+		kde-frameworks/kconfigwidgets:5
+		kde-frameworks/kcoreaddons:5
+		kde-frameworks/ki18n:5
+		kde-frameworks/kio:5
+		kde-frameworks/kitemmodels:5
+		kde-frameworks/kwidgetsaddons:5
+		kde-frameworks/threadweaver:5
 	)
 	zstd? ( app-arch/zstd:= )
 "
 RDEPEND="${DEPEND}
-	qt5? ( >=kde-frameworks/kf-env-4 )
+	gui? ( >=kde-frameworks/kf-env-4 )
 "
 
+RESTRICT+=" !test? ( test )"
+
 src_configure() {
 	local mycmakeargs=(
-		-DHEAPTRACK_BUILD_GUI=$(usex qt5)
+		-DHEAPTRACK_BUILD_GUI=$(usex gui)
+		-DBUILD_TESTING=$(usex test)
 		$(cmake-utils_use_find_package zstd Zstd)
 	)
+	cmake-utils_src_configure
+}
+
+xdg_pkg_postinst() {
+	if use gui; then
+		xdg_desktop_database_update
+		xdg_icon_cache_update
+	fi
+}
 
-	kde5_src_configure
+xdg_pkg_postrm() {
+	if use gui; then
+		xdg_desktop_database_update
+		xdg_icon_cache_update
+	fi
 }

diff --git a/dev-util/heaptrack/metadata.xml b/dev-util/heaptrack/metadata.xml
index c6bc2d94015..f8603060bfa 100644
--- a/dev-util/heaptrack/metadata.xml
+++ b/dev-util/heaptrack/metadata.xml
@@ -5,4 +5,7 @@
 		<email>asturm@gentoo.org</email>
 		<name>Andreas Sturmlechner</name>
 	</maintainer>
+	<use>
+		<flag name="gui">Install Qt5-based analyzer tool</flag>
+	</use>
 </pkgmetadata>


             reply	other threads:[~2019-11-12  1:13 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-12  1:13 Andreas Sturmlechner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-13 18:47 [gentoo-commits] repo/gentoo:master commit in: dev-util/heaptrack/ Andreas Sturmlechner
2024-12-30 14:21 Andreas Sturmlechner
2023-10-03 19:21 Andreas Sturmlechner
2022-06-18 11:03 Andreas Sturmlechner
2022-06-18 11:03 Andreas Sturmlechner
2022-04-19 21:08 Sam James
2021-12-18 20:56 Andreas Sturmlechner
2021-09-05  9:06 Andreas Sturmlechner
2020-05-24 21:46 Andreas Sturmlechner
2020-05-24 21:46 Andreas Sturmlechner
2019-02-15 23:28 Andreas Sturmlechner
2018-03-17 16:49 Andreas Sturmlechner
2017-02-12 15:37 Andreas Sturmlechner
2016-07-07 19:48 Austin English
2016-05-21 14:40 Pacho Ramos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1573521056.8c045761c87dae25033dfb856d1c567444b27560.asturm@gentoo \
    --to=asturm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox