kcalendarcore, new recipe (#9045)

This commit is contained in:
Schrijvers Luc
2023-07-17 10:59:59 +02:00
committed by GitHub
parent 79d272d0e5
commit 731a81d9d2

View File

@@ -0,0 +1,92 @@
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://github.com/KDE/kcalendarcore"
COPYRIGHT="2010-2022 KDE Organisation"
LICENSE="BSD (3-clause)
GNU LGPL v2
GNU LGPL v3"
REVISION="1"
SOURCE_URI="https://github.com/KDE/kcalendarcore/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="96ef69866e7a5af7ec80a422d8024dd0e49f14ea134e050a7c570b8003a41899"
SOURCE_FILENAME="kcalendarcore-v$portVersion.tar.gz"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
kcalendarcore$secondaryArchSuffix = $portVersion
lib:libKF5CalendarCore$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libical$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
lib:libQt5Gui$secondaryArchSuffix
"
PROVIDES_devel="
kcalendarcore${secondaryArchSuffix}_devel = $portVersion
devel:libKF5CalendarCore$secondaryArchSuffix = $portVersion compat >= 5
"
REQUIRES_devel="
kcalendarcore$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
extra_cmake_modules$secondaryArchSuffix >= $portVersion
devel:libical$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
devel:libQt5Gui$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:g++$secondaryArchSuffix
cmd:make
cmd:perl
"
TEST_REQUIRES="
qthaikuplugins$secondaryArchSuffix #it opens windows during the tests, maybe we don't want that on the buildbots.
"
PATCH()
{
sed -e '/platforms:/ a \ \ \ \ - name: Haiku' -i $sourceDir/metainfo.yaml
}
BUILD()
{
cmake -Bbuild -S. $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
make -C build $jobArgs
}
INSTALL()
{
make -C build install
prepareInstalledDevelLib \
libKF5CalendarCore
fixPkgconfig
packageEntries devel \
$libDir/cmake \
$dataDir/Qt5/mkspecs \
$developDir
}
TEST()
{
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
make -C build test
}