net-libs/glib-networking: handle GIO modules cache update
authorGilles Dartiguelongue <eva@gentoo.org>
Sat, 2 Jan 2016 15:33:55 +0000 (16:33 +0100)
committerGilles Dartiguelongue <eva@gentoo.org>
Sat, 2 Jan 2016 15:41:06 +0000 (16:41 +0100)
Package-Manager: portage-2.2.26

net-libs/glib-networking/glib-networking-2.46.1.ebuild

index 4b0c2b67174d56380ffc9d867e837b51ecb53437..6f1fc6db432993931b8c9512ecd1b2dd540888d5 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -67,3 +67,23 @@ multilib_src_test() {
 multilib_src_install() {
        gnome2_src_install
 }
+
+pkg_postinst() {
+       gnome2_pkg_postinst
+
+       multilib_pkg_postinst() {
+               gnome2_giomodule_cache_update \
+                       || die "Update GIO modules cache failed (for ${ABI})"
+       }
+       multilib_foreach_abi multilib_pkg_postinst
+}
+
+pkg_postrm() {
+       gnome2_pkg_postrm
+
+       multilib_pkg_postrm() {
+               gnome2_giomodule_cache_update \
+                       || die "Update GIO modules cache failed (for ${ABI})"
+       }
+       multilib_foreach_abi multilib_pkg_postrm
+}