mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
105 lines
2.9 KiB
Bash
105 lines
2.9 KiB
Bash
SUMMARY="A library for accessing the usage data collected by the activities system"
|
|
DESCRIPTION="The KActivitiesStats library provides a querying mechanism for the data that the \
|
|
activity manager collects - which documents hae been opened by which applications, and what \
|
|
documents have been linked to which activity.
|
|
The activity manager also keeps the score for each document which gets higher when a particular \
|
|
document has been often accessed or kept open for longer periods of time. This score is also \
|
|
available through the querying mechanism."
|
|
HOMEPAGE="https://invent.kde.org/plasma/plasma-activities-stats"
|
|
COPYRIGHT="2010-2025 KDE Organisation"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/plasma/$portVersion/plasma-activities-stats-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="dd43899617b0cc0e927a13bfb88146b761f7390c1fba568e2e4522f07f0f5901"
|
|
SOURCE_DIR="plasma-activities-stats-$portVersion"
|
|
PATCHES="plasma_activities_stats6-$portVersion.patchset"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="$portVersion"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
plasma_activities_stats6$secondaryArchSuffix = $portVersion
|
|
lib:libPlasmaActivitiesStats$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
# KF6
|
|
lib:libKF6ConfigCore$secondaryArchSuffix
|
|
lib:libPlasmaActivities$secondaryArchSuffix
|
|
# Qt6
|
|
lib:libQt6Core$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
plasma_activities_stats6${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libPlasmaActivitiesStats$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
plasma_activities_stats6$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libboost_system$secondaryArchSuffix >= 1.88.0
|
|
# KF6
|
|
extra_cmake_modules$secondaryArchSuffix
|
|
devel:libKF6ConfigCore$secondaryArchSuffix
|
|
devel:libPlasmaActivities$secondaryArchSuffix == $portVersion
|
|
# Qt6
|
|
qt6_tools${secondaryArchSuffix}_devel
|
|
devel:libQt6Core$secondaryArchSuffix
|
|
devel:libQt6Qml$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:dot
|
|
cmd:doxygen
|
|
cmd:make
|
|
cmd:msgfmt$secondaryArchSuffix
|
|
cmd:msgmerge$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
#TEST_REQUIRES="
|
|
# qthaikuplugins$secondaryArchSuffix
|
|
# "
|
|
|
|
BUILD()
|
|
{
|
|
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
|
|
$cmakeDirArgs \
|
|
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt6 \
|
|
-DKDE_INSTALL_QMLDIR=$dataDir/Qt6/qml \
|
|
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
|
-DBUILD_QCH=ON \
|
|
-DBUILD_TESTING=OFF \
|
|
-Wno-dev
|
|
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
prepareInstalledDevelLib \
|
|
libPlasmaActivitiesStats
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir \
|
|
$dataDir/doc \
|
|
$libDir/cmake
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
# export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
|
# no tests found
|
|
make -C build test
|
|
}
|