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

Contents of /eclass/gnome2.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (hide annotations) (download)
Mon Jun 17 23:19:20 2002 UTC (11 years, 10 months ago) by spider
Branch: MAIN
Changes since 1.14: +3 -2 lines
hacking around a bug in libtool.eclass

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

  ViewVC Help
Powered by ViewVC 1.1.20