/[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.11
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.11 2002/06/11 21:27:15 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
47
48 # only update scrollkeeper if this package needs it
49 [ -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="1"
35 50
36} 51}
37 52
38gnome2_pkg_postinst() { 53gnome2_pkg_postinst() {
39 54
40 # manual schema installation 55 # schema installation
41 if [ -n "${SCHEMA}" ] 56 if [ -n "${SCHEMAS}" ]
42 then 57 then
58
59 # install/update schemas the hard way
60 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
61
62 echo ">>> Updating GConf2 Schemas for ${P}"
43 for x in $SCHEMA 63 for x in $SCHEMAS
44 do 64 do
45 /usr/bin/gconftool-2 --makefile-install-rule \ 65 /usr/bin/gconftool-2 --makefile-install-rule \
46 /etc/gconf/schemas/${SCHEMA} 66 /etc/gconf/schemas/${x}
47 done 67 done
68 fi
69
70 if [ -x /usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ]
71 then
72 echo ">>> Updating Scrollkeeper"
73 scrollkeeper-update -p /var/lib/scrollkeeper
48 fi 74 fi
49} 75}
50 76
77EXPORT_FUNCTIONS src_compile src_install pkg_postinst
51 78
52 79
53

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

  ViewVC Help
Powered by ViewVC 1.1.20