257.55. kholidays-6.31.0
KDE Frameworks: public holiday, season and astronomical calendars
6.31.0-1 · LGPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) AND GPL-2.0-or-later AND BSD-2-Clause · 1.5 SBU · 889.5 KiB, 36 files · 43_toolkits, 148 of 344 · ports/core/kf6/kholidays
Homepage: https://api.kde.org/frameworks/kholidays/html/
Why it is in KDOS. The comment above the 61 ports from karchive to kfilemetadata in script/phases/43_toolkits/packages.d/kf6.txt:
The libraries KDE applications are built on, without Plasma.
KHolidays answers which days are public holidays in a region, from the holiday plan files it carries for most countries and their subdivisions, and computes seasons, sunrise and sunset, moon phases and the astronomical events of a date. It has a QML module, org.kde.kholidays. The Plasma clock’s calendar shows holidays through it, and korganizer, merkuro and kalarm use it.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, flex, bison.
Required by (14): calendarsupport, eventviews, itinerary, kalarm, kdepim-addons, kdeplasma-addons, knighttime, kopeninghours, korganizer, kweather, kweathercore, merkuro, plasma-workspace, plasma5support.
Sources: kholidays-6.31.0.tar.xz (271.1 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install kholidays'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D BUILD_TESTING=OFF \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D KF_SKIP_PO_PROCESSING=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D KF_SKIP_PO_PROCESSING=ON— Build none of the Qt translation catalogues underpoqm/, whichecm_install_po_files_as_qm()would compile into.qmfiles. The strings in the source are English, and the package-wide English-only rule (see Size and language policy) would remove every catalogue in another language.
Libraries: libKF6Holidays.so.
Directories: /usr/include/KF6/KHolidays, /usr/lib/cmake/KF6Holidays, /usr/lib/qt6/qml/org/kde/kholidays, /usr/share/licenses/kholidays.
The holiday plan files are written in a small language whose parser the build generates with flex and bison (3.3.2 or newer); both are requirements of the configure. The QML module needs Qt Qml from qt6-qtdeclarative, which the configure requires as well.