diff options
author | Michael Weber <xmw@gentoo.org> | 2017-12-11 01:48:03 +0100 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2017-12-11 01:48:25 +0100 |
commit | 13562bf472653993f2efd66da7c38a647488b050 (patch) | |
tree | 37d3a5ed6e8b7910644b231d830b957769cdf1d0 /dev-util | |
parent | lxqt-base/lxqt-meta: stable on amd64 and x86 (diff) | |
download | gentoo-13562bf472653993f2efd66da7c38a647488b050.tar.gz gentoo-13562bf472653993f2efd66da7c38a647488b050.tar.bz2 gentoo-13562bf472653993f2efd66da7c38a647488b050.zip |
dev-util/pycharm-professional: include .desktop and icon db updates (thanks jstein).
Closes: https://github.com/gentoo/gentoo/pull/6434
Package-Manager: Portage-2.3.17, Repoman-2.3.6
Diffstat (limited to 'dev-util')
3 files changed, 39 insertions, 9 deletions
diff --git a/dev-util/pycharm-professional/pycharm-professional-2017.2.3.ebuild b/dev-util/pycharm-professional/pycharm-professional-2017.2.3.ebuild index 78afd12076c0..a52a5ee20aa2 100644 --- a/dev-util/pycharm-professional/pycharm-professional-2017.2.3.ebuild +++ b/dev-util/pycharm-professional/pycharm-professional-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/" @@ -42,8 +42,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-professional/pycharm-professional-2017.2.4.ebuild b/dev-util/pycharm-professional/pycharm-professional-2017.2.4.ebuild index b8731d8db528..5d0519372d5e 100644 --- a/dev-util/pycharm-professional/pycharm-professional-2017.2.4.ebuild +++ b/dev-util/pycharm-professional/pycharm-professional-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/" @@ -42,8 +42,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-professional/pycharm-professional-2017.3.ebuild b/dev-util/pycharm-professional/pycharm-professional-2017.3.ebuild index b8731d8db528..5d0519372d5e 100644 --- a/dev-util/pycharm-professional/pycharm-professional-2017.3.ebuild +++ b/dev-util/pycharm-professional/pycharm-professional-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/" @@ -42,8 +42,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 +} |