public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Gilles Dartiguelongue (eva)" <eva@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in eclass: gnome2-utils.eclass
Date: Sun,  3 Apr 2011 18:12:35 +0000 (UTC)	[thread overview]
Message-ID: <20110403181235.0977E20054@flycatcher.gentoo.org> (raw)

eva         11/04/03 18:12:35

  Modified:             gnome2-utils.eclass
  Log:
  Add eclass documentation.

Revision  Changes    Path
1.22                 eclass/gnome2-utils.eclass

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome2-utils.eclass?rev=1.22&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome2-utils.eclass?rev=1.22&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/gnome2-utils.eclass?r1=1.21&r2=1.22

Index: gnome2-utils.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- gnome2-utils.eclass	31 Jan 2011 17:03:45 -0000	1.21
+++ gnome2-utils.eclass	3 Apr 2011 18:12:34 -0000	1.22
@@ -1,44 +1,82 @@
 # Copyright 1999-2006 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v 1.21 2011/01/31 17:03:45 eva Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2-utils.eclass,v 1.22 2011/04/03 18:12:34 eva Exp $
 
-#
-# gnome2-utils.eclass
-#
-# Set of auxiliary functions used to perform actions commonly needed by packages
-# using the GNOME framework.
-#
-# Maintained by Gentoo's GNOME herd <gnome@gentoo.org>
-#
+# @ECLASS: gnome2-utils.eclass
+# @MAINTAINER: 
+# gnome@gentoo.org
+# @BLURB: Auxiliary functions commonly used by Gnome packages.
+# @DESCRIPTION:
+# This eclass provides a set of auxiliary functions needed by most Gnome
+# packages. It may be used by non-Gnome packages as needed for handling various
+# Gnome stack related functions such as:
+#  * Gtk+ icon cache management
+#  * GSettings schemas management
+#  * GConf schemas management
+#  * scrollkeeper (old Gnome help system) management
 
 case "${EAPI:-0}" in
 	0|1|2|3|4) ;;
 	*) die "EAPI=${EAPI} is not supported" ;;
 esac
 
+# @ECLASS-VARIABLE: GCONFTOOL_BIN
+# @INTERNAL
+# @DESCRIPTION:
 # Path to gconftool-2
 : ${GCONFTOOL_BIN:="/usr/bin/gconftool-2"}
 
+# @ECLASS-VARIABLE: SCROLLKEEPER_DIR
+# @INTERNAL
+# @DESCRIPTION:
 # Directory where scrollkeeper-update should do its work
 : ${SCROLLKEEPER_DIR:="/var/lib/scrollkeeper"}
 
+# @ECLASS-VARIABLE: SCROLLKEEPER_UPDATE_BIN
+# @INTERNAL
+# @DESCRIPTION:
 # Path to scrollkeeper-update
 : ${SCROLLKEEPER_UPDATE_BIN:="/usr/bin/scrollkeeper-update"}
 
+# @ECLASS-VARIABLE: GTK_UPDATE_ICON_CACHE
+# @INTERNAL
+# @DESCRIPTION:
 # Path to gtk-update-icon-cache
 : ${GTK_UPDATE_ICON_CACHE:="/usr/bin/gtk-update-icon-cache"}
 
+# @ECLASS-VARIABLE: GLIB_COMPILE_SCHEMAS
+# @INTERNAL
+# @DESCRIPTION:
 # Path to glib-compile-schemas
 : ${GLIB_COMPILE_SCHEMAS:="/usr/bin/glib-compile-schemas"}
 
+# @ECLASS-VARIABLE: GNOME2_ECLASS_SCHEMAS
+# @INTERNAL
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# List of GConf schemas provided by the package
+
+# @ECLASS-VARIABLE: GNOME2_ECLASS_ICONS
+# @INTERNAL
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# List of icons provided by the package
+
+# @ECLASS-VARIABLE: GNOME2_ECLASS_GLIB_SCHEMAS
+# @INTERNAL
+# @DEFAULT_UNSET
+# @DESCRIPTION:
+# List of GSettings schemas provided by the package
 
 
 DEPEND=">=sys-apps/sed-4"
 
 
-
+# @FUNCTION: gnome2_gconf_savelist
+# @DESCRIPTION:
 # Find the GConf schemas that are about to be installed and save their location
-# in the GNOME2_ECLASS_SCHEMAS environment variable
+# in the GNOME2_ECLASS_SCHEMAS environment variable.
+# This function should be called from pkg_preinst.
 gnome2_gconf_savelist() {
 	has ${EAPI:-0} 0 1 2 && ! use prefix && ED="${D}"
 	pushd "${ED}" &> /dev/null
@@ -46,9 +84,11 @@
 	popd &> /dev/null
 }
 
-
+# @FUNCTION: gnome2_gconf_install
+# @DESCRIPTION:
 # Applies any schema files installed by the current ebuild to Gconf's database
