From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QCcbo-0006RU-7F for garchives@archives.gentoo.org; Wed, 20 Apr 2011 18:58:40 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3CB201C0CB; Wed, 20 Apr 2011 18:58:18 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id F16771C0CB for ; Wed, 20 Apr 2011 18:58:17 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 599C71B4068 for ; Wed, 20 Apr 2011 18:58:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 5120280285 for ; Wed, 20 Apr 2011 18:58:16 +0000 (UTC) From: "Nirbheek Chauhan" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Nirbheek Chauhan" Message-ID: Subject: [gentoo-commits] proj/gnome:master commit in: eclass/ X-VCS-Repository: proj/gnome X-VCS-Files: eclass/gnome2.eclass X-VCS-Directories: eclass/ X-VCS-Committer: nirbheek X-VCS-Committer-Name: Nirbheek Chauhan X-VCS-Revision: c0c6ebbfec667192e0b659029ab66b55080052b7 Date: Wed, 20 Apr 2011 18:58:16 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: b0eeb45410f1ee008796fe1292720f48 commit: c0c6ebbfec667192e0b659029ab66b55080052b7 Author: Nirbheek Chauhan gentoo org> AuthorDate: Wed Apr 20 18:55:33 2011 +0000 Commit: Nirbheek Chauhan gentoo org> CommitDate: Wed Apr 20 18:55:33 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gnome.git;a=3D= commit;h=3Dc0c6ebbf gnome2.eclass: port eclass doc changes from the tree --- eclass/gnome2.eclass | 82 +++++++++++++++++++++++++++++++++++++++++---= ----- 1 files changed, 68 insertions(+), 14 deletions(-) diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass index f861b8f..c127655 100644 --- a/eclass/gnome2.eclass +++ b/eclass/gnome2.eclass @@ -1,16 +1,14 @@ -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.87 2010/04/2= 6 19:37:25 abcd Exp $ +# $Header: $ =20 -# -# gnome2.eclass -# +# @ECLASS: gnome2.eclass +# @MAINTAINER: +# gnome@gentoo.org +# @BLURB:=20 +# @DESCRIPTION: # Exports portage base functions used by ebuilds written for packages us= ing the # GNOME framework. For additional functions, see gnome2-utils.eclass. -# -# Maintained by Gentoo's GNOME herd -# - =20 inherit fdo-mime libtool gnome.org gnome2-utils =20 @@ -24,22 +22,51 @@ case "${EAPI:-0}" in *) die "EAPI=3D${EAPI} is not supported" ;; esac =20 +# @ECLASS-VARIABLE: G2CONF +# @DEFAULT-UNSET +# @DESCRIPTION: # Extra configure opts passed to econf G2CONF=3D${G2CONF:-""} =20 +# @ECLASS-VARIABLE: GNOME2_LA_PUNT +# @DESCRIPTION: # Should we delete all the .la files? -# Do NOT use without due consideration +# NOT to be used without due consideration. GNOME2_LA_PUNT=3D${GNOME2_LA_PUNT:-"no"} =20 +# @ECLASS-VARIABLE: ELTCONF +# @DEFAULT-UNSET +# @DESCRIPTION: # Extra options passed to elibtoolize ELTCONF=3D${ELTCONF:-""} =20 +# @ECLASS-VARIABLE: USE_EINSTALL +# @DEFAULT-UNSET +# @DEPRECATED +# @DESCRIPTION: # Should we use EINSTALL instead of DESTDIR USE_EINSTALL=3D${USE_EINSTALL:-""} =20 -# Run scrollkeeper for this package? +# @ECLASS-VARIABLE: SCROLLKEEPER_UPDATE +# @DEPRECATED +# @DESCRIPTION: +# Whether to run scrollkeeper for this package or not. SCROLLKEEPER_UPDATE=3D${SCROLLKEEPER_UPDATE:-"1"} =20 +# @ECLASS-VARIABLE: DOCS +# @DEFAULT-UNSET +# @DESCRIPTION: +# String containing documents passed to dodoc command. + +# @ECLASS-VARIABLE: GCONF_DEBUG +# @DEFAULT_UNSET +# @DESCRIPTION: +# Whether to handle debug or not. +# Some gnome applications support various levels of debugging (yes, no, = minimum, +# etc), but using --disable-debug also removes g_assert which makes debu= gging +# harder. This variable should be set to yes for such packages for the e= class +# to handle it properly. It will enable minimal debug with USE=3D-debug. +# Note that this is most commonly found in configure.ac as GNOME_DEBUG_C= HECK. =20 =20 if [[ ${GCONF_DEBUG} !=3D "no" ]]; then @@ -47,13 +74,19 @@ if [[ ${GCONF_DEBUG} !=3D "no" ]]; then fi =20 =20 - +# @FUNCTION: gnome2_src_unpack +# @DESCRIPTION: +# Stub function for old EAPI. gnome2_src_unpack() { unpack ${A} cd "${S}" has ${EAPI:-0} 0 1 && gnome2_src_prepare } =20 +# @FUNCTION: gnome2_src_prepare +# @DESCRIPTION: +# Prepare environment for build, fix build of scrollkeeper documentation= , +# run elibtoolize. gnome2_src_prepare() { # Reset various variables inherited via the environment. # Causes test failures, introspection-build failures, and access violat= ions @@ -88,6 +121,9 @@ gnome2_src_prepare() { =20 } =20 +# @FUNCTION: gnome2_src_configure +# @DESCRIPTION: +# Gnome specific configure handling gnome2_src_configure() { # Update the GNOME configuration options if [[ ${GCONF_DEBUG} !=3D 'no' ]] ; then @@ -108,11 +144,18 @@ gnome2_src_configure() { GST_REGISTRY=3D"${S}/registry.xml" econf "$@" ${G2CONF} } =20 +# @FUNCTION: gnome2_src_compile +# @DESCRIPTION: +# Stub function for old EAPI. gnome2_src_compile() { has ${EAPI:-0} 0 1 && gnome2_src_configure "$@" emake || die "compile failure" } =20 +# @FUNCTION: gnome2_src_install +# @DESCRIPTION: +# Gnome specific install. Handles typical GConf and scrollkeeper setup +# in packages and removal of .la files if requested gnome2_src_install() { has ${EAPI:-0} 0 1 2 && ! use prefix && ED=3D"${D}" # if this is not present, scrollkeeper-update may segfault and @@ -158,12 +201,19 @@ gnome2_src_install() { fi } =20 +# @FUNCTION: gnome2_pkg_preinst +# @DESCRIPTION: +# Finds Icons, GConf and GSettings schemas for later handling in pkg_pos= tinst gnome2_pkg_preinst() { gnome2_gconf_savelist gnome2_icon_savelist gnome2_schemas_savelist } =20 +# @FUNCTION: gnome2_pkg_postinst +# @DESCRIPTION: +# Handle scrollkeeper, GConf, GSettings, Icons, desktop and mime +# database updates. gnome2_pkg_postinst() { gnome2_gconf_install fdo-mime_desktop_database_update @@ -182,10 +232,16 @@ gnome2_pkg_postinst() { ewarn "**************************************************************" } =20 +# @#FUNCTION: gnome2_pkg_prerm +# @#DESCRIPTION: +# # FIXME Handle GConf schemas removal #gnome2_pkg_prerm() { # gnome2_gconf_uninstall #} =20 +# @FUNCTION: gnome2_pkg_postrm +# @DESCRIPTION: +# Handle scrollkeeper, GSettings, Icons, desktop and mime database updat= es. gnome2_pkg_postrm() { fdo-mime_desktop_database_update fdo-mime_mime_database_update @@ -196,5 +252,3 @@ gnome2_pkg_postrm() { gnome2_scrollkeeper_update fi } - -# pkg_prerm