mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
137 lines
4.2 KiB
Bash
137 lines
4.2 KiB
Bash
SUMMARY="Job-based API for interacting with IMAP servers"
|
|
DESCRIPTION="This library provides a job-based API for interacting with an IMAP4rev1 server. It \
|
|
manages connections, encryption and parameter quoting and encoding, but otherwise provides quite \
|
|
a low-level interface to the protocol. This library does not implement an IMAP client; it \
|
|
merely makes it easier to do so.
|
|
|
|
Users should be familiar with *RFC 3501* https://tools.ietf.org/html/rfc3501 *IMAP 4rev1* as \
|
|
well as other related *RFCs* https://www.iana.org/assignments/imap4-capabilities although the \
|
|
library hides some of the nastier details like the encoding and quoting of strings."
|
|
HOMEPAGE="https://community.kde.org/KDE_PIM"
|
|
COPYRIGHT="2010-2024 KDE Organisation"
|
|
LICENSE="BSD (3-clause)
|
|
CC0 v1.0
|
|
GNU GPL v2
|
|
GNU LGPL v2
|
|
GNU LGPL v2.1"
|
|
REVISION="1"
|
|
SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kimap-$portVersion.tar.xz"
|
|
CHECKSUM_SHA256="42fd2019aca7da1a35c0fcf52d956be2bf4fe2eda496f23c982aa890d845783d"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
libVersion="5.24.5"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
kimap$secondaryArchSuffix = $portVersion
|
|
lib:libKPim5IMAP$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libKF5Codecs$secondaryArchSuffix
|
|
lib:libKF5ConfigCore$secondaryArchSuffix
|
|
lib:libKF5CoreAddons$secondaryArchSuffix
|
|
lib:libKF5I18n$secondaryArchSuffix
|
|
lib:libKF5KIOCore$secondaryArchSuffix
|
|
lib:libKF5Service$secondaryArchSuffix
|
|
lib:libKPim5Mime$secondaryArchSuffix
|
|
lib:libQt5Core$secondaryArchSuffix
|
|
lib:libQt5DBus$secondaryArchSuffix
|
|
lib:libQt5Gui$secondaryArchSuffix
|
|
lib:libQt5Network$secondaryArchSuffix
|
|
lib:libQt5Widgets$secondaryArchSuffix
|
|
lib:libQt5Xml$secondaryArchSuffix
|
|
lib:libsasl2$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
kimap${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libKPim5IMAP$secondaryArchSuffix = $libVersionCompat
|
|
devel:libkimaptest$secondaryArchSuffix
|
|
"
|
|
REQUIRES_devel="
|
|
kimap$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
extra_cmake_modules$secondaryArchSuffix >= 5.115
|
|
devel:libKF5Auth$secondaryArchSuffix
|
|
devel:libKF5Bookmarks$secondaryArchSuffix
|
|
devel:libKF5Codecs$secondaryArchSuffix
|
|
devel:libKF5Completion$secondaryArchSuffix
|
|
devel:libKF5ConfigCore$secondaryArchSuffix
|
|
devel:libKF5ConfigWidgets$secondaryArchSuffix
|
|
devel:libKF5CoreAddons$secondaryArchSuffix
|
|
devel:libKF5I18n$secondaryArchSuffix
|
|
devel:libKF5IconThemes$secondaryArchSuffix
|
|
devel:libKF5ItemViews$secondaryArchSuffix
|
|
devel:libKF5JobWidgets$secondaryArchSuffix
|
|
devel:libKF5KIOCore$secondaryArchSuffix
|
|
devel:libKF5Service$secondaryArchSuffix
|
|
devel:libKF5Solid$secondaryArchSuffix
|
|
devel:libKF5SonnetCore$secondaryArchSuffix
|
|
devel:libKF5TextWidgets$secondaryArchSuffix
|
|
devel:libKF5WidgetsAddons$secondaryArchSuffix
|
|
devel:libKF5WindowSystem$secondaryArchSuffix
|
|
devel:libKF5XmlGui$secondaryArchSuffix
|
|
devel:libKPim5Mime$secondaryArchSuffix
|
|
devel:libQt5Core$secondaryArchSuffix
|
|
devel:libQt5DBus$secondaryArchSuffix
|
|
devel:libQt5Gui$secondaryArchSuffix
|
|
devel:libQt5Network$secondaryArchSuffix
|
|
devel:libQt5Widgets$secondaryArchSuffix
|
|
devel:libQt5Xml$secondaryArchSuffix
|
|
devel:libsasl2$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:cmake
|
|
cmd:g++$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:msgmerge
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:qdbuscpp2xml$secondaryArchSuffix >= 5
|
|
"
|
|
|
|
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
|
|
|
|
sed -i 's,${_IMPORT_PREFIX}/lib',$developDir/lib, \
|
|
$libDir/cmake/KF5IMAP/KPim5IMAPTargets-release.cmake
|
|
sed -i 's,${_IMPORT_PREFIX}/lib',$developDir/lib, \
|
|
$libDir/cmake/KPim5IMAP/KPim5IMAPTargets-release.cmake
|
|
|
|
prepareInstalledDevelLibs \
|
|
libKPim5IMAP \
|
|
libkimaptest
|
|
|
|
packageEntries devel \
|
|
$libDir/cmake \
|
|
$dataDir/Qt5/mkspecs \
|
|
$developDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|