| 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.13 2008/10/22 21:04:53 eva Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v 1.14 2010/12/07 06:18:55 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 |
| … | |
… | |
| 219 | if [[ -x "${SCROLLKEEPER_UPDATE_BIN}" ]]; then |
219 | if [[ -x "${SCROLLKEEPER_UPDATE_BIN}" ]]; then |
| 220 | einfo "Updating scrollkeeper database ..." |
220 | einfo "Updating scrollkeeper database ..." |
| 221 | "${SCROLLKEEPER_UPDATE_BIN}" -q -p "${SCROLLKEEPER_DIR}" |
221 | "${SCROLLKEEPER_UPDATE_BIN}" -q -p "${SCROLLKEEPER_DIR}" |
| 222 | fi |
222 | fi |
| 223 | } |
223 | } |
|
|
224 | |
|
|
225 | gnome2_schemas_savelist() { |
|
|
226 | pushd "${D}" &>/dev/null |
|
|
227 | export GNOME2_ECLASS_GLIB_SCHEMAS=$(find 'usr/share/glib-2.0/schemas' -name '*.gschema.xml' 2>/dev/null) |
|
|
228 | popd &>/dev/null |
|
|
229 | } |
|
|
230 | |
|
|
231 | gnome2_schemas_update() { |
|
|
232 | local updater="$(type -P glib-compile-schemas 2>/dev/null)" |
|
|
233 | |
|
|
234 | if [[ ! -x ${updater} ]]; then |
|
|
235 | debug-print "${updater} is not executable" |
|
|
236 | return |
|
|
237 | fi |
|
|
238 | |
|
|
239 | if [[ -z ${GNOME2_ECLASS_GLIB_SCHEMAS} ]]; then |
|
|
240 | debug-print "no schemas to update" |
|
|
241 | return |
|
|
242 | fi |
|
|
243 | |
|
|
244 | ebegin "Updating GSettings schemas" |
|
|
245 | ${updater} --allow-any-name "$@" "${ROOT%/}/usr/share/glib-2.0/schemas" &>/dev/null |
|
|
246 | eend $? |
|
|
247 | } |