From 9fa6ecee7b4a583a9253018492703497ad4d119e Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Sat, 2 Mar 2024 08:32:45 +0100 Subject: [PATCH] kquickcharts, new kde framework (#10171) --- .../kquickcharts/kquickcharts-5.115.0.recipe | 90 +++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 kde-frameworks/kquickcharts/kquickcharts-5.115.0.recipe diff --git a/kde-frameworks/kquickcharts/kquickcharts-5.115.0.recipe b/kde-frameworks/kquickcharts/kquickcharts-5.115.0.recipe new file mode 100644 index 000000000..857926374 --- /dev/null +++ b/kde-frameworks/kquickcharts/kquickcharts-5.115.0.recipe @@ -0,0 +1,90 @@ +SUMMARY="A QtQuick module providing high-performance charts" +DESCRIPTION="The Quick Charts module provides a set of charts that can be used from QtQuick \ +applications. They are intended to be used for both simple display of data as well as continuous \ +display of high-volume data (often referred to as plotters). +The charts use a system called distance fields for their accelerated rendering, which provides \ +ways of using the GPU for rendering 2D shapes without loss of quality." +HOMEPAGE="https://invent.kde.org/frameworks/kquickcharts" +COPYRIGHT="2010-2024 KDE Organisation" +LICENSE="GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://invent.kde.org/frameworks/kquickcharts/-/archive/v$portVersion/kquickcharts-v$portVersion.tar.bz2" +CHECKSUM_SHA256="060907025f3939532a4cefc2b5e852bcb2adbdb0e6bea22da508abab903a0f3e" +SOURCE_DIR="kquickcharts-v$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + kquickcharts$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libQt5Core$secondaryArchSuffix + lib:libQt5Gui$secondaryArchSuffix + lib:libQt5Network$secondaryArchSuffix + lib:libQt5Qml$secondaryArchSuffix + lib:libQt5Quick$secondaryArchSuffix + " + +PROVIDES_devel=" + kquickcharts${secondaryArchSuffix}_devel = $portVersion + devel:kquickcharts$secondaryArchSuffix = $portVersion + " +REQUIRES_devel=" + kquickcharts$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix >= $portVersion + devel:libQt5Core$secondaryArchSuffix + devel:libQt5Qml$secondaryArchSuffix + devel:libQt5Quick$secondaryArchSuffix + devel:libQt5QuickControls2$secondaryArchSuffix + devel:libQt5Gui$secondaryArchSuffix + devel:libQt5Network$secondaryArchSuffix + devel:libQt5Test$secondaryArchSuffix + devel:libQt5Widgets$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:g++$secondaryArchSuffix + cmd:glslangValidator$secondaryArchSuffix + cmd:make + cmd:msgfmt + cmd:msgmerge + cmd:pkg_config$secondaryArchSuffix + cmd:qdbuscpp2xml$secondaryArchSuffix >= 5 + cmd:xsltproc + " +TEST_REQUIRES=" + qthaikuplugins$secondaryArchSuffix + " + +PATCH() +{ + sed -e '/platforms:/ a \ \ \ \ - name: Haiku' -i $sourceDir/metainfo.yaml +} + +BUILD() +{ + cmake -Bbuild -S. $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE_INSTALL_QMLDIR=$dataDir/Qt5/qml \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + + packageEntries devel \ + $libDir/cmake +} + +TEST() +{ + make -C build test # launches a few windows +}