dev-qt/designer: add Qt version to .desktop and icon file

Qt 6.10 added its own install targets for .desktop files, icons, and
metainfo and has unfortunately not added the version likely given
didn't have to worry about Qt5 as they did not install these but we
do manually. Rather than more complex changes in Qt6, change this
here instead. Odds are Qt will change this in Qt7.

Ideally would just drop this package given nobody really needs designer
from Qt5 anymore (like other tools such as GUI linguist that we already
dropped), but this package is also used to provide UiTools.

Bug: https://bugs.gentoo.org/966328
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens 2025-11-22 02:44:36 -05:00
parent c5a576f98c
commit 83a9adaa9f
No known key found for this signature in database
GPG Key ID: B24406B0B0AC4334
2 changed files with 3 additions and 2 deletions

View File

@ -44,8 +44,8 @@ src_install() {
qt5-build_src_install
qt5_symlink_binary_to_path designer 5
doicon -s 128 src/designer/src/designer/images/designer.png
make_desktop_entry "${QT5_BINDIR}"/designer 'Qt 5 Designer' designer 'Qt;Development;GUIDesigner'
newicon -s 128 src/designer/src/designer/images/designer.png designer5.png
make_desktop_entry designer5 'Qt 5 Designer' designer5 'Qt;Development;GUIDesigner'
}
pkg_postinst() {

View File

@ -41,6 +41,7 @@ RDEPEND="
designer? (
~dev-qt/qtbase-${PV}:6[network,xml,zstd=]
zstd? ( app-arch/zstd:= )
!<dev-qt/designer-6.15.18-r1
)
qdbus? ( ~dev-qt/qtbase-${PV}:6[dbus,xml] )
qdoc? (