330.7. parley-26.08.2
KDE vocabulary trainer — spaced repetition over KVTML word lists, with themes and HTML export
26.08.2-1 · GPL-2.0-or-later · 1.7 SBU · 6.1 MiB, 176 files · 44_apps, 92 of 422 · ports/core/education/parley
Homepage: https://apps.kde.org/parley/
Parley is KDE’s vocabulary trainer: word lists in KVTML through libkeduvocdocument, practised as flash cards, written answers, multiple choice, conjugations and comparisons, with spaced repetition deciding what comes back when. Lessons are exported to HTML.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtsvg, qt6-qtmultimedia, kdoctools, kcoreaddons, kconfig, kcrash, ki18n, kio, knewstuff, sonnet, ktextwidgets, kxmlgui, knotifications, libkeduvocdocument, libxslt, libxml2.
Required by (1): kde-gear-education.
Sources: parley-26.08.2.tar.xz (8.1 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 parley'
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_BROWSERINTEGRATION=OFF \
-D CMAKE_REQUIRE_FIND_PACKAGE_LibXslt=ON \
-D CMAKE_REQUIRE_FIND_PACKAGE_LibXml2=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
cat > "$PKG/usr/share/applications/org.kde.parley.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=Parley
GenericName=Vocabulary Trainer
Comment=Memorise vocabulary with spaced repetition
TryExec=parley
Exec=parley
Icon=parley
Terminal=false
StartupWMClass=org.kde.parley
X-DocPath=parley/index.html
Categories=Qt;KDE;Education;Languages;
Keywords=vocabulary;flashcard;language;learn;memorize;kvtml;parley;
DESKTOP
chmod 644 "$PKG/usr/share/applications/org.kde.parley.desktop"
-D KF_SKIP_PO_PROCESSING=ON— Builds none of the interface translations inpo/; the image is English only (see Size and language policy).-D BUILD_BROWSERINTEGRATION=OFF— Leaves out the editor’s web panel, which looks the current word up in online dictionaries such as dict.tu-chemnitz.de. Upstream’s default is on, and the panel then requires Qt WebEngine.-D CMAKE_REQUIRE_FIND_PACKAGE_LibXslt=ON,-D CMAKE_REQUIRE_FIND_PACKAGE_LibXml2=ON— Require libxslt and libxml2, the two libraries of the HTML export. Upstream treats both as optional and leaves the export out without them.
Programs: parley.
Directories: /usr/share/doc/HTML/en/parley, /usr/share/icons/oxygen/16x16/actions, /usr/share/icons/oxygen/22x22/actions, /usr/share/icons/oxygen/32x32/actions, /usr/share/icons/oxygen/48x48/actions, /usr/share/icons/oxygen/scalable, /usr/share/licenses/parley, /usr/share/parley.
The desktop entry is KDOS’s own, written over upstream’s. Its StartupWMClass is org.kde.parley, the desktop file name KAboutData sets and the window’s Wayland app_id, so the task manager can match the window to its entry.