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

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

  ViewVC Help
Powered by ViewVC 1.1.20