-# using gconftool-2
+# using gconftool-2.
+# This function should be called from pkg_postinst.
 gnome2_gconf_install() {
 	has ${EAPI:-0} 0 1 2 && ! use prefix && EROOT="${ROOT}"
 	local updater="${EROOT}${GCONFTOOL_BIN}"
@@ -86,7 +126,8 @@
 	fi
 }
 
-
+# @FUNCTION: gnome2_gconf_uninstall
+# @DESCRIPTION:
 # Removes schema files previously installed by the current ebuild from Gconf's
 # database.
 gnome2_gconf_uninstall() {
@@ -125,10 +166,11 @@
 	fi
 }
 
-
+# @FUNCTION: gnome2_icon_savelist
+# @DESCRIPTION:
 # Find the icons that are about to be installed and save their location
-# in the GNOME2_ECLASS_ICONS environment variable
-# That function should be called from pkg_preinst
+# in the GNOME2_ECLASS_ICONS environment variable.
+# This function should be called from pkg_preinst.
 gnome2_icon_savelist() {
 	has ${EAPI:-0} 0 1 2 && ! use prefix && ED="${D}"
 	pushd "${ED}" &> /dev/null
@@ -136,9 +178,11 @@
 	popd &> /dev/null
 }
 
-
+# @FUNCTION: gnome2_icon_cache_update
+# @DESCRIPTION:
 # Updates Gtk+ icon cache files under /usr/share/icons if the current ebuild
 # have installed anything under that location.
+# This function should be called from pkg_postinst and pkg_postrm.
 gnome2_icon_cache_update() {
 	has ${EAPI:-0} 0 1 2 && ! use prefix && EROOT="${ROOT}"
 	local updater="${EROOT}${GTK_UPDATE_ICON_CACHE}"
@@ -184,9 +228,11 @@
 	done
 }
 
-
+# @FUNCTION: gnome2_omf_fix
+# @DESCRIPTION:
 # Workaround applied to Makefile rules in order to remove redundant
 # calls to scrollkeeper-update and sandbox violations.
+# This function should be called from src_prepare.
 gnome2_omf_fix() {
 	local omf_makefiles filename
 
@@ -231,8 +277,10 @@
 	done
 }
 
-
+# @FUNCTION: gnome2_scrollkeeper_update
+# @DESCRIPTION:
 # Updates the global scrollkeeper database.
+# This function should be called from pkg_postinst and pkg_postrm.
 gnome2_scrollkeeper_update() {
 	has ${EAPI:-0} 0 1 2 && ! use prefix && EROOT="${ROOT}"
 	if [[ -x "${EROOT}${SCROLLKEEPER_UPDATE_BIN}" ]]; then
@@ -241,6 +289,11 @@
 	fi
 }
 
+# @FUNCTION: gnome2_schemas_savelist
+# @DESCRIPTION:
+# Find if there is any GSettings schema to install and save the list in
+# GNOME2_ECLASS_GLIB_SCHEMAS variable.
+# This function should be called from pkg_preinst.
 gnome2_schemas_savelist() {
 	has ${EAPI:-0} 0 1 2 && ! use prefix && ED="${D}"
 	pushd "${ED}" &>/dev/null
@@ -248,6 +301,11 @@
 	popd &>/dev/null
 }
 
+# @FUNCTION: gnome2_schemas_update
+# @USAGE: gnome2_schemas_update [--uninstall]
+# @DESCRIPTION:
+# Updates GSettings schemas if GNOME2_ECLASS_GLIB_SCHEMAS has some.
+# This function should be called from pkg_postinst and pkg_postrm with --uninstall.
 gnome2_schemas_update() {
 	has ${EAPI:-0} 0 1 2 && ! use prefix && EROOT="${ROOT}"
 	local updater="${EROOT}${GLIB_COMPILE_SCHEMAS}"






             reply	other threads:[~2011-04-03 18:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-03 18:12 Gilles Dartiguelongue (eva) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-01-31 17:03 [gentoo-commits] gentoo-x86 commit in eclass: gnome2-utils.eclass Gilles Dartiguelongue (eva)
2011-01-20 23:50 Jonathan Callen (abcd)
2011-01-20 23:49 Jonathan Callen (abcd)
2010-12-07  6:26 Gilles Dartiguelongue (eva)
2010-12-07  6:25 Gilles Dartiguelongue (eva)
2010-12-07  6:23 Gilles Dartiguelongue (eva)
2010-12-07  6:21 Gilles Dartiguelongue (eva)
2008-10-22 21:04 Gilles Dartiguelongue (eva)
2008-10-19 10:35 Gilles Dartiguelongue (eva)
2008-09-27  9:16 Mart Raudsepp (leio)
2008-03-22 17:30 Remi Cardona (remi)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110403181235.0977E20054@flycatcher.gentoo.org \
    --to=eva@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox