diff --git a/kde-apps/kcachegrind/additional-files/kcachegrind.rdef.in b/kde-apps/kcachegrind/additional-files/kcachegrind.rdef.in new file mode 100644 index 000000000..9532e51e5 --- /dev/null +++ b/kde-apps/kcachegrind/additional-files/kcachegrind.rdef.in @@ -0,0 +1,109 @@ + +resource app_flags B_MULTIPLE_LAUNCH; + +resource app_version { + major = @MAJOR@, + middle = @MIDDLE@, + minor = @MINOR@, + + variety = B_APPV_FINAL, + internal = 0, + + short_info = "KCachegrind", + long_info = "@LONG_INFO@" +}; + +resource app_signature "@APP_SIGNATURE@"; + +resource vector_icon { + $"6E636966080323262901EFF0F16403ED151505FC020006023A2AAA3A2AAABA2A" + $"AA3A2AAA4A15554A5BD0003DAEE9FF2980B902000602BB4D18BCDBE03CDBE0BB" + $"4D18D00D18D30A8A00D6D9DCFFA1A9B1040035040064230606FF07C730BFBFC7" + $"30BFBFC730C3DB40C72FC3DBC72FBBA4C72FB850BFBFB850C3DBB850BBA440B8" + $"4FBBA4B84FC3DBB84FC730BFBFC730BBA4C730BFBFBFBF0205C047C598C047C5" + $"98C075C598C0D0C598C0A2C598C0D0C5F2C0D0C6A7C0D0C64DC0A2C6A7C047C6" + $"A7C075C6A7C047C64DC047C598C047C5F2C047C5980205C268C50FC268C50FC2" + $"68C5C5C268C730C268C67AC295C73048C730C2C2C73048C67A48C50F48C5C5C2" + $"C2C50FC268C50FC295C50FC268C50F020540C50F40C50F40C5C540C73040C67A" + $"C047C73044C730C0D0C73044C67A44C50F44C5C5C0D0C50F40C50FC047C50F40" + $"C50F0205BC07C50FBC07C50FBC07C53DBC07C598BC07C56ABCEAC598BEB0C598" + $"BDCDC598BEB0C56ABEB0C50FBEB0C53DBDCDC50FBC07C50FBCEAC50FBC07C50F" + $"020630C50F30C50F30C52530C55130C53BB972C569B99AC597B986C580BA3CC5" + $"97BB80C598BADEC598BB80C56ABB80C50FBB80C53DBACAC50F30C50FBA15C50F" + $"30C50F0205BD18C400BD18C400BD18C42DBD184CBD18C45ABD724C3C4CBDCD4C" + $"3CC45A3CC4003CC42DBDCDC400BD18C400BD72C400BD18C4000205B86EC400B8" + $"6EC400B886C42EB8BBC487B8A0C45BBA02C487384CBB49C48738C45A38C40038" + $"C42DBB2FC400B86EC400B9CEC400B86EC400020550485048C64D48C6A748C67A" + $"48C6A7C34AC6A7C400C6A7C3A5C67AC40050C400C64DC40050C3A5504850C34A" + $"50480205C1DF48C1DF48C20D48C26848C23A48C268C34AC268C400C268C3A5C2" + $"3AC400C1DFC400C20DC400C1DFC3A5C1DF48C1DFC34AC1DF480205C400C268C4" + $"00C268C400C31DC4004CC400C3D2C42D4C4C4CC45A4C4CC3D24CC2684CC31DC4" + $"5AC268C400C268C42DC268C400C268020544C26844C26844C31D444C44C3D2C1" + $"DF4C484CC2684C48C3D248C26848C31DC268C26844C268C1DFC26844C2680205" + $"40C26840C26840C31D404C40C3D2BFED4CC0474CC01A4CC047C3D2C047C268C0" + $"47C31DC01AC26840C268BFEDC26840C2680205BD9FC1DFBD9FC1DFBD9FC20DBD" + $"9FC268BD9FC23ABDFAC268BEB0C268BE55C268BEB0C23ABEB0C1DFBEB0C20DBE" + $"55C1DFBD9FC1DFBDFAC1DFBD9FC1DF0205BA6FC1DFBA6FC1DFBA6FC20DBA6FC2" + $"68BA6FC23ABB52C268BD18C268BC35C268BD18C23ABD18C1DFBD18C20DBC35C1" + $"DFBA6FC1DFBB52C1DFBA6FC1DF0205B78EC1DFB78EC1DFB79AC20DB7B7C267B7" + $"A8C23BB872C267B9E8C268B92DC268B9E8C23AB9E8C1DFB9E8C20DB91FC1DFB7" + $"8EC1DFB856C1DFB78EC1DF020534C0D034C0D034C0FD344434C12ABCBD44C047" + $"44BE8244C047C12AC047C0D0C047C0FDBE82C0D034C0D0BCBDC0D034C0D00205" + $"2CC0D02CC0D02CC0FD2C442CC12AB8AA44BA6F44B98D44BA6FC12ABA6FC0D0BA" + $"6FC0FDB98DC0D02CC0D0B8AAC0D02CC0D00205BC0740BC0740BC07BFEDBC07C0" + $"47BC07C01ABC62C047BD18C047BCBDC047BD18C01ABD1840BD18BFEDBCBD40BC" + $"0740BC6240BC07400205B74040B74040B743BFEDB74DC047B747C01AB8B3C047" + $"BB80C047BA19C047BB80C01ABB8040BB80BFEDBA1540B74040B8AA40B7404002" + $"05B9E8BD9FB9E8BD9FB9E8BDCDB9E83CB9E8BDFABACA3C383CBBAD3C38BDFA38" + $"BD9F38BDCDBBADBD9FB9E8BD9FBACABD9FB9E8BD9F0205B78EBD9FB78EBD9FB7" + $"7FBDCCB7683CB773BDFAB8103C303CB8B83C30BDFA30BD9F30BDCDB8C4BD9FB7" + $"8EBD9FB829BD9FB78EBD9F0206B7E038B7E038B7D7BCAA2CBCE1B7CFBCC62CBC" + $"F32CBD182CBD05B932BD18BC07BD18BA9DBD18BC07BCEABC0738BC07BCBDBAA5" + $"38B7E038B94338B7E038020534BB8034BB8034BBAD34BC0734BBDABC62BC07BF" + $"37BC07BDCDBC07BF37BBDABF37BB80BF37BBADBDCDBB8034BB80BC62BB8034BB" + $"800205B86EBB80B86EBB80B854BBACB825BC08B83CBBD9B8E8BC08BA6FBC07B9" + $"ACBC08BA6FBBDABA6FBB80BA6FBBADB9C4BB80B86EBB80B919BB80B86EBB8002" + $"05BD9FBA6FBD9FBA6FBD9FBA9DBD9F34BD9FBACABDFA34BEB034BE5534BEB0BA" + $"CABEB0BA6FBEB0BA9DBE55BA6FBD9FBA6FBDFABA6FBD9FBA6F0205B92ABA6FB9" + $"2ABA6FB903BA9BB8BBBAF7B8DEBAC9BA2FBAF7BD1834BBA3BAF7BD18BACABD18" + $"BA6FBD18BA9DBBC8BA6FB92ABA6FBA79BA6FB92ABA6F0206BA2E30BA2E30BA16" + $"B972B9E8B99AB9FFB986B9E8B9B4B9E8B9E8B9E8B9CEBA9DB9E8BC07B9E8BB52" + $"B9E8BC07B9BABC0730BC07B98DBB6A30BA2E30BACC30BA2E300206C034BF4BC0" + $"34BF4BC024BF5BC004BF7BC014BF6BBFF3BF8CBFD3BFACBFE3BF9CC1AFC188C5" + $"68C540C38BC364C588C520C5C8C4E0C5A8C500C3ECC303C034BF4BC210C127C0" + $"34BF4B020540B84F40B84FBFEDB84FC048B84FC01AB84FC048BAB3C048BF7BC0" + $"48BD17C01ABF7B40BF7BBFEDBF7B40BD1740B84F40BAB340B84F0207C047B84F" + $"C047B84FC047BAAAC047BF5FC047BD05C21BC133C5C2C4DAC3EFC307C65EC427" + $"C730C27BC6DAC359C730C0A8C730BD03C730BED5C65FBAD4C276B850C4A5B91C" + $"C1BCB850C047B84FC102B84FC047B84F0008BDD3C6EFBDD3C6EFBBEBC66DB94E" + $"C378BA4BC52DB851C1C2B890BDD3B80DBFBAB9A0B9DAC1ADB890BDB4B77FC394" + $"B912C631BC07C534BA52C72EBDBDC6EFC1ACC772BFC5C66DC394C378C631C52D" + $"C534C1C2C72EBDD3C6EFBFBAC772BDD3C6EF0235BEA9CA51BEA9CA51BF62CA64" + $"C0D6CA52C01DCA64C0ECC9C5C117C8ACC101C938C1C3C892C30DC826C26BC865" + $"C365C894C417C972C3BEC903C4C1C926C5FAC85AC563C8C8C5C6C7D6C55FC6CE" + $"C59353C5E7C662C6D0C560C663C5E7C753C593C859C5F9C7D6C5C6C8C7C562C9" + $"70C416C924C4C0C903C3BEC827C30DC895C366C847C2BDC87AC216C863C26AC8" + $"8FC1C2C8ACC117C8A0C16DC938C101CA51C0D6C9C5C0ECCA64C01DCA52BEA9CA" + $"64BF62C9C5BE93C8ACBE68C938BE7EC892BDBCC826BC72C865BD14C895BC1AC9" + $"72BB68C903BBC1C926BABEC85AB985C8C8BA1CC7D6B9B9C6CEBA2053B9ECC662" + $"B998C560B8AFC5E7B91CC593B82CC5F9B726C5C6B7A9C562B6B8C416B60FC4C0" + $"B65BC3BEB67DC30EB758C366B6EAC2BDB738C216B705C26AB71CC1C2B6F0C117" + $"B6D3C16DB6DFC101B647C0D6B52EC0ECB5BBC01DB51BBEA9B52DBF62B51BBE93" + $"B5BABE68B6D3BE7EB647BDBCB6EDBC72B759BD14B71ABC1AB6EBBB68B60DBBC1" + $"B67CBABEB65AB986B725BA1CB6B7B9B9B7A9BA20B8B1B9ECB82DB998B91DB8AF" + $"BA1FB91CB998B82CB9ECB726B986B7A9B9B9B6B8BA1DB60FBB69B65BBABFB67D" + $"BBC1B758BC71B6EABC19B738BCC2B705BD69B71CBD15B6F0BDBDB6D3BE68B6DF" + $"BE12B647BE7EB52EBEA9B5BBBE93B51BBF62B52DC0D6B51BC01DB5BAC0ECB6D3" + $"C117B647C101B6EDC1C3B759C30DB71AC26BB6EBC365B60DC417B67CC3BEB659" + $"C4C1B725C5F9B6B7C563B7A9C5C6B8B1C55FB82DC593B91DC5E7BA1FC6D0B998" + $"C663B9ECC753B986C859B9B9C7D6BA1DC8C7BB69C970BABFC924BBC1C902BC72" + $"C827BC19C895BCC2C847BD69C87ABD15C863BDBDC88FBE68C8ACBE12C8A0BE7E" + $"C938BEA9CA51BE93C9C4BEA9CA510606FF07C0D0BF7BC0D0BF7BC0D0BFECC004" + $"C047C074C047BF93C047BF38BF7BBF38BFECBF38BF0BC004BEAFBF93BEAFC074" + $"BEAFC0D0BF7BC0D0BF0BC0D0BF7BBF7B0606FF07C048BF7BC048BF7BC048BFA1" + $"C004BFBFC029BFBFBFDEBFBF40BF7B40BFA140BF56C004BF37BFDEBF37C029BF" + $"37C048BF7BC048BF56C048BF7BBF7B0B0A07031F2000023F79D6000000000000" + $"3C75AF472C544ABA940A00021F201001178400040A000100000A011B02030405" + $"0607080A0B0C0D0E0F101112131415161718191A1B0901000A02011C000A0301" + $"1D000A04011E000A05021F20000A0600000A030121000A00012200" +}; diff --git a/kde-apps/kcachegrind/kcachegrind-22.04.0.recipe b/kde-apps/kcachegrind/kcachegrind-22.04.0.recipe new file mode 100644 index 000000000..502e86079 --- /dev/null +++ b/kde-apps/kcachegrind/kcachegrind-22.04.0.recipe @@ -0,0 +1,155 @@ +SUMMARY="A profile data visualization tool" +DESCRIPTION="KCachegrind is a profile data visualization tool, used to determine \ +the most time consuming parts in the execution of a program. + +Features: +* KCachegrind visualizes profiles (i.e. runtime characteristics) of applications in \ +various ways, including call graph vizualisations and source/disassembler annotation. +* It can load profiles generated by the cache simulation/call tracer Calltree, a \ +Valgrind tool. Thus, profiling does not need any preparation, can cope with shared \ +libraries and plugin architectures, and does not influence the measuring itself. +* Converter scripts for OProfile, Perl, and PHP. +* Switching between multiple visualization layouts. +* Call graph can be exported as image (PNG). +* Simultaneous display of 2 event types in Call and Annotation View." +HOMEPAGE="https://apps.kde.org/kcachegrind/" +COPYRIGHT="2010-2022 KDE Organisation" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kcachegrind-$portVersion.tar.xz" +CHECKSUM_SHA256="aed09ea5dc01ace24c76ed69edef5111c47f53992ba45896365b53cd3fc8890d" +SOURCE_DIR="kcachegrind-$portVersion" +PATCHES="kcachegrind-$portVersion.patchset" +ADDITIONAL_FILES="kcachegrind.rdef.in" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +commandSuffix=$secondaryArchSuffix +commandBinDir=$binDir +if [ "$targetArchitecture" = x86_gcc2 ]; then + commandSuffix= + commandBinDir=$prefix/bin +fi + +PROVIDES=" + kcachegrind$secondaryArchSuffix = $portVersion + app:KCachegrind = $portVersion + cmd:cgview${commandSuffix} = $portVersion + cmd:dprof2calltree${commandSuffix} = $portVersion + cmd:hotshot2calltree${commandSuffix} = $portVersion + cmd:kcachegrind${commandSuffix} = $portVersion + cmd:memprof2calltree${commandSuffix} = $portVersion + cmd:op2calltree${commandSuffix} = $portVersion + cmd:pprof2calltree${commandSuffix} = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libKF5Archive$secondaryArchSuffix + lib:libKF5Auth$secondaryArchSuffix + lib:libKF5Bookmarks$secondaryArchSuffix + lib:libKF5Codecs$secondaryArchSuffix + lib:libKF5Completion$secondaryArchSuffix + lib:libKF5ConfigCore$secondaryArchSuffix + lib:libKF5ConfigWidgets$secondaryArchSuffix + lib:libKF5CoreAddons$secondaryArchSuffix + lib:libKF5Crash$secondaryArchSuffix + lib:libKF5DocTools$secondaryArchSuffix + lib:libKF5I18n$secondaryArchSuffix + lib:libKF5IconThemes$secondaryArchSuffix + lib:libKF5ItemViews$secondaryArchSuffix + lib:libKF5JobWidgets$secondaryArchSuffix + lib:libKF5KIOCore$secondaryArchSuffix + lib:libKF5Parts$secondaryArchSuffix + lib:libKF5Service$secondaryArchSuffix + lib:libKF5Solid$secondaryArchSuffix + lib:libKF5SonnetCore$secondaryArchSuffix + lib:libKF5TextWidgets$secondaryArchSuffix + lib:libKF5WidgetsAddons$secondaryArchSuffix + lib:libKF5WindowSystem$secondaryArchSuffix + lib:libKF5XmlGui$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + lib:libQt5Gui$secondaryArchSuffix + lib:libQt5Widgets$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix >= 5.93 + devel:libKF5Archive$secondaryArchSuffix + devel:libKF5Auth$secondaryArchSuffix + devel:libKF5Bookmarks$secondaryArchSuffix + devel:libKF5Codecs$secondaryArchSuffix + devel:libKF5Completion$secondaryArchSuffix + devel:libKF5ConfigCore$secondaryArchSuffix + devel:libKF5ConfigWidgets$secondaryArchSuffix + devel:libKF5CoreAddons$secondaryArchSuffix + devel:libKF5Crash$secondaryArchSuffix + devel:libKF5DocTools$secondaryArchSuffix + devel:libKF5I18n$secondaryArchSuffix + devel:libKF5IconThemes$secondaryArchSuffix + devel:libKF5ItemViews$secondaryArchSuffix + devel:libKF5JobWidgets$secondaryArchSuffix + devel:libKF5KIOCore$secondaryArchSuffix + devel:libKF5Parts$secondaryArchSuffix + devel:libKF5Service$secondaryArchSuffix + devel:libKF5Solid$secondaryArchSuffix + devel:libKF5SonnetCore$secondaryArchSuffix + devel:libKF5TextWidgets$secondaryArchSuffix + devel:libKF5WidgetsAddons$secondaryArchSuffix + devel:libKF5WindowSystem$secondaryArchSuffix + devel:libKF5XmlGui$secondaryArchSuffix + devel:libQt5Core$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:g++$secondaryArchSuffix + cmd:lrelease$secondaryArchSuffix >= 5 + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + sed -e '/add_subdirectory( doc )/ s/^#*/#/' -i CMakeLists.txt + sed -e '/kdoctools_install(po)/ s/^#*/#/' -i CMakeLists.txt + + mkdir -p build + cd build + + cmake .. \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=$prefix \ + -DCMAKE_INSTALL_BINDIR=$commandBinDir \ + -DSHARE_INSTALL_PREFIX=$dataDir \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ + + make $jobArgs +} + +INSTALL() +{ + cd build + make install + + mkdir -p $appsDir + mv $commandBinDir/kcachegrind $appsDir/KCachegrind + ln -s $appsDir/KCachegrind $commandBinDir/kcachegrind + cp bin/cgview $commandBinDir + + local APP_SIGNATURE="application/x-vnd.kde-kcachegrind" + local MAJOR="`echo "$portVersion" | cut -d. -f1`" + local MIDDLE="`echo "$portVersion" | cut -d. -f2`" + local MINOR="`echo "$portVersion" | cut -d. -f3`" + local LONG_INFO="$SUMMARY" + sed \ + -e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \ + -e "s|@MAJOR@|$MAJOR|" \ + -e "s|@MIDDLE@|$MIDDLE|" \ + -e "s|@MINOR@|$MINOR|" \ + -e "s|@LONG_INFO@|$LONG_INFO|" \ + $portDir/additional-files/kcachegrind.rdef.in > kcachegrind.rdef + + addResourcesToBinaries kcachegrind.rdef $appsDir/KCachegrind + addAppDeskbarSymlink $appsDir/KCachegrind +} diff --git a/kde-apps/kcachegrind/patches/kcachegrind-22.04.0.patchset b/kde-apps/kcachegrind/patches/kcachegrind-22.04.0.patchset new file mode 100644 index 000000000..4711eac76 --- /dev/null +++ b/kde-apps/kcachegrind/patches/kcachegrind-22.04.0.patchset @@ -0,0 +1,106 @@ +From b715b0be8eaa99829f3fbc3962f7328b19e69bea Mon Sep 17 00:00:00 2001 +From: Gerasim Troeglazov <3dEyes@gmail.com> +Date: Tue, 19 Jul 2022 20:05:18 +1000 +Subject: Remove dbus + + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c8cf82a..defb990 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -23,7 +23,7 @@ include(FeatureSummary) + include(ECMAddAppIcon) + include(ECMPoQmTools) + +-find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core DBus Gui Widgets) ++find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core Gui Widgets) + + find_package(KF5 ${KF_MIN_VERSION} REQUIRED + Archive +@@ -34,7 +34,6 @@ find_package(KF5 ${KF_MIN_VERSION} REQUIRED + I18n + Config + KIO +- DBusAddons + ) + + add_definitions( +diff --git a/kcachegrind/CMakeLists.txt b/kcachegrind/CMakeLists.txt +index cb28103..534cf65 100644 +--- a/kcachegrind/CMakeLists.txt ++++ b/kcachegrind/CMakeLists.txt +@@ -34,7 +34,6 @@ set(kcachegrind_LIBS + KF5::ConfigGui + KF5::KIOCore + KF5::KIOWidgets +- KF5::DBusAddons + ) + + target_link_libraries(kcachegrind core views ${kcachegrind_LIBS}) +diff --git a/kcachegrind/main.cpp b/kcachegrind/main.cpp +index 536a175..814995e 100644 +--- a/kcachegrind/main.cpp ++++ b/kcachegrind/main.cpp +@@ -19,7 +19,6 @@ + #include + #include + #include +-#include + + #include "kdeconfig.h" + #include "toplevel.h" +@@ -46,8 +45,6 @@ int main( int argc, char ** argv ) + KAboutData::setApplicationData(aboutData); + QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("kcachegrind"))); + +- KDBusService service(KDBusService::Multiple); +- + // KGlobal::locale()->insertCatalog("kcachegrind_qt"); + Loader::initLoaders(); + +-- +2.36.1 + + +From 0bf94381a4f9c8022d2697c20074e9bac5716d5d Mon Sep 17 00:00:00 2001 +From: Gerasim Troeglazov <3dEyes@gmail.com> +Date: Tue, 19 Jul 2022 20:06:10 +1000 +Subject: Use system int64, uint64 defs + + +diff --git a/libcore/subcost.h b/libcore/subcost.h +index c1df65e..4bc004b 100644 +--- a/libcore/subcost.h ++++ b/libcore/subcost.h +@@ -14,7 +14,11 @@ + + #include "utils.h" + ++#ifdef __HAIKU__ ++#include ++#else + typedef unsigned long long uint64; ++#endif + + /** + * Cost event counter, simple wrapper around a 64bit entity +diff --git a/libcore/utils.h b/libcore/utils.h +index 2eb267b..e827a4b 100644 +--- a/libcore/utils.h ++++ b/libcore/utils.h +@@ -17,8 +17,12 @@ + + class QIODevice; + ++#ifdef __HAIKU__ ++#include ++#else + typedef unsigned long long uint64; + typedef long long int64; ++#endif + + /** + * A simple, constant string class +-- +2.36.1 +