| 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.18 2010/12/07 06:26:37 eva Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v 1.19 2011/01/20 23:49:37 abcd 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 |
| … | |
… | |
| 63 | return |
63 | return |
| 64 | fi |
64 | fi |
| 65 | |
65 | |
| 66 | # We are ready to install the GCONF Scheme now |
66 | # We are ready to install the GCONF Scheme now |
| 67 | unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
67 | unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
| 68 | export GCONF_CONFIG_SOURCE="$("${updater}" --get-default-source | sed "s;:/;:${EROOT};")" |
68 | export GCONF_CONFIG_SOURCE="$("${updater}" --get-default-source | sed "s;:/;:${ROOT};")" |
| 69 | |
69 | |
| 70 | einfo "Installing GNOME 2 GConf schemas" |
70 | einfo "Installing GNOME 2 GConf schemas" |
| 71 | |
71 | |
| 72 | local F |
72 | local F |
| 73 | for F in ${GNOME2_ECLASS_SCHEMAS}; do |
73 | for F in ${GNOME2_ECLASS_SCHEMAS}; do |
| … | |
… | |
| 102 | debug-print "No GNOME 2 GConf schemas found" |
102 | debug-print "No GNOME 2 GConf schemas found" |
| 103 | return |
103 | return |
| 104 | fi |
104 | fi |
| 105 | |
105 | |
| 106 | unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
106 | unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
| 107 | export GCONF_CONFIG_SOURCE="$("${updater}" --get-default-source | sed "s;:/;:${EROOT};")" |
107 | export GCONF_CONFIG_SOURCE="$("${updater}" --get-default-source | sed "s;:/;:${ROOT};")" |
| 108 | |
108 | |
| 109 | einfo "Uninstalling GNOME 2 GConf schemas" |
109 | einfo "Uninstalling GNOME 2 GConf schemas" |
| 110 | |
110 | |
| 111 | local F |
111 | local F |
| 112 | for F in ${GNOME2_ECLASS_SCHEMAS}; do |
112 | for F in ${GNOME2_ECLASS_SCHEMAS}; do |