Files
haikuports/kde-frameworks/kcalendarcore/kcalendarcore6-6.25.0.recipe
2026-04-14 10:46:08 +00:00

115 lines
3.0 KiB
Bash

SUMMARY="The KDE calendar access library"
DESCRIPTION="KCalendarCore supports the standard formats iCalendar and vCalendar and the group \
scheduling standard iTIP.
A calendar contains information like incidences (events, to-dos, journals), alarms, time zones, \
and other useful information. This API provides access to that calendar information via well \
known calendar formats iCalendar (or iCal) and the older vCalendar."
HOMEPAGE="https://invent.kde.org/frameworks/kcalendarcore"
COPYRIGHT="2010-2026 KDE Organisation"
LICENSE="BSD (3-clause)
GNU LGPL v2
GNU LGPL v3"
REVISION="1"
SOURCE_URI="https://download.kde.org/stable/frameworks/${portVersion%.*}/kcalendarcore-${portVersion}.tar.xz"
CHECKSUM_SHA256="d6a19c3ec0cdfc6979bfde08ce7c62db8c52dd9dff4a13e4da8978e00480dfeb"
SOURCE_DIR="kcalendarcore-$portVersion"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
libVersion="$portVersion"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
kcalendarcore6$secondaryArchSuffix = $portVersion
lib:libKF6CalendarCore$secondaryArchSuffix = $libVersionCompat
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libical$secondaryArchSuffix
lib:libQt6Core$secondaryArchSuffix
lib:libQt6Gui$secondaryArchSuffix
"
PROVIDES_devel="
kcalendarcore6${secondaryArchSuffix}_devel = $portVersion
devel:libKF6CalendarCore$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
kcalendarcore6$secondaryArchSuffix == $portVersion base
"
ARCHITECTURES_doc="any"
PROVIDES_doc="
kcalendarcore6_doc = $portVersion
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= $portVersion
qt6_tools${secondaryArchSuffix}_devel
devel:libical$secondaryArchSuffix
devel:libQt6Core$secondaryArchSuffix
devel:libQt6Gui$secondaryArchSuffix
devel:libQt6Qml$secondaryArchSuffix
"
BUILD_PREREQUIRES="
kde_qdoc_common
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
cmd:msgfmt$secondaryArchSuffix
cmd:msgmerge$secondaryArchSuffix
cmd:perl
cmd:pkg_config$secondaryArchSuffix
"
TEST_REQUIRES="
qthaikuplugins$secondaryArchSuffix
"
BUILD()
{
export KDE_DOCS="`finddir B_SYSTEM_DATA_DIRECTORY`"/kde-qdoc-common
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release \
$cmakeDirArgs \
-DDOC_DESTDIR=$documentationDir/packages/qt6_base \
-DCMAKE_SKIP_RPATH=YES \
-DBUILD_TESTING=OFF \
-Wno-dev
make -C build $jobArgs
cmake --build build --target prepare_docs
cmake --build build --target generate_docs
cmake --build build --target generate_qch
}
INSTALL()
{
make -C build install
cmake --build build --target install_html_docs
cmake --build build --target install_qch_docs
prepareInstalledDevelLib \
libKF6CalendarCore
fixPkgconfig
packageEntries devel \
$developDir \
$libDir/cmake
packageEntries doc \
$documentationDir
}
TEST()
{
# 99% tests passed, 4 tests failed out of 506
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
ctest --test-dir build --output-on-failure
}