mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
libkgapi, add KF6 package (#11111)
This commit is contained in:
152
kde-apps/libkgapi/libkgapi24-24.08.0.recipe
Normal file
152
kde-apps/libkgapi/libkgapi24-24.08.0.recipe
Normal file
@@ -0,0 +1,152 @@
|
||||
SUMMARY="A KDE-based library for accessing various Google services via their public API"
|
||||
DESCRIPTION="LibKGAPI (previously called LibKGoogle) is a C++ library that implements APIs for \
|
||||
various Google services.
|
||||
|
||||
Currently supported APIs:
|
||||
* Calendar API v3 (https://developers.google.com/google-apps/calendar)
|
||||
* Contacts API v3 (https://developers.google.com/google-apps/contacts/v3/)
|
||||
* Tasks API v1 (https://developers.google.com/google-apps/tasks)
|
||||
* Static Google Maps API v2 (https://developers.google.com/maps/documentation/staticmaps/)
|
||||
* Drive API v2 (https://developers.google.com/drive/v2/reference)
|
||||
* Blogger API v3 (https://developers.google.com/blogger/docs/3.0/reference/)
|
||||
|
||||
Deprecated APIs:
|
||||
* Latitude API v1 (https://developers.google.com/latitude/v1/)."
|
||||
HOMEPAGE="https://community.kde.org/KDE_PIM"
|
||||
COPYRIGHT="2010-2024 KDE Organisation"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/libkgapi-$portVersion.tar.xz"
|
||||
CHECKSUM_SHA256="1db9e5e2b1bb550b36780f9ab5e571e15b75d397c5555e0e18fd8e3541ddc915"
|
||||
SOURCE_DIR="libkgapi-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="6.1.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libkgapi24$secondaryArchSuffix = $portVersion
|
||||
lib:libKPim6GAPIBlogger$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libKPim6GAPICalendar$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libKPim6GAPICore$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libKPim6GAPIDrive$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libKPim6GAPILatitude$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libKPim6GAPIMaps$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libKPim6GAPIPeople$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libKPim6GAPITasks$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libGL$secondaryArchSuffix
|
||||
# KF6
|
||||
lib:libKF6CalendarCore$secondaryArchSuffix
|
||||
lib:libKF6Codecs$secondaryArchSuffix
|
||||
lib:libKF6ConfigCore$secondaryArchSuffix
|
||||
lib:libKF6Contacts$secondaryArchSuffix
|
||||
lib:libKF6CoreAddons$secondaryArchSuffix
|
||||
lib:libKF6Wallet$secondaryArchSuffix
|
||||
# Qt6
|
||||
lib:libQt6Core$secondaryArchSuffix
|
||||
lib:libQt6DBus$secondaryArchSuffix
|
||||
lib:libQt6Gui$secondaryArchSuffix
|
||||
lib:libQt6Network$secondaryArchSuffix
|
||||
lib:libQt6Widgets$secondaryArchSuffix
|
||||
lib:libQt6Xml$secondaryArchSuffix
|
||||
lib:libsasl2$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libkgapi24${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libKPim6GAPIBlogger$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libKPim6GAPICalendar$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libKPim6GAPICore$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libKPim6GAPIDrive$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libKPim6GAPILatitude$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libKPim6GAPIMaps$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libKPim6GAPIPeople$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libKPim6GAPITasks$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libkgapi24$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
# KF6
|
||||
extra_cmake_modules$secondaryArchSuffix >= 6.0.0
|
||||
devel:libKF6AuthCore$secondaryArchSuffix
|
||||
devel:libKF6CalendarCore$secondaryArchSuffix
|
||||
devel:libKF6Codecs$secondaryArchSuffix
|
||||
devel:libKF6ConfigCore$secondaryArchSuffix
|
||||
devel:libKF6ConfigWidgets$secondaryArchSuffix
|
||||
devel:libKF6Contacts$secondaryArchSuffix
|
||||
devel:libKF6CoreAddons$secondaryArchSuffix
|
||||
devel:libKF6I18n$secondaryArchSuffix
|
||||
devel:libKF6IconThemes$secondaryArchSuffix
|
||||
devel:libKF6SonnetCore$secondaryArchSuffix
|
||||
devel:libKF6TextWidgets$secondaryArchSuffix
|
||||
devel:libKF6Wallet$secondaryArchSuffix
|
||||
devel:libKF6WidgetsAddons$secondaryArchSuffix
|
||||
# Qt6
|
||||
devel:libQt6Core$secondaryArchSuffix
|
||||
devel:libQt6DBus$secondaryArchSuffix
|
||||
devel:libQt6Gui$secondaryArchSuffix
|
||||
devel:libQt6Network$secondaryArchSuffix
|
||||
devel:libQt6Qml$secondaryArchSuffix
|
||||
devel:libQt6UiTools$secondaryArchSuffix
|
||||
devel:libQt6Widgets$secondaryArchSuffix
|
||||
devel:libQt6Xml$secondaryArchSuffix
|
||||
devel:libsasl2$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:dot
|
||||
cmd:doxygen
|
||||
cmd:g++$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:msgmerge
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
TEST_REQUIRES="
|
||||
qthaikuplugins$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
export LDFLAGS="-lnetwork"
|
||||
cmake -Bbuild -S. $cmakeDirArgs \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DECM_DIR=/system/data/cmake/Modules/ECM/cmake \
|
||||
-DBUILD_QCH=ON
|
||||
make -C build $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C build install
|
||||
|
||||
prepareInstalledDevelLibs \
|
||||
libKPim6GAPIBlogger \
|
||||
libKPim6GAPICalendar \
|
||||
libKPim6GAPICore \
|
||||
libKPim6GAPIDrive \
|
||||
libKPim6GAPILatitude \
|
||||
libKPim6GAPIMaps \
|
||||
libKPim6GAPIPeople \
|
||||
libKPim6GAPITasks
|
||||
|
||||
packageEntries devel \
|
||||
$developDir \
|
||||
$dataDir/doc \
|
||||
$libDir/cmake
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
# 94% tests passed, 3 tests failed out of 49
|
||||
export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}"
|
||||
ctest --test-dir build --output-on-failure
|
||||
}
|
||||
Reference in New Issue
Block a user