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

Diff of /eclass/gnome2.eclass

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

Revision 1.19 Revision 1.21
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.19 2002/07/18 13:08:37 spider Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.21 2002/08/17 20:23:15 azarah Exp $
4 4
5inherit libtool 5inherit libtool
6 6
7if [ -n "$DEBUG" ] 7if [ -n "$DEBUG" ]
8then 8then
21if [ -n "$DEBUG" ]; then 21if [ -n "$DEBUG" ]; then
22 G2CONF="${G2CONF} --enable-debug=yes" 22 G2CONF="${G2CONF} --enable-debug=yes"
23fi 23fi
24 24
25ELTCONF="" 25ELTCONF=""
26SCROLLKEEPER_UPDATE="0" 26SCROLLKEEPER_UPDATE="1"
27 27
28gnome2_src_configure() { 28gnome2_src_configure() {
29 elibtoolize ${ELTCONF} 29 elibtoolize ${ELTCONF}
30 # doc keyword for gtk-doc 30 # doc keyword for gtk-doc
31 use doc && G2CONF="${G2CONF} --enable-gtk-doc" || G2CONF="${G2CONF} --disable-gtk-doc" 31 use doc && G2CONF="${G2CONF} --enable-gtk-doc" || G2CONF="${G2CONF} --disable-gtk-doc"
41 41
42} 42}
43 43
44gnome2_src_install() { 44gnome2_src_install() {
45 45
46 # if this is not present, scrollkeeper-update may segfault
47 dodir /var/lib/scrollkeeper/scrollkeeper_docs
48
46 # we must delay gconf schema installation due to sandbox 49 # we must delay gconf schema installation due to sandbox
47 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1" 50 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
48 51
49 einstall " scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}" 52 einstall " scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}"
50 53
55 then 58 then
56 dodoc ${DOCS} 59 dodoc ${DOCS}
57 fi 60 fi
58 61
59 # only update scrollkeeper if this package needs it 62 # only update scrollkeeper if this package needs it
60 [ -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="1" 63 [ ! -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="0"
64}
65
66
67gnome2_gconf_install() {
68 if [ -x ${ROOT}/usr/bin/gconftool-2 ]
69 then
70 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
71 export GCONF_CONFIG_SOURCE=`${ROOT}/usr/bin/gconftool-2 --get-default-source`
72 einfo "installing gnome2 gconf schemas"
73 cat ${ROOT}/var/db/pkg/*/${PN}-${PVR}/CONTENTS | grep "obj /etc/gconf/schemas" | sed 's:obj \([^ ]*\) .*:\1:' |while read F; do
74 echo "DEBUG::gconf install ${F}"
75 ${ROOT}/usr/bin/gconftool-2 --makefile-install-rule ${F}
76 done
77 fi
78 # schema installation
61} 79}
62 80
63gnome2_pkg_postinst() { 81gnome2_pkg_postinst() {
64 # No more SCHEMAS variable :) 82 gnome2_gconf_install
65 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
66 export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source`
67 einfo "installing gnome2 gconf schemas"
68 cat ${WORKDIR}/../build-info/CONTENTS | grep "obj /etc/gconf/schemas" | sed 's:obj \([^ ]*\) .*:\1:' |while read F; do
69 echo "DEBUG::gconf install ${F}"
70 /usr/bin/gconftool-2 --makefile-install-rule ${F}
71 done
72 83
73 # schema installation
74
75 if [ -x /usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ] 84 if [ -x ${ROOT}/usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ]
76 then 85 then
77 echo ">>> Updating Scrollkeeper" 86 echo ">>> Updating Scrollkeeper"
78 scrollkeeper-update -p /var/lib/scrollkeeper 87 scrollkeeper-update -p ${ROOT}/var/lib/scrollkeeper
79 fi 88 fi
80} 89}
81 90
82EXPORT_FUNCTIONS src_compile src_install pkg_postinst 91EXPORT_FUNCTIONS src_compile src_install pkg_postinst
83 92

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20