commit: 03235d3408db759181a4c82263cd1dd782e8abab Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> AuthorDate: Mon Dec 25 02:42:02 2017 +0000 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> CommitDate: Mon Dec 25 02:42:14 2017 +0000 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=03235d34
dev-qt/assistant: install icons and desktop file Bug: https://bugs.gentoo.org/634566 Package-Manager: Portage-2.3.14, Repoman-2.3.6 dev-qt/assistant/assistant-5.10.0.ebuild | 20 +++++++++++++++++++- dev-qt/assistant/assistant-5.10.9999.ebuild | 20 +++++++++++++++++++- dev-qt/assistant/assistant-5.9.9999.ebuild | 20 +++++++++++++++++++- dev-qt/assistant/assistant-5.9999.ebuild | 20 +++++++++++++++++++- 4 files changed, 76 insertions(+), 4 deletions(-) diff --git a/dev-qt/assistant/assistant-5.10.0.ebuild b/dev-qt/assistant/assistant-5.10.0.ebuild index 6342c0fd..633d6456 100644 --- a/dev-qt/assistant/assistant-5.10.0.ebuild +++ b/dev-qt/assistant/assistant-5.10.0.ebuild @@ -3,7 +3,7 @@ EAPI=6 QT5_MODULE="qttools" -inherit qt5-build +inherit desktop gnome2-utils qt5-build DESCRIPTION="Tool for viewing on-line documentation in Qt help file format" @@ -35,3 +35,21 @@ src_prepare() { qt5-build_src_prepare } + +src_install() { + qt5-build_src_install + + doicon -s 32 src/assistant/assistant/images/assistant.png + newicon -s 128 src/assistant/assistant/images/assistant-128.png assistant.png + make_desktop_entry assistant Assistant assistant 'Qt;Development;Documentation' +} + +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/assistant/assistant-5.10.9999.ebuild b/dev-qt/assistant/assistant-5.10.9999.ebuild index 6342c0fd..633d6456 100644 --- a/dev-qt/assistant/assistant-5.10.9999.ebuild +++ b/dev-qt/assistant/assistant-5.10.9999.ebuild @@ -3,7 +3,7 @@ EAPI=6 QT5_MODULE="qttools" -inherit qt5-build +inherit desktop gnome2-utils qt5-build DESCRIPTION="Tool for viewing on-line documentation in Qt help file format" @@ -35,3 +35,21 @@ src_prepare() { qt5-build_src_prepare } + +src_install() { + qt5-build_src_install + + doicon -s 32 src/assistant/assistant/images/assistant.png + newicon -s 128 src/assistant/assistant/images/assistant-128.png assistant.png + make_desktop_entry assistant Assistant assistant 'Qt;Development;Documentation' +} + +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/assistant/assistant-5.9.9999.ebuild b/dev-qt/assistant/assistant-5.9.9999.ebuild index 6342c0fd..633d6456 100644 --- a/dev-qt/assistant/assistant-5.9.9999.ebuild +++ b/dev-qt/assistant/assistant-5.9.9999.ebuild @@ -3,7 +3,7 @@ EAPI=6 QT5_MODULE="qttools" -inherit qt5-build +inherit desktop gnome2-utils qt5-build DESCRIPTION="Tool for viewing on-line documentation in Qt help file format" @@ -35,3 +35,21 @@ src_prepare() { qt5-build_src_prepare } + +src_install() { + qt5-build_src_install + + doicon -s 32 src/assistant/assistant/images/assistant.png + newicon -s 128 src/assistant/assistant/images/assistant-128.png assistant.png + make_desktop_entry assistant Assistant assistant 'Qt;Development;Documentation' +} + +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/assistant/assistant-5.9999.ebuild b/dev-qt/assistant/assistant-5.9999.ebuild index 6342c0fd..633d6456 100644 --- a/dev-qt/assistant/assistant-5.9999.ebuild +++ b/dev-qt/assistant/assistant-5.9999.ebuild @@ -3,7 +3,7 @@ EAPI=6 QT5_MODULE="qttools" -inherit qt5-build +inherit desktop gnome2-utils qt5-build DESCRIPTION="Tool for viewing on-line documentation in Qt help file format" @@ -35,3 +35,21 @@ src_prepare() { qt5-build_src_prepare } + +src_install() { + qt5-build_src_install + + doicon -s 32 src/assistant/assistant/images/assistant.png + newicon -s 128 src/assistant/assistant/images/assistant-128.png assistant.png + make_desktop_entry assistant Assistant assistant 'Qt;Development;Documentation' +} + +pkg_postinst() { + qt5-build_pkg_postinst + gnome2_icon_cache_update +} + +pkg_postrm() { + qt5-build_pkg_postrm + gnome2_icon_cache_update +}