mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
198 lines
6.9 KiB
Bash
198 lines
6.9 KiB
Bash
SUMMARY="Akonadi calendar integration"
|
|
DESCRIPTION="Akonadi Calendar is a library that effectively bridges the type-agnostic API of the \
|
|
Akonadi client libraries and the domain-specific KCalCore library. It provides jobs, models and \
|
|
other helpers to make working with events and calendars through Akonadi easier.
|
|
|
|
The most notable class is Akonadi::ETMCalendar, a model built on top of the \
|
|
Akonadi::EntityTreeModel which provides filters to only show events from selected calendars, \
|
|
iterate over events, including recurrences, provides reverse lookup from KCalCore::Incidence to \
|
|
Akonadi::Item and other features.
|
|
|
|
Besides the model there is for example Akonadi::FreeBusyProviderBase, an interface for Akonadi \
|
|
Resources that can provide Free/Busy information."
|
|
HOMEPAGE="https://community.kde.org/KDE_PIM"
|
|
COPYRIGHT="2010-2024 KDE Organisation"
|
|
LICENSE="BSD (3-clause)
|
|
CC0 v1.0
|
|
GNU LGPL v2
|
|
GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/akonadi-calendar-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="cf8da9409412ed3348ee4a8ab9e2df8ecf844070f84c8cdbf0b6f4c8269339ca"
|
|
SOURCE_DIR="akonadi-calendar-$portVersion"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
GLOBAL_WRITABLE_FILES="
|
|
settings/xdg/autostart/org.kde.kalendarac.desktop keep-old
|
|
"
|
|
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="5.24.5"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
akonadi_calendar$secondaryArchSuffix = $portVersion
|
|
cmd:kalendarac$commandSuffix = $portVersion
|
|
lib:libKPim5AkonadiCalendar$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libassuan$secondaryArchSuffix
|
|
lib:libgpgmepp$secondaryArchSuffix
|
|
lib:libGrantlee_Templates$secondaryArchSuffix
|
|
lib:libKF5Auth$secondaryArchSuffix
|
|
lib:libKF5CalendarCore$secondaryArchSuffix
|
|
lib:libKF5Codecs$secondaryArchSuffix
|
|
lib:libKF5Completion$secondaryArchSuffix
|
|
lib:libKF5Contacts$secondaryArchSuffix
|
|
lib:libKF5ConfigCore$secondaryArchSuffix
|
|
lib:libKF5ConfigWidgets$secondaryArchSuffix
|
|
lib:libKF5CoreAddons$secondaryArchSuffix
|
|
lib:libKF5DBusAddons$secondaryArchSuffix
|
|
lib:libKF5I18n$secondaryArchSuffix
|
|
lib:libKF5ItemModels$secondaryArchSuffix
|
|
lib:libKF5KIOCore$secondaryArchSuffix
|
|
lib:libKF5JobWidgets$secondaryArchSuffix
|
|
lib:libKF5Notifications$secondaryArchSuffix
|
|
lib:libKF5Service$secondaryArchSuffix
|
|
lib:libKF5Solid$secondaryArchSuffix
|
|
lib:libKF5TextAutoCorrectionWidgets$secondaryArchSuffix
|
|
lib:libKF5TextWidgets$secondaryArchSuffix
|
|
lib:libKF5Wallet$secondaryArchSuffix
|
|
lib:libKF5WidgetsAddons$secondaryArchSuffix
|
|
lib:libKF5WindowSystem$secondaryArchSuffix
|
|
lib:libKF5XmlGui$secondaryArchSuffix
|
|
lib:libKPim5AkonadiContact$secondaryArchSuffix
|
|
lib:libKPim5AkonadiCore$secondaryArchSuffix
|
|
lib:libKPim5AkonadiWidgets$secondaryArchSuffix
|
|
lib:libKPim5AkonadiMime$secondaryArchSuffix
|
|
lib:libKPim5CalendarUtils$secondaryArchSuffix
|
|
lib:libKPim5GrantleeTheme$secondaryArchSuffix
|
|
lib:libKPim5IdentityManagement$secondaryArchSuffix
|
|
lib:libKPim5IMAP$secondaryArchSuffix
|
|
lib:libKPim5Libkleo$secondaryArchSuffix
|
|
lib:libKPim5Libkdepim$secondaryArchSuffix
|
|
lib:libKPim5MailTransport$secondaryArchSuffix
|
|
lib:libKPim5Mime$secondaryArchSuffix
|
|
lib:libKPim5MessageCore$secondaryArchSuffix
|
|
lib:libKPim5PimCommon$secondaryArchSuffix
|
|
lib:libKPim5PimCommonAkonadi$secondaryArchSuffix
|
|
lib:libKPim5TextEdit$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5DBus$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
lib:libQt5Xml$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
akonadi_calendar${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libKPim5AkonadiCalendar$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES_devel="
|
|
akonadi_calendar$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix >= 5.115
|
|
devel:libassuan$secondaryArchSuffix
|
|
devel:libgpgmepp$secondaryArchSuffix
|
|
devel:libGrantlee_Templates$secondaryArchSuffix
|
|
devel:libKF5Auth$secondaryArchSuffix
|
|
devel:libKF5Bookmarks$secondaryArchSuffix
|
|
devel:libKF5CalendarCore$secondaryArchSuffix
|
|
devel:libKF5Codecs$secondaryArchSuffix
|
|
devel:libKF5Completion$secondaryArchSuffix
|
|
devel:libKF5Contacts$secondaryArchSuffix
|
|
devel:libKF5ConfigCore$secondaryArchSuffix
|
|
devel:libKF5ConfigWidgets$secondaryArchSuffix
|
|
devel:libKF5CoreAddons$secondaryArchSuffix
|
|
devel:libKF5DBusAddons$secondaryArchSuffix
|
|
devel:libKF5I18n$secondaryArchSuffix
|
|
devel:libKF5IconThemes$secondaryArchSuffix
|
|
devel:libKF5ItemModels$secondaryArchSuffix
|
|
devel:libKF5ItemViews$secondaryArchSuffix
|
|
devel:libKF5JobWidgets$secondaryArchSuffix
|
|
devel:libKF5KIOCore$secondaryArchSuffix
|
|
devel:libKF5Notifications$secondaryArchSuffix
|
|
devel:libKF5NotifyConfig$secondaryArchSuffix
|
|
devel:libKF5Service$secondaryArchSuffix
|
|
devel:libKF5Solid$secondaryArchSuffix
|
|
devel:libKF5SonnetCore$secondaryArchSuffix
|
|
devel:libKF5TextAutoCorrectionWidgets$secondaryArchSuffix
|
|
devel:libKF5TextWidgets$secondaryArchSuffix
|
|
devel:libKF5Wallet$secondaryArchSuffix
|
|
devel:libKF5WidgetsAddons$secondaryArchSuffix
|
|
devel:libKF5WindowSystem$secondaryArchSuffix
|
|
devel:libKF5XmlGui$secondaryArchSuffix
|
|
devel:libKPim5AkonadiContact$secondaryArchSuffix
|
|
devel:libKPim5AkonadiCore$secondaryArchSuffix
|
|
devel:libKPim5AkonadiMime$secondaryArchSuffix
|
|
devel:libKPim5CalendarUtils$secondaryArchSuffix
|
|
devel:libKPim5GrantleeTheme$secondaryArchSuffix
|
|
devel:libKPim5Libkdepim$secondaryArchSuffix
|
|
devel:libKPim5Libkleo$secondaryArchSuffix
|
|
devel:libKPim5IdentityManagement$secondaryArchSuffix
|
|
devel:libKPim5IMAP$secondaryArchSuffix
|
|
devel:libKPim5Mime$secondaryArchSuffix
|
|
devel:libKPim5MailTransport$secondaryArchSuffix
|
|
devel:libKPim5MessageCore$secondaryArchSuffix
|
|
devel:libKPim5PimCommon$secondaryArchSuffix
|
|
devel:libKPim5TextEdit$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5DBus$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5Network$secondaryArchSuffix
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
devel:libQt5Xml$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:msgmerge
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
|
|
"
|
|
|
|
PATCH()
|
|
{
|
|
sed -e '/platforms:/ a \ \ \ \ - name: Haiku' -i $sourceDir/metainfo.yaml
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
cmake -Bbuild -S. $cmakeDirArgs \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_BINDIR=$commandBinDir \
|
|
-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
|
|
make -C build $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make -C build install
|
|
|
|
prepareInstalledDevelLib \
|
|
libKPim5AkonadiCalendar
|
|
|
|
packageEntries devel \
|
|
$libDir/cmake \
|
|
$dataDir/Qt5/mkspecs \
|
|
$developDir
|
|
}
|