From b6834da42b33165c00d6cde2557b00d44dd55f96 Mon Sep 17 00:00:00 2001 From: Peter Weller Date: Thu, 25 Jan 2007 19:32:16 +0000 Subject: [PATCH] adding usage of fdo-mime and gnome2-utils eclass for pkg_postinst and pkg_postrm --- eclass/xfce44.eclass | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/eclass/xfce44.eclass b/eclass/xfce44.eclass index 0234b17a939c..ffdb61cda60a 100644 --- a/eclass/xfce44.eclass +++ b/eclass/xfce44.eclass @@ -1,11 +1,13 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/xfce44.eclass,v 1.12 2007/01/22 01:04:50 nichoj Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/xfce44.eclass,v 1.13 2007/01/25 19:32:16 welp Exp $ # Xfce44 Eclass # # Eclass to simplify Xfce4 package installation +inherit fdo-mime gnome2-utils + ## set some variable values: ## COMPRESS is the default compression extension ## INSTALL is default make install directive @@ -127,4 +129,16 @@ xfce44_src_install() { ${INSTALL} || die } -EXPORT_FUNCTIONS src_compile src_install +xfce44_pkg_postinst() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + gnome2_icon_cache_update +} + +xfce44_pkg_postrm() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + gnome2_icon_cache_update +} + +EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm -- 2.26.2