/[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.3
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.3 2002/06/01 03:41:55 blocke Exp $
4
5# Authors:
6# Bruce A. Locke <blocke@shivan.org>
7# Spidler <spidler@gentoo.org>
4 8
5# Gnome 2 ECLASS 9# Gnome 2 ECLASS
6ECLASS="gnome2" 10ECLASS="gnome2"
7 11
8# DEBUG for Beta 12# DEBUG for Beta
11RESTRICT="nostrip" 15RESTRICT="nostrip"
12# force debug information 16# force debug information
13CFLAGS="${CFLAGS} -g" 17CFLAGS="${CFLAGS} -g"
14CXXFLAGS="${CXXFLAGS} -g" 18CXXFLAGS="${CXXFLAGS} -g"
15 19
20G2CONF="--enable-debug=yes"
16 21
17gnome2_src_compile() { 22gnome2_src_compile() {
18 23
24 use doc && G2CONF="${G2CONF} --enable-gtk-doc" || G2CONF="${G2CONF} --disable-gtk-doc"
25
26 if [ "${LIBTOOL_FIX}" = "1" ]
27 then
19 libtoolize --copy --force 28 libtoolize --copy --force
29 fi
20 30
21 econf "${1} --enable-debug=yes" || die "./configure failure" 31 econf ${1} --enable-debug=yes || die "./configure failure"
22 emake || die "compile failure" 32 emake || die "compile failure"
23 33
24} 34}
25 35
26gnome2_src_install() { 36gnome2_src_install() {
27 37
28 einstall ${1} 38 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
39
40 einstall " scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}"
29 41
30 # manual document installation 42 # manual document installation
31 if [ -n "${DOC}" && use doc ] 43 if [ -n "${DOC}" && use doc ]
32 then 44 then
33 for x in $DOC; do dodoc $x; done 45 dodoc ${DOC}
34 fi 46 fi
47
48 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
35 49
36} 50}
37 51
38gnome2_pkg_postinst() { 52gnome2_pkg_postinst() {
39 53
40 # manual schema installation 54 # schema installation
41 if [ -n "${SCHEMA}" ] 55 if [ -n "${SCHEMA}" ]
42 then 56 then
57
58 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
59
60 echo ">>> Updating GConf2 Schemas for ${P}"
43 for x in $SCHEMA 61 for x in $SCHEMA
44 do 62 do
45 /usr/bin/gconftool-2 --makefile-install-rule \ 63 /usr/bin/gconftool-2 --makefile-install-rule \
46 /etc/gconf/schemas/${SCHEMA} 64 /etc/gconf/schemas/${SCHEMA}
47 done 65 done
48 fi 66 fi
67
68 if [ -x /usr/bin/scrollkeeper-update ]
69 then
70 echo ">>> Updating Scrollkeeper"
71 scrollkeeper-update -p /var/lib/scrollkeeper
72 fi
49} 73}
50 74
75EXPORT_FUNCTIONS src_compile src_install pkg_postinst
51 76
52 77
53

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

  ViewVC Help
Powered by ViewVC 1.1.20