mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
kactivities_stats: add recipe
This commit is contained in:
@@ -0,0 +1,98 @@
|
||||
SUMMARY="Framework for getting the usage statistics collected by the activities service"
|
||||
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-2024 KDE Organisation"
|
||||
LICENSE="GNU LGPL v2"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kactivities-stats-${portVersion}.tar.xz"
|
||||
CHECKSUM_SHA256="a4e942c0ba521ef393f4b2c12fbf33fea3bb2f4a0a6a388993b178922d91e666"
|
||||
SOURCE_DIR="kactivities-stats-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
kactivities_stats$secondaryArchSuffix = $portVersion
|
||||
lib:libKF5ActivitiesStats$secondaryArchSuffix = $portVersion compat >= 5
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libKF5Activities$secondaryArchSuffix
|
||||
lib:libKF5ConfigCore$secondaryArchSuffix
|
||||
lib:libKF5CoreAddons$secondaryArchSuffix
|
||||
lib:libQt5Core$secondaryArchSuffix
|
||||
lib:libQt5Gui$secondaryArchSuffix
|
||||
lib:libQt5Xml$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
kactivities_stats${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libKF5ActivitiesStats$secondaryArchSuffix = $portVersion compat >= 5
|
||||
"
|
||||
REQUIRES_devel="
|
||||
kactivities_stats$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
extra_cmake_modules$secondaryArchSuffix >= $portVersion
|
||||
devel:libboost_system$secondaryArchSuffix
|
||||
devel:libKF5Activities$secondaryArchSuffix == $portVersion
|
||||
devel:libkf5ConfigCore$secondaryArchSuffix == $portVersion
|
||||
devel:libkf5coreaddons$secondaryArchSuffix == $portVersion
|
||||
devel:libkf5windowsystem$secondaryArchSuffix == $portVersion
|
||||
devel:libQt5Core$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:lrelease$secondaryArchSuffix >= 5
|
||||
cmd:make
|
||||
"
|
||||
|
||||
PATCH()
|
||||
{
|
||||
sed -e '/platforms:/ a \ \ \ \ - name: Haiku' -i $sourceDir/metainfo.yaml
|
||||
}
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build
|
||||
cd build
|
||||
|
||||
cmake .. $cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt5 \
|
||||
-DKDE_INSTALL_QMLDIR=$dataDir/Qt5/qml \
|
||||
-DECM_MKSPECS_INSTALL_DIR=$dataDir/Qt5/mkspecs \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
||||
-DCMAKE_CXX_FLAGS=-DBOOST_NO_CXX11_CONSTEXPR
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd build
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libKF5ActivitiesStats
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$libDir/cmake \
|
||||
$dataDir/Qt5/mkspecs \
|
||||
$developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd build
|
||||
make test
|
||||
}
|
||||
Reference in New Issue
Block a user