From 4575ab4cb449c46d85e94025452282d0af23d477 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Sun, 14 Jul 2024 09:13:22 +0200 Subject: [PATCH] kmime, add KF6 library (#10690) --- kde-apps/kmime/kmime24-24.05.1.recipe | 86 +++++++++++++++++++ kde-apps/kmime/patches/kmime-24.05.2.patchset | 24 ++++++ 2 files changed, 110 insertions(+) create mode 100644 kde-apps/kmime/kmime24-24.05.1.recipe create mode 100644 kde-apps/kmime/patches/kmime-24.05.2.patchset diff --git a/kde-apps/kmime/kmime24-24.05.1.recipe b/kde-apps/kmime/kmime24-24.05.1.recipe new file mode 100644 index 000000000..17ec0f978 --- /dev/null +++ b/kde-apps/kmime/kmime24-24.05.1.recipe @@ -0,0 +1,86 @@ +SUMMARY="Storage service for PIM data and libraries for PIM apps" +DESCRIPTION="PIM layer, which provides an asynchronous API to access all kind of PIM data." +HOMEPAGE="https://community.kde.org/KDE_PIM/Akonadi" +COPYRIGHT="2010-2024 KDE Organisation" +LICENSE="BSD (3-clause) + CC0 v1.0 + GNU LGPL v2" +REVISION="1" +SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kmime-$portVersion.tar.xz" +CHECKSUM_SHA256="f0138e11d9e8a9de8e9d57081a1fb4b43676e08bc4c3389740b31e9a00c91efa" +SOURCE_DIR="kmime-$portVersion" +PATCHES="kmime-$portVersion.patchset" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="6.1.1" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + kmime24$secondaryArchSuffix = $portVersion + lib:libKPim6Mime$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libKF6Codecs$secondaryArchSuffix + lib:libKF6I18n$secondaryArchSuffix + lib:libQt6Core$secondaryArchSuffix + " + +PROVIDES_devel=" + kmime24${secondaryArchSuffix}_devel = $portVersion + devel:libKPim6Mime$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + kmime24$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix >= 6.0.0 + devel:libKF6Codecs$secondaryArchSuffix + devel:libKF6I18n$secondaryArchSuffix + devel:libQt6Core$secondaryArchSuffix + devel:libQt6UiTools$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:dot + cmd:doxygen + cmd:g++$secondaryArchSuffix + cmd:make + cmd:msgfmt + cmd:msgmerge + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + cmake -Bbuild -S. $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release \ + -DKDE_INSTALL_QTQCHDIR=$documentationDir/packages/qt6 \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake \ + -DBUILD_QCH=ON + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + + prepareInstalledDevelLib \ + libKPim6Mime + + packageEntries devel \ + $developDir \ + $documentationDir \ + $libDir/cmake +} + +TEST() +{ + # 88% tests passed, 2 tests failed out of 17 + export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}" + ctest --test-dir build --output-on-failure +} diff --git a/kde-apps/kmime/patches/kmime-24.05.2.patchset b/kde-apps/kmime/patches/kmime-24.05.2.patchset new file mode 100644 index 000000000..10f71c9af --- /dev/null +++ b/kde-apps/kmime/patches/kmime-24.05.2.patchset @@ -0,0 +1,24 @@ +From cfcef04836433553f57d6e2125f72260f5d244e6 Mon Sep 17 00:00:00 2001 +From: Schrijvers Luc +Date: Sat, 11 May 2024 11:34:11 +0200 +Subject: Link to libnetwork + + +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index 1efa018..54d1956 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -65,6 +65,10 @@ if (WIN32) + set(_kmime_extra_libs ws2_32) + endif() + ++if (HAIKU) ++ set(_kmime_extra_libs network) ++endif() ++ + target_link_libraries(KPim6Mime + PUBLIC + Qt::Core +-- +2.43.2 +