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

Diff of /eclass/gnome2.eclass

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

Revision 1.4 Revision 1.14
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.4 2002/06/01 03:50:29 blocke Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.14 2002/06/15 00:31:53 spider Exp $
4 4
5inherit libtool
6inherit debug
5# Authors: 7# Authors:
6# Bruce A. Locke <blocke@shivan.org> 8# Bruce A. Locke <blocke@shivan.org>
7# Spidler <spidler@gentoo.org> 9# Spidler <spidler@gentoo.org>
8 10
9# Gnome 2 ECLASS 11# Gnome 2 ECLASS
10ECLASS="gnome2" 12ECLASS="gnome2"
11 13
12# DEBUG for Beta 14G2CONF="--enable-debug=yes"
13# Do _NOT_ strip symbols in the build! Need both lines for Portage 1.8.9+ 15SCROLLKEEPER_UPDATE="0"
14DEBUG="yes"
15RESTRICT="nostrip"
16# force debug information
17CFLAGS="${CFLAGS} -g"
18CXXFLAGS="${CXXFLAGS} -g"
19 16
20G2CONF="--enable-debug=yes" 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}
21 25
22gnome2_src_compile() { 26gnome2_src_compile() {
23 27
24 use doc && G2CONF="${G2CONF} --enable-gtk-doc" || G2CONF="${G2CONF} --disable-gtk-doc" 28 gnome2_src_configure ${1}
25
26 if [ "${LIBTOOL_FIX}" = "1" ]
27 then
28 libtoolize --copy --force
29 fi
30
31 econf ${1} --enable-debug=yes || die "./configure failure"
32 emake || die "compile failure" 29 emake || die "compile failure"
33 30
34} 31}
35 32
36gnome2_src_install() { 33gnome2_src_install() {
37 34
35 # we must delay gconf schema installation due to sandbox
38 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1" 36 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
39 37
40 einstall " scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}" 38 einstall " scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}"
41 39
40 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
41
42 # manual document installation 42 # manual document installation
43 if [ -n "${DOC}" ] 43 if [ -n "${DOCS}" ]
44 then 44 then
45 dodoc ${DOC} 45 dodoc ${DOCS}
46 fi 46 fi
47 47
48 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 48 # only update scrollkeeper if this package needs it
49 49 [ -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="1"
50} 50}
51 51
52gnome2_pkg_postinst() { 52gnome2_pkg_postinst() {
53 # No more SCHEMAS variable :)
54 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
55 export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source`
56 einfo "installing gnome2 gconf schemas"
57 cat ${WORKDIR}/../build-info/CONTENTS | grep "obj /etc/gconf/schemas" | sed 's:obj \([^ ]*\) .*:\1:' |while read F; do
58 echo "DEBUG::gconf install ${F}"
59 /usr/bin/gconftool-2 --makefile-install-rule ${F}
60 done
61
62 # schema installation
53 63
54 # schema installation 64 if [ -x /usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ]
55 if [ -n "${SCHEMA}" ]
56 then
57
58 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
59
60 echo ">>> Updating GConf2 Schemas for ${P}"
61 for x in $SCHEMA
62 do
63 /usr/bin/gconftool-2 --makefile-install-rule \
64 /etc/gconf/schemas/${SCHEMA}
65 done
66 fi
67
68 if [ -x /usr/bin/scrollkeeper-update ]
69 then 65 then
70 echo ">>> Updating Scrollkeeper" 66 echo ">>> Updating Scrollkeeper"
71 scrollkeeper-update -p /var/lib/scrollkeeper 67 scrollkeeper-update -p /var/lib/scrollkeeper
72 fi 68 fi
73} 69}

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20