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

Contents of /eclass/gnome2.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.17 - (show annotations) (download)
Sat Jun 29 23:50:55 2002 UTC (12 years ago) by azarah
Branch: MAIN
Changes since 1.16: +3 -2 lines
libtool reverse deps patch

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.16 2002/06/18 21:17:16 spider 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
14 G2CONF="--enable-debug=yes"
15 ELTCONF=""
16 SCROLLKEEPER_UPDATE="0"
17
18 gnome2_src_configure() {
19 elibtoolize ${ELTCONF}
20 # doc keyword for gtk-doc
21 use doc && G2CONF="${G2CONF} --enable-gtk-doc" || G2CONF="${G2CONF} --disable-gtk-doc"
22
23 econf ${1} ${G2CONF} || die "./configure failure"
24
25 }
26
27 gnome2_src_compile() {
28
29 gnome2_src_configure ${1}
30 emake || die "compile failure"
31
32 }
33
34 gnome2_src_install() {
35
36 # we must delay gconf schema installation due to sandbox
37 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
38
39 einstall " scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}"
40
41 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
42
43 # manual document installation
44 if [ -n "${DOCS}" ]
45 then
46 dodoc ${DOCS}
47 fi
48
49 # only update scrollkeeper if this package needs it
50 [ -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="1"
51 }
52
53 gnome2_pkg_postinst() {
54 # No more SCHEMAS variable :)
55 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
56 export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source`
57 einfo "installing gnome2 gconf schemas"
58 cat ${WORKDIR}/../build-info/CONTENTS | grep "obj /etc/gconf/schemas" | sed 's:obj \([^ ]*\) .*:\1:' |while read F; do
59 echo "DEBUG::gconf install ${F}"
60 /usr/bin/gconftool-2 --makefile-install-rule ${F}
61 done
62
63 # schema installation
64
65 if [ -x /usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ]
66 then
67 echo ">>> Updating Scrollkeeper"
68 scrollkeeper-update -p /var/lib/scrollkeeper
69 fi
70 }
71
72 EXPORT_FUNCTIONS src_compile src_install pkg_postinst

  ViewVC Help
Powered by ViewVC 1.1.20