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

Diff of /eclass/gnome2.eclass

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

Revision 1.7 Revision 1.8
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.7 2002/06/04 06:46:11 blocke Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.8 2002/06/04 07:42:38 blocke Exp $
4 4
5# Authors: 5# Authors:
6# Bruce A. Locke <blocke@shivan.org> 6# Bruce A. Locke <blocke@shivan.org>
7# Spidler <spidler@gentoo.org> 7# Spidler <spidler@gentoo.org>
8 8
18# force debug information 18# force debug information
19export CFLAGS="${CFLAGS/-fomit-frame-pointer/} -g" 19export CFLAGS="${CFLAGS/-fomit-frame-pointer/} -g"
20export CXXFLAGS="${CXXFLAGS/-fomit-frame-pointer/} -g" 20export CXXFLAGS="${CXXFLAGS/-fomit-frame-pointer/} -g"
21 21
22G2CONF="--enable-debug=yes" 22G2CONF="--enable-debug=yes"
23SCROLLKEEPER_UPDATE="0"
23 24
24gnome2_src_compile() { 25gnome2_src_compile() {
25 26
27 # doc keyword for gtk-doc
26 use doc && G2CONF="${G2CONF} --enable-gtk-doc" || G2CONF="${G2CONF} --disable-gtk-doc" 28 use doc && G2CONF="${G2CONF} --enable-gtk-doc" || G2CONF="${G2CONF} --disable-gtk-doc"
27 29
30 # fix those .la files
28 if [ "${LIBTOOL_FIX}" = "1" ] 31 if [ "${LIBTOOL_FIX}" = "1" ]
29 then 32 then
30 libtoolize --copy --force 33 libtoolize --copy --force
31 fi 34 fi
32 35
35 38
36} 39}
37 40
38gnome2_src_install() { 41gnome2_src_install() {
39 42
43 # we must delay gconf schema installation due to sandbox
40 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1" 44 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
41 45
42 einstall " scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}" 46 einstall " scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}"
43 47
44 # manual document installation 48 # manual document installation
47 dodoc ${DOCS} 51 dodoc ${DOCS}
48 fi 52 fi
49 53
50 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 54 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
51 55
56 # only update scrollkeeper if this package needs it
57 [ -a ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="1"
58
52} 59}
53 60
54gnome2_pkg_postinst() { 61gnome2_pkg_postinst() {
55 62
56 # schema installation 63 # schema installation
57 if [ -n "${SCHEMAS}" ] 64 if [ -n "${SCHEMAS}" ]
58 then 65 then
59 66
67 # install/update schemas the hard way
60 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 68 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
61 69
62 echo ">>> Updating GConf2 Schemas for ${P}" 70 echo ">>> Updating GConf2 Schemas for ${P}"
63 for x in $SCHEMAS 71 for x in $SCHEMAS
64 do 72 do
65 /usr/bin/gconftool-2 --makefile-install-rule \ 73 /usr/bin/gconftool-2 --makefile-install-rule \
66 /etc/gconf/schemas/${x} 74 /etc/gconf/schemas/${x}
67 done 75 done
68 fi 76 fi
69 77
70 if [ -x /usr/bin/scrollkeeper-update ] 78 if [ -x /usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ]
71 then 79 then
72 echo ">>> Updating Scrollkeeper" 80 echo ">>> Updating Scrollkeeper"
73 scrollkeeper-update -p /var/lib/scrollkeeper 81 scrollkeeper-update -p /var/lib/scrollkeeper
74 fi 82 fi
75} 83}

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20