From 58073061812784fc34ca2a5cdd3cf3286b92a801 Mon Sep 17 00:00:00 2001 From: Ross Charles Campbell Date: Sun, 3 Jan 2021 00:35:17 +0800 Subject: [PATCH] dev-util/gammaray: New Package High-level runtime introspection tool for Qt applications. Closes: https://github.com/gentoo/gentoo/pull/9343 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Petros Siligkounas Signed-off-by: Ross Charles Campbell --- dev-util/gammaray/Manifest | 1 + dev-util/gammaray/gammaray-2.11.2.ebuild | 87 ++++++++++++++++++++++++ dev-util/gammaray/metadata.xml | 36 ++++++++++ 3 files changed, 124 insertions(+) create mode 100644 dev-util/gammaray/Manifest create mode 100644 dev-util/gammaray/gammaray-2.11.2.ebuild create mode 100644 dev-util/gammaray/metadata.xml diff --git a/dev-util/gammaray/Manifest b/dev-util/gammaray/Manifest new file mode 100644 index 0000000000..2cab5136de --- /dev/null +++ b/dev-util/gammaray/Manifest @@ -0,0 +1 @@ +DIST gammaray-2.11.2.tar.gz 10333340 BLAKE2B 8dbb83e22826cd08e3a7105bfe910d9862ea47e3709e0c61c22ed9fe4974d27412f79a587de0ac6bb092f0edf07476c10717ca40dd8e7b43903aa44686158489 SHA512 788a4bb6c96e8c5d9a6762d94ad0a452c95d20c79b4b10a1b774950fb047633f040707d984c5e769b8c47ab6a2b9f9c338b0700ad17315588b1275f226a04f51 diff --git a/dev-util/gammaray/gammaray-2.11.2.ebuild b/dev-util/gammaray/gammaray-2.11.2.ebuild new file mode 100644 index 0000000000..ed5214b718 --- /dev/null +++ b/dev-util/gammaray/gammaray-2.11.2.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="High-level runtime introspection tool for Qt applications" +HOMEPAGE="https://www.kdab.com/gammaray https://github.com/KDAB/GammaRay" + +if [[ ${PV} == 9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/KDAB/GammaRay.git" +else + SRC_URI="https://github.com/KDAB/GammaRay/releases/download/v${PV}/${P}.tar.gz" + KEYWORDS="~amd64" +fi + +LICENSE="GPL-2+" +SLOT=0 +IUSE="3d bluetooth designer doc geolocation printsupport script scxml svg test qml wayland webengine" + +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtconcurrent:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + kde-frameworks/kitemmodels:5 + 3d? ( dev-qt/qt3d:5 ) + bluetooth? ( dev-qt/qtbluetooth:5 ) + designer? ( dev-qt/designer:5 ) + geolocation? ( dev-qt/qtpositioning:5 ) + printsupport? ( dev-qt/qtprintsupport:5 ) + qml? ( dev-qt/qtdeclarative:5[widgets] ) + script? ( dev-qt/qtscript:5[scripttools] ) + scxml? ( dev-qt/qtscxml:5 ) + svg? ( dev-qt/qtsvg:5 ) + webengine? ( dev-qt/qtwebengine:5[widgets] ) + wayland? ( dev-qt/qtwayland:5 ) +" + +DEPEND="${RDEPEND} + test? ( dev-qt/qttest:5 ) +" + +src_prepare(){ + sed -i "/BackwardMacros.cmake/d" CMakeLists.txt || die + sed -i "/add_backward(gammaray_core)/d" core/CMakeLists.txt || die + cmake_src_prepare +} + +src_configure(){ + local mycmakeargs=( + -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DAnimation=$(usex !3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DExtras=$(usex !3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DInput=$(usex !3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DLogic=$(usex !3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DRender=$(usex !3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt53DQuick=$(usex !3d) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Bluetooth=$(usex !bluetooth) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Designer=$(usex !designer) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Positioning=$(usex !geolocation) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5PrintSupport=$(usex !printsupport) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Qml=$(usex !qml) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Quick=$(usex !qml) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5QuickWidgets=$(usex !qml) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Script=$(usex !script) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Svg=$(usex !svg) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Scxml=$(usex !scxml) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5Test=$(usex !test) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WaylandCompositor=$(usex !wayland) + -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebEngineWidgets=$(usex !webengine) + -DGAMMARAY_BUILD_DOCS=$(usex doc) + -DGAMMARAY_BUILD_UI=ON + -DGAMMARAY_DISABLE_FEEDBACK=ON + ) + cmake_src_configure +} + +pkg_postinst() { + elog + elog "Install dev-util/kdstatemachineeditor as optional dependency" + elog "for graphical state machine debugging support" + elog +} diff --git a/dev-util/gammaray/metadata.xml b/dev-util/gammaray/metadata.xml new file mode 100644 index 0000000000..b52f014a23 --- /dev/null +++ b/dev-util/gammaray/metadata.xml @@ -0,0 +1,36 @@ + + + + + rossbridger.cc@gmail.com + Ross Charles Campbell + + + petross404@gmail.com + Petros S + + +GammaRay is a software introspection tool for Qt applications developed by KDAB. +Leveraging the QObject introspection mechanism it allows you to observe and manipulate +your application at runtime. This works both locally on your workstation and remotely +on an embedded target. + +Augmenting your instruction-level debugger, GammaRay allows you to work on a much higher +level, with the same concepts as the frameworks you use. This is especially useful for +the more complex Qt frameworks such as model/view, state machines or scene graphs. + + + Build support for Qt5 3D modules + Widget .ui file export + Physical position determination support from Qt5 framework + Printing support library from the Qt5 framework. Required for widget PDF export + Enable scripting support from the Qt5 framework + Build with Qt5 Quick support + Build support for Qt5 State Chart XML (SCXML) + Enable support for dev-qt/qtwebengine + + + KDAB/GammaRay + https://github.com/KDAB/GammaRay/issues + +