kquickcharts, new kde framework (#10171)

This commit is contained in:
Schrijvers Luc
2024-03-02 08:32:45 +01:00
committed by GitHub
parent a86ac7e2d9
commit 9fa6ecee7b

View File

@@ -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
}