summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-11-12 02:08:43 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2019-11-12 02:10:56 +0100
commit8c045761c87dae25033dfb856d1c567444b27560 (patch)
treec55333e867aca389307cbea33948bf692bcb5dd1 /dev-util/heaptrack
parentkde-misc/kshutdown: 5.1_beta version bump (diff)
downloadgentoo-8c045761c87dae25033dfb856d1c567444b27560.tar.gz
gentoo-8c045761c87dae25033dfb856d1c567444b27560.tar.bz2
gentoo-8c045761c87dae25033dfb856d1c567444b27560.zip
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@gentoo.org>
Diffstat (limited to 'dev-util/heaptrack')
-rw-r--r--dev-util/heaptrack/heaptrack-9999.ebuild58
-rw-r--r--dev-util/heaptrack/metadata.xml3
2 files changed, 39 insertions, 22 deletions
diff --git a/dev-util/heaptrack/heaptrack-9999.ebuild b/dev-util/heaptrack/heaptrack-9999.ebuild
index ca6434866c2e..99a1d52e0ce5 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 c6bc2d94015a..f8603060bfa3 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>