/[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.24 Revision 1.25
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-utils.eclass,v 1.24 2011/11/14 06:10:32 tetromino Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v 1.25 2011/12/14 19:47:54 tetromino Exp $
4 4
5# @ECLASS: gnome2-utils.eclass 5# @ECLASS: gnome2-utils.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# gnome@gentoo.org 7# gnome@gentoo.org
8# @BLURB: Auxiliary functions commonly used by Gnome packages. 8# @BLURB: Auxiliary functions commonly used by Gnome packages.
324 export GNOME2_ECLASS_GLIB_SCHEMAS=$(find 'usr/share/glib-2.0/schemas' -name '*.gschema.xml' 2>/dev/null) 324 export GNOME2_ECLASS_GLIB_SCHEMAS=$(find 'usr/share/glib-2.0/schemas' -name '*.gschema.xml' 2>/dev/null)
325 popd &>/dev/null 325 popd &>/dev/null
326} 326}
327 327
328# @FUNCTION: gnome2_schemas_update 328# @FUNCTION: gnome2_schemas_update
329# @USAGE: gnome2_schemas_update [--uninstall] 329# @USAGE: gnome2_schemas_update
330# @DESCRIPTION: 330# @DESCRIPTION:
331# Updates GSettings schemas if GNOME2_ECLASS_GLIB_SCHEMAS has some. 331# Updates GSettings schemas if GNOME2_ECLASS_GLIB_SCHEMAS has some.
332# This function should be called from pkg_postinst and pkg_postrm with --uninstall. 332# This function should be called from pkg_postinst and pkg_postrm.
333gnome2_schemas_update() { 333gnome2_schemas_update() {
334 has ${EAPI:-0} 0 1 2 && ! use prefix && EROOT="${ROOT}" 334 has ${EAPI:-0} 0 1 2 && ! use prefix && EROOT="${ROOT}"
335 local updater="${EROOT}${GLIB_COMPILE_SCHEMAS}" 335 local updater="${EROOT}${GLIB_COMPILE_SCHEMAS}"
336 336
337 if [[ ! -x ${updater} ]]; then 337 if [[ ! -x ${updater} ]]; then

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

  ViewVC Help
Powered by ViewVC 1.1.20