mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 12:10:06 +02:00
kcalendarcore, new recipe (#9045)
This commit is contained in:
92
kde-frameworks/kcalendarcore/kcalendarcore-5.93.0.recipe
Normal file
92
kde-frameworks/kcalendarcore/kcalendarcore-5.93.0.recipe
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user