314.1. poxml-26.08.2
Translates DocBook XML through gettext PO files — xml2pot, po2xml, split2po and swappo
26.08.2-1 · GPL-2.0-or-later AND GFDL-1.2-or-later AND CC0-1.0 · 1.8 SBU · 479.0 KiB, 10 files · 44_apps, 254 of 422 · ports/core/i18n/poxml
Homepage: https://invent.kde.org/sdk/poxml
poxml translates DocBook documentation through gettext. xml2pot extracts a DocBook file’s messages into a PO template, po2xml writes a translated DocBook file back from a PO file, split2po builds a PO file from an original and a translated DocBook file, and swappo swaps the message and translation of every entry in a PO file.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, kdoctools, gettext.
Required by (1): kde-gear-devtools.
Sources: poxml-26.08.2.tar.xz (44.1 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install poxml'
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 \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D KF_SKIP_PO_PROCESSING=ON— Passed as every KDE recipe passes it. The module calls noki18n_install(); itspo/holds translated manual pages, whichkdoctools_install(po)builds and kpkg’s language rule removes (see Size and language policy).-Wno-dev— Silences CMake’s warnings meant for the project’s own developers.
Programs: po2xml, split2po, swappo, xml2pot.
Directories: /usr/share/licenses/poxml.
The four tools link libgettextpo from gettext, found by the bundled FindGettextPO.cmake as a requirement, and Qt’s XML module. Their manual pages are written in DocBook and built by kdoctools. The find_package(Gettext) beside the requirement only gates the tests, which BUILD_TESTING=OFF leaves out.