257.62. kunitconversion-6.31.0
KDE Frameworks: unit conversion
6.31.0-1 · LGPL-2.0-or-later AND (LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL) · 0.9 SBU · 575.8 KiB, 20 files · 43_toolkits, 191 of 344 · ports/core/kf6/kunitconversion
Homepage: https://invent.kde.org/frameworks/kunitconversion
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.
KUnitConversion converts values between units: length, mass, temperature, speed, pressure, energy, data sizes, currencies and two dozen more categories, with the unit names and symbols a user may type. Plasma’s KRunner and the unit converter widget answer “10 km in miles” through it, and kalzium converts its quantities with it.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, ki18n, gettext.
Required by (5): itinerary, kalk, kalzium, kdeplasma-addons, plasma5support.
Sources: kunitconversion-6.31.0.tar.xz (983.2 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 kunitconversion'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D KF_SKIP_PO_PROCESSING=ON \
-D BUILD_TESTING=OFF \
-D BUILD_PYTHON_BINDINGS=OFF \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D BUILD_PYTHON_BINDINGS=OFF— Build no Python bindings. Upstream’s default is on, and the configure then requires Shiboken6 and PySide6, which this port’sdependsdoes not name.-D KF_SKIP_PO_PROCESSING=ON— Build none of the gettext catalogues underpo/, whichki18n_install()would compile into.mofiles. 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. The unit names a user types are among those strings, so units are recognised by their English names and symbols only.
Libraries: libKF6UnitConversion.so.
Directories: /usr/include/KF6/KUnitConversion, /usr/lib/cmake/KF6UnitConversion, /usr/share/licenses/kunitconversion.
Currency rates are not carried in the library. A program that asks for them makes the library download the European Central Bank’s daily reference rates (https://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml) over Qt Network into ~/.local/share/libkunitconversion/currency.xml, again once the copy is older than the period the caller gives, and only while a network connection is up. With no copy, currency conversions give no result; every other category works offline.