255.4. qt5-qttools-5.15.19
Qt 5 tools — Designer, Linguist with lrelease and lupdate, Assistant, qdbus and the Qt help and UI tools libraries
5.15.19-1 · GPL-3.0-only WITH Qt-GPL-exception-1.0 AND (LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only) · 6.2 SBU · 15.7 MiB, 341 files · 43_toolkits, 269 of 344 · ports/core/qt5/qt5-qttools
Homepage: https://www.qt.io/
Why it is in KDOS. The comment above the 11 ports from qt5-qtbase to qt5-qttools in script/phases/43_toolkits/packages.d/qt5.txt:
For the applications with no Qt 6 release: VLC 3, KeePassXC, QSSTV, WSJT-X, Mumble, Quassel, LMMS, LibreCAD, DB Browser for SQLite and GNU Radio.
Qt Tools for Qt 5: Designer, Linguist with lrelease and lupdate, Assistant, qdbus, qtpaths, qtdiag, qtplugininfo and pixeltool, and the QtHelp, QtUiTools and QtDesigner libraries. A Qt 5 port that ships translations runs this port’s lrelease at build time.
Depends on: qt5-qtbase, qt5-qtdeclarative, sqlite.
Required by (12): keepassxc, librecad, lmms, mumble, python3-pyqt5, qt5ct, quassel, qwt-qt5, smplayer, sonnet-qt5, sqlitebrowser, wsjtx.
Sources: qt5-qttools-5.15.19.tar.xz (8.5 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install qt5-qttools'
build.sh:
/usr/lib/qt5/bin/qmake -- \
-no-feature-qdoc \
-feature-assistant \
-feature-designer \
-feature-linguist \
-feature-qdbus \
-feature-qtpaths \
-feature-qtdiag \
-feature-qtplugininfo \
-feature-pixeltool
make
make INSTALL_ROOT="$PKG" install
install -d "$PKG/usr/bin"
for _tool in "$PKG"/usr/lib/qt5/bin/*; do
ln -s "../lib/qt5/bin/${_tool##*/}" "$PKG/usr/bin/${_tool##*/}-qt5"
done
-no-feature-qdoc— leave out QDoc, the generator of Qt’s own documentation, which links libclang. clang is installed in an earlier phase and is not independs, and the module builds QDoc whenever it finds libclang, so without the switch the package would link a library it does not declare.-feature-assistant— with-feature-designer,-feature-linguist,-feature-qdbus,-feature-qtpaths,-feature-qtdiag,-feature-qtplugininfoand-feature-pixeltool: each tool named. These features carry no condition in the module’s configure, so each is on by default and naming it stops nothing: a tool whose Qt module is missing is skipped bysrc/src.prowithout an error (Designer, Assistant and pixeltool need QtWidgets,qdbusneeds QtDBus).
Programs: assistant-qt5, designer-qt5, lconvert-qt5, linguist-qt5, lprodump-qt5, lrelease-pro-qt5, lrelease-qt5, lupdate-pro-qt5, lupdate-qt5, pixeltool-qt5, qcollectiongenerator-qt5, qdbus-qt5, qdbusviewer-qt5, qdistancefieldgenerator-qt5, qhelpgenerator-qt5, qtattributionsscanner-qt5, qtdiag-qt5, qtpaths-qt5, qtplugininfo-qt5.
Libraries: libQt5Designer.so, libQt5DesignerComponents.so, libQt5Help.so, libQt5UiTools.a.
Directories: /usr/include/qt5/QtDesigner, /usr/include/qt5/QtDesignerComponents, /usr/include/qt5/QtHelp, /usr/include/qt5/QtUiPlugin, /usr/include/qt5/QtUiTools, /usr/lib/cmake/Qt5AttributionsScannerTools, /usr/lib/cmake/Qt5Designer, /usr/lib/cmake/Qt5DesignerComponents, /usr/lib/cmake/Qt5Help, /usr/lib/cmake/Qt5LinguistTools, /usr/lib/cmake/Qt5UiPlugin, /usr/lib/cmake/Qt5UiTools, /usr/share/licenses/qt5-qttools, /usr/share/qt5/phrasebooks.
The switches follow -- on the qmake line: qmake hands everything after it to the module’s own configure step, which reads them as features.
After the install, build.sh links every tool in /usr/lib/qt5/bin into /usr/bin with a -qt5 suffix, such as lrelease-qt5 and designer-qt5, so the Qt 5 tools sit beside Qt 6’s.