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

Diff of /eclass/gnome2.eclass

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

Revision 1.53 Revision 1.54
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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.eclass,v 1.53 2005/07/11 15:08:06 swegener Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.54 2005/07/20 16:30:36 leonardop Exp $
4# 4#
5# Authors: 5# Authors:
6# Bruce A. Locke <blocke@shivan.org> 6# Bruce A. Locke <blocke@shivan.org>
7# Spidler <spider@gentoo.org> 7# Spidler <spider@gentoo.org>
8 8
106 done 106 done
107 fi 107 fi
108 108
109} 109}
110 110
111gnome2_icon_cache_update() {
112 local updater=`which gtk-update-icon-cache`
113 if ! grep -q "obj /usr/share/icons" ${ROOT}/var/db/pkg/*/${PF}/CONTENTS \
114 || [ ! -x "$updater" ]; then
115 # Nothing to update
116 return
117 fi
118
119 ebegin "Updating icons cache"
120
121 local retval=0
122 for dir in \
123 $(find ${ROOT}/usr/share/icons -maxdepth 1 -mindepth 1 -type d); do
124 $updater -qf $dir || retval=$?
125 done
126
127 eend $retval
128}
129
111gnome2_omf_fix() { 130gnome2_omf_fix() {
112 131
113 # workaround/patch against omf.make or omf-install/Makefile.in 132 # workaround/patch against omf.make or omf-install/Makefile.in
114 # in order to remove redundant scrollkeeper-updates. 133 # in order to remove redundant scrollkeeper-updates.
115 # - <liquidx@gentoo.org> 134 # - <liquidx@gentoo.org>
150 169
151 gnome2_gconf_install 170 gnome2_gconf_install
152 gnome2_scrollkeeper_update 171 gnome2_scrollkeeper_update
153 fdo-mime_desktop_database_update 172 fdo-mime_desktop_database_update
154 fdo-mime_mime_database_update 173 fdo-mime_mime_database_update
174 gnome2_icon_cache_update
155 175
156} 176}
157 177
158#gnome2_pkg_prerm() { 178#gnome2_pkg_prerm() {
159 179
164gnome2_pkg_postrm() { 184gnome2_pkg_postrm() {
165 185
166 gnome2_scrollkeeper_update 186 gnome2_scrollkeeper_update
167 fdo-mime_desktop_database_update 187 fdo-mime_desktop_database_update
168 fdo-mime_mime_database_update 188 fdo-mime_mime_database_update
189 gnome2_icon_cache_update
169 190
170} 191}
171 192
172#EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_prerm pkg_postrm 193#EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_prerm pkg_postrm
173EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm 194EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54

  ViewVC Help
Powered by ViewVC 1.1.20