330.15. khangman-26.08.2
KDE hangman game — guess words from KVTML vocabulary lists in many languages
26.08.2-1 · GPL-2.0-or-later AND LGPL-2.1-or-later AND BSD-2-Clause AND GFDL-1.2-only AND CC0-1.0 · 1.7 SBU · 6.4 MiB, 75 files · 44_apps, 100 of 422 · ports/core/education/khangman
Homepage: https://apps.kde.org/khangman/
KHangMan is KDE Education’s hangman game for learning vocabulary: it picks a word from a vocabulary list, the player guesses its letters, and a hint shows the meaning on request. The lists are KVTML documents read through libkeduvocdocument, and for 28 languages the game shows the special characters of the alphabet as buttons.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, qt6-qtsvg, qt6-qtmultimedia, ki18n, kcrash, kcompletion, kconfig, kcoreaddons, knewstuff, knotifications, kio, kdoctools, libkeduvocdocument, kirigami, kirigami-addons, kdeedu-data.
Required by (1): kde-gear-education.
Sources: khangman-26.08.2.tar.xz (6.7 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/44_apps/phase.env && kpkg install khangman'
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 CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON— Stop the configure if kdoctools is missing. Upstream marks it optional and, without it, skips thedoc/directory and the handbook with it.-D KF_SKIP_PO_PROCESSING=ON— Skips building the interface translations, which the package-wide English-only rule would remove anyway (see Size and language policy).
Programs: khangman.
Directories: /usr/share/doc/HTML/en/khangman, /usr/share/khangman, /usr/share/licenses/khangman.
The word lists are kdeedu-data’s, read from /usr/share/apps/kvtml/<language>; upstream’s README_packagers requires shipping at least its English set, so that port is in depends. The per-language files this package installs under /usr/share/khangman are each alphabet’s special characters, data the language rule keeps. The game’s download action for more lists is shown only when KNewStuff is allowed, and KDOS switches KNewStuff off ([KDE Action Restrictions][$i] ghns=false in /usr/share/kdos/xdg/kdeglobals), so the kdeedu-data lists are the ones the game offers.
The interface is QML that imports org.kde.kirigami, the kirigami-addons components, delegates and formcard modules, org.kde.newstuff and QtMultimedia. CMake checks for none of them, so kirigami, kirigami-addons, knewstuff and qt6-qtmultimedia are named in depends. The two fonts go to /usr/share/khangman/fonts, where only the game loads them.
KAboutData gives the window the app_id org.kde.khangman, the name of upstream’s entry.