From 731a81d9d20f90e0fe14512f5491b8acef2dafc5 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Mon, 17 Jul 2023 10:59:59 +0200 Subject: [PATCH] kcalendarcore, new recipe (#9045) --- .../kcalendarcore/kcalendarcore-5.93.0.recipe | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 kde-frameworks/kcalendarcore/kcalendarcore-5.93.0.recipe diff --git a/kde-frameworks/kcalendarcore/kcalendarcore-5.93.0.recipe b/kde-frameworks/kcalendarcore/kcalendarcore-5.93.0.recipe new file mode 100644 index 000000000..7bcbd460d --- /dev/null +++ b/kde-frameworks/kcalendarcore/kcalendarcore-5.93.0.recipe @@ -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 +}