Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

283.6. kde-dev-scripts-26.08.2

KDE developer scripts — include and moc fixers, extractrc, export-header generation and uncrustify settings

26.08.2-1 · GPL-2.0-or-later AND BSD-2-Clause AND GFDL-1.2-or-later AND CC0-1.0 · 0.2 SBU · 330.9 KiB, 82 files · 44_apps, 49 of 422 · ports/core/devtools/kde-dev-scripts

Homepage: https://invent.kde.org/sdk/kde-dev-scripts

kde-dev-scripts is the KDE project’s collection of developer scripts: include and moc-include fixers (fixkdeincludes, includemocs, addmocincludes), extractrc and extractattr for message extraction, kde_generate_export_header, class renaming and copying helpers, uncrustify configurations for KDE’s code style, and a set of CVS and Subversion helpers. Nothing is compiled.

Depends on: cmake, ninja, extra-cmake-modules, kdoctools, perl, python3, bash, git.

Required by (1): kde-gear-devtools.

Sources: kde-dev-scripts-26.08.2.tar.xz (368.5 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 kde-dev-scripts'

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_KF6=ON \
	-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
rm "$PKG/usr/bin/kde-systemsettings-tree.py"

Programs: adddebug, addmocincludes, build-progress.sh, c++-copy-class-and-file, c++-rename-class-and-file, cheatmake, clean-forward-declaration.sh, clean-includes.sh, colorsvn, create_cvsignore, create_makefile, create_makefiles, create_svnignore, cvs-clean, cvsaddcurrentdir, cvsbackport, cvsblame, cvscheck, cvsforwardport, cvslastchange, cvslastlog, cvsrevertlast, cvsversion, cxxmetric, draw_lib_dependencies, extend_dmalloc, extractattr, extractrc, findmissingcrystal, fix-include.sh, fixkdeincludes, fixuifiles, grantlee_strings_extractor.py, includemocs, kde_generate_export_header, kdedoc, kdekillall, kdelnk2desktop.py, kdemangen.pl, krazy-licensecheck, makeobj, noncvslist, nonsvnlist, optimizegraphics, package_crystalsvg, png2mng.pl, port_new_gitlab_ci_template.sh, pruneemptydirs, reviewboard-am, svn-clean, svnbackport, svnchangesince, svnforwardport, svngettags, svnintegrate, svnlastchange, svnlastlog, svnrevertlast, svnversions, uncrustify-kf5, wcgrep, zonetab2pot.py.

Directories: /usr/share/licenses/kde-dev-scripts, /usr/share/uncrustify.

build.sh removes kde-systemsettings-tree.py from /usr/bin: it is Python 2 (a print statement) and no Python here can run it. The other Python scripts run under python3, the shell scripts under sh and bash, and the Perl ones under perl, all in depends for run time; several drive git.

25 of the 63 programs the module installs drive CVS or Subversion (cvs*, svn*, colorsvn, create_cvsignore, create_svnignore, noncvslist, nonsvnlist), and uncrustify-kf5 runs uncrustify; none of those three tools is a port, so those scripts stop with the tool not found. They are installed as upstream lists them.