From f6170c345d9c147439f6aafa6e9221ed1ff56831 Mon Sep 17 00:00:00 2001 From: Michael Palimaka Date: Mon, 25 Dec 2017 19:56:28 +1100 Subject: dev-qt/designer: install desktop file Bug: https://bugs.gentoo.org/577680 Package-Manager: Portage-2.3.14, Repoman-2.3.6 --- dev-qt/designer/designer-5.10.0.ebuild | 19 ++++++++++++++++++- dev-qt/designer/designer-5.10.9999.ebuild | 19 ++++++++++++++++++- dev-qt/designer/designer-5.9.9999.ebuild | 19 ++++++++++++++++++- dev-qt/designer/designer-5.9999.ebuild | 19 ++++++++++++++++++- 4 files changed, 72 insertions(+), 4 deletions(-) diff --git a/dev-qt/designer/designer-5.10.0.ebuild b/dev-qt/designer/designer-5.10.0.ebuild index d59ecd69..a3f30858 100644 --- a/dev-qt/designer/designer-5.10.0.ebuild +++ b/dev-qt/designer/designer-5.10.0.ebuild @@ -3,7 +3,7 @@ EAPI=6 QT5_MODULE="qttools" -inherit qt5-build +inherit desktop gnome2-utils qt5-build DESCRIPTION="WYSIWYG tool for designing and building Qt-based GUIs" @@ -38,3 +38,20 @@ src_prepare() { qt5-build_src_prepare } + +src_install() { + qt5-build_src_install + + doicon -s 128 src/designer/src/designer/images/designer.png + make_desktop_entry "${QT5_BINDIR}"/designer 'Qt 5 Designer' designer 'Qt;Development;GUIDesigner' +} + +pkg_postinst() { + qt5-build_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + qt5-build_pkg_postrm + gnome2_icon_cache_update +} diff --git a/dev-qt/designer/designer-5.10.9999.ebuild b/dev-qt/designer/designer-5.10.9999.ebuild index d59ecd69..a3f30858 100644 --- a/dev-qt/designer/designer-5.10.9999.ebuild +++ b/dev-qt/designer/designer-5.10.9999.ebuild @@ -3,7 +3,7 @@ EAPI=6 QT5_MODULE="qttools" -inherit qt5-build +inherit desktop gnome2-utils qt5-build DESCRIPTION="WYSIWYG tool for designing and building Qt-based GUIs" @@ -38,3 +38,20 @@ src_prepare() { qt5-build_src_prepare } + +src_install() { + qt5-build_src_install + + doicon -s 128 src/designer/src/designer/images/designer.png + make_desktop_entry "${QT5_BINDIR}"/designer 'Qt 5 Designer' designer 'Qt;Development;GUIDesigner' +} + +pkg_postinst() { + qt5-build_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + qt5-build_pkg_postrm + gnome2_icon_cache_update +} diff --git a/dev-qt/designer/designer-5.9.9999.ebuild b/dev-qt/designer/designer-5.9.9999.ebuild index d59ecd69..a3f30858 100644 --- a/dev-qt/designer/designer-5.9.9999.ebuild +++ b/dev-qt/designer/designer-5.9.9999.ebuild @@ -3,7 +3,7 @@ EAPI=6 QT5_MODULE="qttools" -inherit qt5-build +inherit desktop gnome2-utils qt5-build DESCRIPTION="WYSIWYG tool for designing and building Qt-based GUIs" @@ -38,3 +38,20 @@ src_prepare() { qt5-build_src_prepare } + +src_install() { + qt5-build_src_install + + doicon -s 128 src/designer/src/designer/images/designer.png + make_desktop_entry "${QT5_BINDIR}"/designer 'Qt 5 Designer' designer 'Qt;Development;GUIDesigner' +} + +pkg_postinst() { + qt5-build_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + qt5-build_pkg_postrm + gnome2_icon_cache_update +} diff --git a/dev-qt/designer/designer-5.9999.ebuild b/dev-qt/designer/designer-5.9999.ebuild index d59ecd69..a3f30858 100644 --- a/dev-qt/designer/designer-5.9999.ebuild +++ b/dev-qt/designer/designer-5.9999.ebuild @@ -3,7 +3,7 @@ EAPI=6 QT5_MODULE="qttools" -inherit qt5-build +inherit desktop gnome2-utils qt5-build DESCRIPTION="WYSIWYG tool for designing and building Qt-based GUIs" @@ -38,3 +38,20 @@ src_prepare() { qt5-build_src_prepare } + +src_install() { + qt5-build_src_install + + doicon -s 128 src/designer/src/designer/images/designer.png + make_desktop_entry "${QT5_BINDIR}"/designer 'Qt 5 Designer' designer 'Qt;Development;GUIDesigner' +} + +pkg_postinst() { + qt5-build_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + qt5-build_pkg_postrm + gnome2_icon_cache_update +} -- cgit v1.2.3-65-gdbad