dev-util/pycharm-professional: include .desktop and icon db updates (thanks jstein).
authorMichael Weber <xmw@gentoo.org>
Mon, 11 Dec 2017 00:48:03 +0000 (01:48 +0100)
committerMichael Weber <xmw@gentoo.org>
Mon, 11 Dec 2017 00:48:25 +0000 (01:48 +0100)
Closes: https://github.com/gentoo/gentoo/pull/6434
Package-Manager: Portage-2.3.17, Repoman-2.3.6

dev-util/pycharm-professional/pycharm-professional-2017.2.3.ebuild
dev-util/pycharm-professional/pycharm-professional-2017.2.4.ebuild
dev-util/pycharm-professional/pycharm-professional-2017.3.ebuild

index 78afd12076c095e6608dc6279a9cd51e0117c48c..a52a5ee20aa29dfd02626dd99899c6460fc4c944 100644 (file)
@@ -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
+}
index b8731d8db528d5f00f84f5c4fb3c61e02e01ca71..5d0519372d5e7beabf11e00d923cf288e5e6791c 100644 (file)
@@ -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
+}
index b8731d8db528d5f00f84f5c4fb3c61e02e01ca71..5d0519372d5e7beabf11e00d923cf288e5e6791c 100644 (file)
@@ -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
+}