269.19. kitinerary-26.08.2
KDE PIM library that extracts travel bookings from mail, PDF, Apple Wallet passes and ticket barcodes
26.08.2-1 · LGPL-2.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND ODbL-1.0 · 24.0 SBU · 7.8 MiB, 162 files · 43_toolkits, 251 of 344 · ports/core/pim/kitinerary
Homepage: https://invent.kde.org/pim/kitinerary
KItinerary extracts travel bookings from the documents they arrive in: confirmation mails in HTML or plain text, PDF tickets and boarding passes, Apple Wallet passes, iCalendar files, and the barcodes on railway and airline tickets (UIC 918.3 and 918.9, the ERA FCB and SSB layouts, IATA boarding passes, VDV e-tickets). It turns them into schema.org reservations with its own airport, station and country data, and merges what several documents say about one trip. KMail’s itinerary formatter in kdepim-addons and KDE Itinerary are built on it; kitinerary-extractor, under /usr/lib/libexec/kf6, runs an extraction from the command line.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, kcontacts, kcalendarcore, kcodecs, ki18n, karchive, kmime, kpkpass, poppler, zxing-cpp, zlib, libxml2, openssl, libphonenumber, shared-mime-info.
Required by (2): itinerary, kdepim-addons.
Sources: kitinerary-26.08.2.tar.xz (2.1 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install kitinerary'
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 BUILD_TESTING=OFF \
-D KF_SKIP_PO_PROCESSING=ON \
-D BUILD_TOOLS=OFF \
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Mime=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_libphonenumber=ON \
-D CMAKE_DISABLE_FIND_PACKAGE_OsmTools=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D BUILD_TOOLS=OFF— Build none of upstream’s development tools undersrc/tools, which install nothing.-D CMAKE_REQUIRE_FIND_PACKAGE_KF6Mime=ON— Take KMime from its Frameworks package. The configure asks forKF6Mimefirst and falls back to the PIM-eraKPim6Mime; required, the fallback can never be taken. kmime installsKF6Mime.-D CMAKE_REQUIRE_FIND_PACKAGE_libphonenumber=ON— Make libphonenumber a requirement. Upstream finds it quietly, and without it a phone number in a booking is kept as text, neither normalised nor placed in a country.-D CMAKE_DISABLE_FIND_PACKAGE_OsmTools=ON— Never look for OsmTools, which only regenerates the airport database from OpenStreetMap; the tarball carries the generated data.-D KF_SKIP_PO_PROCESSING=ON— Builds none of the interface translations, which kpkg’s English-only rule would remove from the package anyway (see Size and language policy).
Libraries: libKPim6Itinerary.so.
Directories: /usr/include/KPim6/KItinerary, /usr/include/KPim6/kitinerary, /usr/lib/cmake/KPim6Itinerary, /usr/share/licenses/kitinerary.
PDF documents are read through poppler’s private OutputDev headers, and the configure stops with Poppler was not build with ENABLE_UNSTABLE_API_ABI_HEADERS! unless poppler installs them; the poppler port builds with ENABLE_UNSTABLE_API_ABI_HEADERS=ON. Those headers carry no stable ABI, so a poppler bump rebuilds this port. Barcodes are decoded by zxing-cpp, Apple Wallet passes are opened through kpkpass, HTML is parsed by libxml2, and the signatures of European railway tickets are checked with openssl; the configure requires all of them.
The bundled airport, station and country tables are generated from Wikidata and OpenStreetMap and are licensed ODbL-1.0. Extraction reaches no network.