/[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.18
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.18 2002/07/12 15:24:36 danarmak 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"
13INHERITED="$INHERITED $ECLASS"
7 14
8# DEBUG for Beta 15G2CONF="--enable-debug=yes"
9# Do _NOT_ strip symbols in the build! Need both lines for Portage 1.8.9+ 16ELTCONF=""
10DEBUG="yes" 17SCROLLKEEPER_UPDATE="0"
11RESTRICT="nostrip"
12# force debug information
13CFLAGS="${CFLAGS} -g"
14CXXFLAGS="${CXXFLAGS} -g"
15 18
19gnome2_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}
16 27
17gnome2_src_compile() { 28gnome2_src_compile() {
18 29
19 libtoolize --copy --force 30 gnome2_src_configure ${1}
20
21 econf "${1} --enable-debug=yes" || die "./configure failure"
22 emake || die "compile failure" 31 emake || die "compile failure"
23 32
24} 33}
25 34
26gnome2_src_install() { 35gnome2_src_install() {
27 36
28 einstall ${1} 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
29 43
30 # manual document installation 44 # manual document installation
31 if [ -n "${DOC}" && use doc ] 45 if [ -n "${DOCS}" ]
32 then 46 then
33 for x in $DOC; do dodoc $x; done 47 dodoc ${DOCS}
34 fi 48 fi
35 49
50 # only update scrollkeeper if this package needs it
51 [ -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="1"
36} 52}
37 53
38gnome2_pkg_postinst() { 54gnome2_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
39 65
40 # manual schema installation 66 if [ -x /usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ]
41 if [ -n "${SCHEMA}" ]
42 then 67 then
43 for x in $SCHEMA 68 echo ">>> Updating Scrollkeeper"
44 do 69 scrollkeeper-update -p /var/lib/scrollkeeper
45 /usr/bin/gconftool-2 --makefile-install-rule \
46 /etc/gconf/schemas/${SCHEMA}
47 done
48 fi 70 fi
49} 71}
50 72
73EXPORT_FUNCTIONS src_compile src_install pkg_postinst
51 74
52 75
53

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

  ViewVC Help
Powered by ViewVC 1.1.20