330.3. kturtle-26.08.2
KDE educational programming environment — steer a turtle with TurtleScript and learn to program
26.08.2-1 · GPL-2.0-or-later · 1.3 SBU · 1.0 MiB, 23 files · 44_apps, 88 of 422 · ports/core/education/kturtle
Homepage: https://apps.kde.org/kturtle/
KTurtle is KDE’s educational programming environment: programs written in TurtleScript, a Logo-like language whose commands can be typed in the learner’s language, steer a turtle that draws on a canvas, with the code highlighted as it runs.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtsvg, kcoreaddons, kcrash, kdoctools, ki18n, kio, knewstuff, ktextwidgets, kxmlgui.
Required by (1): kde-gear-education.
Sources: kturtle-26.08.2.tar.xz (1.8 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 kturtle'
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
cat > "$PKG/usr/share/applications/org.kde.kturtle.desktop" <<'DESKTOP'
[Desktop Entry]
Type=Application
Name=KTurtle
GenericName=Educational Programming Environment
Comment=Learn to program by steering a turtle
TryExec=kturtle
Exec=kturtle
Icon=kturtle
Terminal=false
StartupWMClass=org.kde.kturtle
X-DocPath=kturtle/index.html
Categories=Qt;KDE;Education;ComputerScience;
Keywords=programming;logo;turtle;learn;code;children;kturtle;
DESKTOP
chmod 644 "$PKG/usr/share/applications/org.kde.kturtle.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 CMAKE_REQUIRE_FIND_PACKAGE_KF6DocTools=ON— Requires kdoctools for the handbook, which upstream builds only when it finds kdoctools.
Programs: kturtle.
Directories: /usr/share/doc/HTML/en/kturtle, /usr/share/licenses/kturtle.
The desktop entry is KDOS’s own, written over upstream’s. Its StartupWMClass is org.kde.kturtle, the desktop file name KAboutData sets and the window’s Wayland app_id, so the task manager can match the window to its entry.