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

Diff of /eclass/gnome2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.15
1# Copyright 1999-2002 Gentoo Technologies, Inc. 1# Copyright 1999-2002 Gentoo Technologies, Inc.
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.1 2002/06/01 02:55:47 blocke Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.15 2002/06/17 23:19:20 spider Exp $
4
5inherit libtool
6inherit debug
7# Authors:
8# Bruce A. Locke <blocke@shivan.org>
9# Spidler <spidler@gentoo.org>
4 10
5# Gnome 2 ECLASS 11# Gnome 2 ECLASS
6ECLASS="gnome2" 12ECLASS="gnome2"
7 13
8# DEBUG for Beta 14G2CONF="--enable-debug=yes"
9# Do _NOT_ strip symbols in the build! Need both lines for Portage 1.8.9+ 15SCROLLKEEPER_UPDATE="0"
10DEBUG="yes"
11RESTRICT="nostrip"
12# force debug information
13CFLAGS="${CFLAGS} -g"
14CXXFLAGS="${CXXFLAGS} -g"
15 16
17gnome2_src_configure() {
18 elibtoolize
19 cd ${S}
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}
16 26
17gnome2_src_compile() { 27gnome2_src_compile() {
18 28
19 libtoolize --copy --force 29 gnome2_src_configure ${1}
20
21 econf "${1} --enable-debug=yes" || die "./configure failure"
22 emake || die "compile failure" 30 emake || die "compile failure"
23 31
24} 32}
25 33
26gnome2_src_install() { 34gnome2_src_install() {
27 35
28 einstall ${1} 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
29 42
30 # manual document installation 43 # manual document installation
31 if [ -n "${DOC}" && use doc ] 44 if [ -n "${DOCS}" ]
32 then 45 then
33 for x in $DOC; do dodoc $x; done 46 dodoc ${DOCS}
34 fi 47 fi
35 48
49 # only update scrollkeeper if this package needs it
50 [ -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="1"
36} 51}
37 52
38gnome2_pkg_postinst() { 53gnome2_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
39 64
40 # manual schema installation 65 if [ -x /usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ]
41 if [ -n "${SCHEMA}" ]
42 then 66 then
43 for x in $SCHEMA 67 echo ">>> Updating Scrollkeeper"
44 do 68 scrollkeeper-update -p /var/lib/scrollkeeper
45 /usr/bin/gconftool-2 --makefile-install-rule \
46 /etc/gconf/schemas/${SCHEMA}
47 done
48 fi 69 fi
49} 70}
50 71
72EXPORT_FUNCTIONS src_compile src_install pkg_postinst
51 73
52 74
53

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20