commit: ae35262c1fa6fbbb2a444642070dbb912df28f89 Author: Michael Weber <xmw <AT> gentoo <DOT> org> AuthorDate: Mon Dec 11 00:55:44 2017 +0000 Commit: Michael Weber <xmw <AT> gentoo <DOT> org> CommitDate: Mon Dec 11 07:59:17 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae35262c
dev-util/pycharm-community: Update icon and .desktop caches. Closes: https://github.com/gentoo/gentoo/pull/6434/ Package-Manager: Portage-2.3.17, Repoman-2.3.6 .../pycharm-community/pycharm-community-2017.2.3.ebuild | 16 +++++++++++++--- .../pycharm-community/pycharm-community-2017.2.4.ebuild | 16 +++++++++++++--- .../pycharm-community/pycharm-community-2017.3.ebuild | 16 +++++++++++++--- 3 files changed, 39 insertions(+), 9 deletions(-) diff --git a/dev-util/pycharm-community/pycharm-community-2017.2.3.ebuild b/dev-util/pycharm-community/pycharm-community-2017.2.3.ebuild index bc2aa0e1908..bcd9bbba0a3 100644 --- a/dev-util/pycharm-community/pycharm-community-2017.2.3.ebuild +++ b/dev-util/pycharm-community/pycharm-community-2017.2.3.ebuild @@ -3,7 +3,7 @@ EAPI=6 -inherit eutils readme.gentoo-r1 +inherit gnome2-utils xdg-utils readme.gentoo-r1 DESCRIPTION="Intelligent Python IDE with unique code assistance and analysis" HOMEPAGE="http://www.jetbrains.com/pycharm/" @@ -38,8 +38,18 @@ src_install() { fperms a+x /opt/${PN}/bin/{pycharm.sh,fsnotifier{,64},inspect.sh} dosym ../../opt/${PN}/bin/pycharm.sh /usr/bin/${PN} - newicon "bin/${MY_PN}.png" ${PN}.png - make_desktop_entry ${PN} "${PN}" "${PN}" + newicon bin/${MY_PN}.png ${PN}.png + make_desktop_entry ${PN} ${PN} ${PN} readme.gentoo_create_doc } + +pkg_postinst() { + xdg_desktop_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + gnome2_icon_cache_update +} diff --git a/dev-util/pycharm-community/pycharm-community-2017.2.4.ebuild b/dev-util/pycharm-community/pycharm-community-2017.2.4.ebuild index 6bcb19218d4..6dfa17b1da1 100644 --- a/dev-util/pycharm-community/pycharm-community-2017.2.4.ebuild +++ b/dev-util/pycharm-community/pycharm-community-2017.2.4.ebuild @@ -3,7 +3,7 @@ EAPI=6 -inherit eutils readme.gentoo-r1 +inherit gnome2-utils xdg-utils readme.gentoo-r1 DESCRIPTION="Intelligent Python IDE with unique code assistance and analysis" HOMEPAGE="http://www.jetbrains.com/pycharm/" @@ -38,8 +38,18 @@ src_install() { fperms a+x /opt/${PN}/bin/{pycharm.sh,fsnotifier{,64},inspect.sh} dosym ../../opt/${PN}/bin/pycharm.sh /usr/bin/${PN} - newicon "bin/${MY_PN}.png" ${PN}.png - make_desktop_entry ${PN} "${PN}" "${PN}" + newicon bin/${MY_PN}.png ${PN}.png + make_desktop_entry ${PN} ${PN} ${PN} readme.gentoo_create_doc } + +pkg_postinst() { + xdg_desktop_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + gnome2_icon_cache_update +} diff --git a/dev-util/pycharm-community/pycharm-community-2017.3.ebuild b/dev-util/pycharm-community/pycharm-community-2017.3.ebuild index 6bcb19218d4..6dfa17b1da1 100644 --- a/dev-util/pycharm-community/pycharm-community-2017.3.ebuild +++ b/dev-util/pycharm-community/pycharm-community-2017.3.ebuild @@ -3,7 +3,7 @@ EAPI=6 -inherit eutils readme.gentoo-r1 +inherit gnome2-utils xdg-utils readme.gentoo-r1 DESCRIPTION="Intelligent Python IDE with unique code assistance and analysis" HOMEPAGE="http://www.jetbrains.com/pycharm/" @@ -38,8 +38,18 @@ src_install() { fperms a+x /opt/${PN}/bin/{pycharm.sh,fsnotifier{,64},inspect.sh} dosym ../../opt/${PN}/bin/pycharm.sh /usr/bin/${PN} - newicon "bin/${MY_PN}.png" ${PN}.png - make_desktop_entry ${PN} "${PN}" "${PN}" + newicon bin/${MY_PN}.png ${PN}.png + make_desktop_entry ${PN} ${PN} ${PN} readme.gentoo_create_doc } + +pkg_postinst() { + xdg_desktop_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + xdg_desktop_database_update + gnome2_icon_cache_update +}
