www-plugins/lightspark: Add missing cache updates to -9999
authorMichał Górny <mgorny@gentoo.org>
Thu, 5 Apr 2018 18:18:19 +0000 (20:18 +0200)
committerMichał Górny <mgorny@gentoo.org>
Thu, 5 Apr 2018 18:51:07 +0000 (20:51 +0200)
www-plugins/lightspark/lightspark-9999.ebuild

index 09a12ccd2612ba4648350ed9e93e38d18933b3d8..e85c7575af9027c0aee53eddd3d773786598f521 100644 (file)
@@ -2,7 +2,7 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit cmake-utils git-r3 nsplugins toolchain-funcs
+inherit cmake-utils git-r3 gnome2-utils nsplugins toolchain-funcs xdg-utils
 
 DESCRIPTION="High performance flash player"
 HOMEPAGE="http://lightspark.github.io/"
@@ -76,6 +76,9 @@ src_install() {
 }
 
 pkg_postinst() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+
        if use nsplugin && ! has_version www-plugins/gnash; then
                elog "Lightspark now supports gnash fallback for its browser plugin."
                elog "Install www-plugins/gnash to take advantage of it."
@@ -87,3 +90,8 @@ pkg_postinst() {
                elog "https://bugzilla.mozilla.org/show_bug.cgi?id=581848"
        fi
 }
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}