/[gentoo-x86]/eclass/gnome2-utils.eclass
Gentoo

Diff of /eclass/gnome2-utils.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.5
1# Copyright 1999-2006 Gentoo Foundation 1# Copyright 1999-2006 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v 1.1 2006/12/13 02:25:02 leonardop Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v 1.5 2007/05/11 20:52:53 dang Exp $
4 4
5# 5#
6# gnome2-utils.eclass 6# gnome2-utils.eclass
7# 7#
8# Set of auxiliary functions used to perform actions commonly needed by packages 8# Set of auxiliary functions used to perform actions commonly needed by packages
27DEPEND=">=sys-apps/sed-4" 27DEPEND=">=sys-apps/sed-4"
28 28
29 29
30 30
31# Applies any schema files installed by the current ebuild to Gconf's database 31# Applies any schema files installed by the current ebuild to Gconf's database
32# using gconftool-2 32# using gconftool-2
33gnome2_gconf_install() { 33gnome2_gconf_install() {
34 if [[ ! -x ${GCONFTOOL_BIN} ]]; then 34 if [[ ! -x ${GCONFTOOL_BIN} ]]; then
35 return 35 return
36 fi 36 fi
37 37
50 ${GCONFTOOL_BIN} --makefile-install-rule ${F} 1>/dev/null 50 ${GCONFTOOL_BIN} --makefile-install-rule ${F} 1>/dev/null
51 fi 51 fi
52 done 52 done
53 53
54 # have gconf reload the new schemas 54 # have gconf reload the new schemas
55 pids=$(pidof gconfd-2)
56 if [[ $? == 0 ]] ; then
55 ebegin "Reloading GConf schemas" 57 ebegin "Reloading GConf schemas"
56 killall -HUP gconfd-2 58 kill -HUP ${pids}
57 eend $? 59 eend $?
60 fi
58} 61}
59 62
60 63
61# Removes schema files previously installed by the current ebuild from Gconf's 64# Removes schema files previously installed by the current ebuild from Gconf's
62# database. 65# database.
85gnome2_icon_cache_update() { 88gnome2_icon_cache_update() {
86 local updater=$(type -p gtk-update-icon-cache 2> /dev/null) 89 local updater=$(type -p gtk-update-icon-cache 2> /dev/null)
87 90
88 if [[ ! -x ${updater} ]] ; then 91 if [[ ! -x ${updater} ]] ; then
89 debug-print "${updater} is not executable" 92 debug-print "${updater} is not executable"
90
91 return
92 fi
93
94 if ! grep -q "obj /usr/share/icons" ${ROOT}var/db/pkg/*/${PF}/CONTENTS
95 then
96 debug-print "No items to update"
97 93
98 return 94 return
99 fi 95 fi
100 96
101 ebegin "Updating icons cache" 97 ebegin "Updating icons cache"

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20