/[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.18 Revision 1.21
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.21 2011/01/31 17:03:45 eva 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
10# 10#
11# Maintained by Gentoo's GNOME herd <gnome@gentoo.org> 11# Maintained by Gentoo's GNOME herd <gnome@gentoo.org>
12# 12#
13 13
14case "${EAPI:-0}" in 14case "${EAPI:-0}" in
15 0|1|2|3) ;; 15 0|1|2|3|4) ;;
16 *) die "EAPI=${EAPI} is not supported" ;; 16 *) die "EAPI=${EAPI} is not supported" ;;
17esac 17esac
18 18
19# Path to gconftool-2 19# Path to gconftool-2
20: ${GCONFTOOL_BIN:="/usr/bin/gconftool-2"} 20: ${GCONFTOOL_BIN:="/usr/bin/gconftool-2"}
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
158 local retval=0 158 local retval=0
159 local fails=( ) 159 local fails=( )
160 160
161 for dir in ${GNOME2_ECLASS_ICONS} 161 for dir in ${GNOME2_ECLASS_ICONS}
162 do 162 do
163 if [[ -f "${ROOT}${dir}/index.theme" ]] ; then 163 if [[ -f "${EROOT}${dir}/index.theme" ]] ; then
164 local rv=0 164 local rv=0
165 165
166 "${updater}" -qf "${EROOT}${dir}" 166 "${updater}" -qf "${EROOT}${dir}"
167 rv=$? 167 rv=$?
168 168

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20