/[gentoo-x86]/eclass/gnome2.eclass
Gentoo

Contents of /eclass/gnome2.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.18 - (show annotations) (download)
Fri Jul 12 15:24:36 2002 UTC (11 years, 9 months ago) by danarmak
Branch: MAIN
Changes since 1.17: +2 -1 lines
add INHERITED variable to all eclasses. this keeps track of what eclasses were inherited. e.g. INHERITED='kde-base kde base'. this will allow drobbins to take eclass mtime changes into account when deciding whether to refresh ebuild cache.

1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.17 2002/06/29 23:50:55 azarah Exp $
4
5 inherit libtool
6 inherit debug
7 # Authors:
8 # Bruce A. Locke <blocke@shivan.org>
9 # Spidler <spidler@gentoo.org>
10
11 # Gnome 2 ECLASS
12 ECLASS="gnome2"
13 INHERITED="$INHERITED $ECLASS"
14
15 G2CONF="--enable-debug=yes"
16 ELTCONF=""
17 SCROLLKEEPER_UPDATE="0"
18
19 gnome2_src_configure() {
20 elibtoolize ${ELTCONF}
21 # doc keyword for gtk-doc
22 use doc && G2CONF="${G2CONF} --enable-gtk-doc" || G2CONF="${G2CONF} --disable-gtk-doc"
23
24 econf ${1} ${G2CONF} || die "./configure failure"
25
26 }
27
28 gnome2_src_compile() {
29
30 gnome2_src_configure ${1}
31 emake || die "compile failure"
32
33 }
34
35 gnome2_src_install() {
36
37 # we must delay gconf schema installation due to sandbox
38 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
39
40 einstall " scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}"
41
42 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
43
44 # manual document installation
45 if [ -n "${DOCS}" ]
46 then
47 dodoc ${DOCS}
48 fi
49
50 # only update scrollkeeper if this package needs it
51 [ -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="1"
52 }
53
54 gnome2_pkg_postinst() {
55 # No more SCHEMAS variable :)
56 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
57 export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source`
58 einfo "installing gnome2 gconf schemas"
59 cat ${WORKDIR}/../build-info/CONTENTS | grep "obj /etc/gconf/schemas" | sed 's:obj \([^ ]*\) .*:\1:' |while read F; do
60 echo "DEBUG::gconf install ${F}"
61 /usr/bin/gconftool-2 --makefile-install-rule ${F}
62 done
63
64 # schema installation
65
66 if [ -x /usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ]
67 then
68 echo ">>> Updating Scrollkeeper"
69 scrollkeeper-update -p /var/lib/scrollkeeper
70 fi
71 }
72
73 EXPORT_FUNCTIONS src_compile src_install pkg_postinst

  ViewVC Help
Powered by ViewVC 1.1.20