/[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.9
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.9 2002/06/04 09:21:59 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_configure() {
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
33 econf ${1} ${G2CONF} || die "./configure failure" 36 econf ${1} ${G2CONF} || die "./configure failure"
37
38}
39
40gnome2_src_compile() {
41
42 gnome2_src_configure ${1}
34 emake || die "compile failure" 43 emake || die "compile failure"
35 44
36} 45}
37 46
38gnome2_src_install() { 47gnome2_src_install() {
39 48
49 # we must delay gconf schema installation due to sandbox
40 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1" 50 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
41 51
42 einstall " scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}" 52 einstall " scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}"
43 53
44 # manual document installation 54 # manual document installation
47 dodoc ${DOCS} 57 dodoc ${DOCS}
48 fi 58 fi
49 59
50 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 60 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
51 61
62 # only update scrollkeeper if this package needs it
63 [ -a ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="1"
64
52} 65}
53 66
54gnome2_pkg_postinst() { 67gnome2_pkg_postinst() {
55 68
56 # schema installation 69 # schema installation
57 if [ -n "${SCHEMAS}" ] 70 if [ -n "${SCHEMAS}" ]
58 then 71 then
59 72
73 # install/update schemas the hard way
60 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` 74 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
61 75
62 echo ">>> Updating GConf2 Schemas for ${P}" 76 echo ">>> Updating GConf2 Schemas for ${P}"
63 for x in $SCHEMAS 77 for x in $SCHEMAS
64 do 78 do
65 /usr/bin/gconftool-2 --makefile-install-rule \ 79 /usr/bin/gconftool-2 --makefile-install-rule \
66 /etc/gconf/schemas/${x} 80 /etc/gconf/schemas/${x}
67 done 81 done
68 fi 82 fi
69 83
70 if [ -x /usr/bin/scrollkeeper-update ] 84 if [ -x /usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ]
71 then 85 then
72 echo ">>> Updating Scrollkeeper" 86 echo ">>> Updating Scrollkeeper"
73 scrollkeeper-update -p /var/lib/scrollkeeper 87 scrollkeeper-update -p /var/lib/scrollkeeper
74 fi 88 fi
75} 89}

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

  ViewVC Help
Powered by ViewVC 1.1.20