1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2011 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.102 2011/09/25 15:15:21 pacho Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.104 2011/12/14 19:47:54 tetromino Exp $ |
4 | |
4 | |
5 | # @ECLASS: gnome2.eclass |
5 | # @ECLASS: gnome2.eclass |
6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
7 | # gnome@gentoo.org |
7 | # gnome@gentoo.org |
8 | # @BLURB: |
8 | # @BLURB: |
… | |
… | |
86 | # @FUNCTION: gnome2_src_prepare |
86 | # @FUNCTION: gnome2_src_prepare |
87 | # @DESCRIPTION: |
87 | # @DESCRIPTION: |
88 | # Prepare environment for build, fix build of scrollkeeper documentation, |
88 | # Prepare environment for build, fix build of scrollkeeper documentation, |
89 | # run elibtoolize. |
89 | # run elibtoolize. |
90 | gnome2_src_prepare() { |
90 | gnome2_src_prepare() { |
91 | # GST_REGISTRY is to work around gst utilities trying to read/write /root |
91 | # Prevent assorted access violations and test failures |
92 | export GST_REGISTRY="${T}/registry.xml" |
92 | gnome2_environment_reset |
93 | |
93 | |
94 | # Prevent scrollkeeper access violations |
94 | # Prevent scrollkeeper access violations |
95 | gnome2_omf_fix |
95 | gnome2_omf_fix |
96 | |
96 | |
97 | # Run libtoolize |
97 | # Run libtoolize |
… | |
… | |
227 | # Handle scrollkeeper, GSettings, Icons, desktop and mime database updates. |
227 | # Handle scrollkeeper, GSettings, Icons, desktop and mime database updates. |
228 | gnome2_pkg_postrm() { |
228 | gnome2_pkg_postrm() { |
229 | fdo-mime_desktop_database_update |
229 | fdo-mime_desktop_database_update |
230 | fdo-mime_mime_database_update |
230 | fdo-mime_mime_database_update |
231 | gnome2_icon_cache_update |
231 | gnome2_icon_cache_update |
232 | gnome2_schemas_update --uninstall |
232 | gnome2_schemas_update |
233 | |
233 | |
234 | if [[ "${SCROLLKEEPER_UPDATE}" = "1" ]]; then |
234 | if [[ "${SCROLLKEEPER_UPDATE}" = "1" ]]; then |
235 | gnome2_scrollkeeper_update |
235 | gnome2_scrollkeeper_update |
236 | fi |
236 | fi |
237 | } |
237 | } |