From 36e4bea402644601e8e01a367d49581df3b2a26e Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Tue, 10 Sep 2024 13:08:58 +0200 Subject: [PATCH] kopeninghours, add KF6 recipe (#11083) --- .../kopeninghours24-24.08.0.recipe | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 dev-libs/kopeninghours/kopeninghours24-24.08.0.recipe diff --git a/dev-libs/kopeninghours/kopeninghours24-24.08.0.recipe b/dev-libs/kopeninghours/kopeninghours24-24.08.0.recipe new file mode 100644 index 000000000..d1a80bbc9 --- /dev/null +++ b/dev-libs/kopeninghours/kopeninghours24-24.08.0.recipe @@ -0,0 +1,85 @@ +SUMMARY="A library for parsing and evaluating OSM opening hours expressions" +DESCRIPTION="OSM opening hours expressions are used to describe when a feature is open/available \ +or closed. This format is not only used in OpenStreetMap itself, but in various other data \ +sources or APIs needing such a description as well." +HOMEPAGE="https://invent.kde.org/pim/kopeninghours" +COPYRIGHT="2010-2024 KDE Organisation" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://download.kde.org/stable/release-service/$portVersion/src/kopeninghours-$portVersion.tar.xz" +CHECKSUM_SHA256="d9c97b3c6ffc6c7105bc1f890788475a86e47bc02787916dae6459bdcc3658d6" +SOURCE_DIR="kopeninghours-$portVersion" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +libVersion="24.8.0" +libVersionCompat="$libVersion compat >= ${libVersion%%.*}" + +PROVIDES=" + kopeninghours24$secondaryArchSuffix = $portVersion + lib:libKOpeningHours$secondaryArchSuffix = $libVersionCompat + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libKF6Holidays$secondaryArchSuffix + lib:libKF6I18n$secondaryArchSuffix + lib:libQt6Core$secondaryArchSuffix + " + +PROVIDES_devel=" + kopeninghours24${secondaryArchSuffix}_devel = $portVersion + devel:libKOpeningHours$secondaryArchSuffix = $libVersionCompat + " +REQUIRES_devel=" + kopeninghours24$secondaryArchSuffix == $portVersion base + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + extra_cmake_modules$secondaryArchSuffix + devel:libKF6Holidays$secondaryArchSuffix + devel:libKF6I18n$secondaryArchSuffix + devel:libQt6Core$secondaryArchSuffix + devel:libQt6Qml$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:bison + cmd:cmake + cmd:flex + cmd:g++$secondaryArchSuffix + cmd:make + cmd:msgfmt + cmd:msgmerge + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + cmake -Bbuild -S. $cmakeDirArgs \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_WITH_QT6=ON \ + -DKDE_INSTALL_PLUGINDIR=$addOnsDir/Qt6 \ + -DKDE_INSTALL_QMLDIR=$dataDir/Qt6/qml \ + -DECM_DIR=/system/data/cmake/Modules/ECM/cmake -Wno-dev + make -C build $jobArgs +} + +INSTALL() +{ + make -C build install + + prepareInstalledDevelLib \ + libKOpeningHours + + packageEntries devel \ + $developDir \ + $libDir/cmake +} + +TEST() +{ + # 71% tests passed, 2 tests failed out of 7 (1 crash) + export LIBRARY_PATH="$sourceDir/build/bin${LIBRARY_PATH:+:$LIBRARY_PATH}" + make -C build test +}