commit:     27e877b89cce218f4eea36de06cd8b01599a8d9b
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 28 11:41:41 2017 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sat Oct 28 11:41:41 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27e877b8

www-client/opera: Update icon cache, desktop database, mime-info cache.

Package-Manager: Portage-2.3.13, Repoman-2.3.4

 ...8.0.2685.52.ebuild => opera-48.0.2685.52-r1.ebuild} | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/www-client/opera/opera-48.0.2685.52.ebuild 
b/www-client/opera/opera-48.0.2685.52-r1.ebuild
similarity index 86%
rename from www-client/opera/opera-48.0.2685.52.ebuild
rename to www-client/opera/opera-48.0.2685.52-r1.ebuild
index 824ffea24a6..aead2f06e72 100644
--- a/www-client/opera/opera-48.0.2685.52.ebuild
+++ b/www-client/opera/opera-48.0.2685.52-r1.ebuild
@@ -7,7 +7,7 @@ CHROMIUM_LANGS="
        ko lt lv ms nb nl pl pt-BR pt-PT ro ru sk sr sv sw ta te th tr uk vi 
zh-CN
        zh-TW
 "
-inherit chromium-2 multilib unpacker
+inherit chromium-2 gnome2-utils multilib unpacker xdg-utils
 
 DESCRIPTION="A fast and secure web browser"
 HOMEPAGE="http://www.opera.com/";
@@ -91,3 +91,19 @@ src_install() {
        dosym ../$(get_libdir)/${PN}/${PN} /usr/bin/${PN}
        fperms 4711 /usr/$(get_libdir)/${PN}/opera_sandbox
 }
+
+pkg_preinst() {
+       gnome2_icon_savelist
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+       xdg_mimeinfo_database_update
+}
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+       xdg_mimeinfo_database_update
+}

Reply via email to