/[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.26
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.26 2002/10/20 00:12:06 spider Exp $
4 4
5inherit libtool 5inherit libtool gnome.org
6 6
7if [ -n "$DEBUG" ] 7if [ -n "$DEBUG" ]
8then 8then
9inherit debug 9inherit debug
10fi 10fi
17ECLASS="gnome2" 17ECLASS="gnome2"
18INHERITED="$INHERITED $ECLASS" 18INHERITED="$INHERITED $ECLASS"
19G2CONF="" 19G2CONF=""
20 20
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 28
28gnome2_src_configure() { 29gnome2_src_configure() {
29 elibtoolize ${ELTCONF} 30 elibtoolize ${ELTCONF}
30 # doc keyword for gtk-doc 31 # doc keyword for gtk-doc
31 use doc && G2CONF="${G2CONF} --enable-gtk-doc" || G2CONF="${G2CONF} --disable-gtk-doc" 32 use doc && G2CONF="${G2CONF} --enable-gtk-doc" || G2CONF="${G2CONF} --disable-gtk-doc"
41 42
42} 43}
43 44
44gnome2_src_install() { 45gnome2_src_install() {
45 46
47 # if this is not present, scrollkeeper-update may segfault and
48 # create bogus directories in /var/lib/
49 [ -x ${ROOT}/bin/wc ] && dodir /var/lib/scrollkeeper
50
46 # we must delay gconf schema installation due to sandbox 51 # we must delay gconf schema installation due to sandbox
47 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1" 52 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
48 53
49 einstall " scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}" 54 einstall " scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}"
50 55
54 if [ -n "${DOCS}" ] 59 if [ -n "${DOCS}" ]
55 then 60 then
56 dodoc ${DOCS} 61 dodoc ${DOCS}
57 fi 62 fi
58 63
64 # if empty, remove
65 [ -x ${ROOT}/bin/wc ] && [ `ls -al ${D}/var/lib/scrollkeeper | wc -l` -eq 3 ] && \
66 rm -rf ${D}/var/lib/scrollkeeper
59 # only update scrollkeeper if this package needs it 67 # only update scrollkeeper if this package needs it
60 [ -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="1" 68 [ ! -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="0"
69}
70
71
72gnome2_gconf_install() {
73 if [ -x ${ROOT}/usr/bin/gconftool-2 ]
74 then
75 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
76 export GCONF_CONFIG_SOURCE=`${ROOT}/usr/bin/gconftool-2 --get-default-source`
77 einfo "installing gnome2 gconf schemas"
78 cat ${ROOT}/var/db/pkg/*/${PN}-${PVR}/CONTENTS | grep "obj /etc/gconf/schemas" | sed 's:obj \([^ ]*\) .*:\1:' |while read F; do
79 echo "DEBUG::gconf install ${F}"
80 ${ROOT}/usr/bin/gconftool-2 --makefile-install-rule ${F}
81 done
82 fi
83 # schema installation
61} 84}
62 85
63gnome2_pkg_postinst() { 86gnome2_pkg_postinst() {
64 # No more SCHEMAS variable :) 87 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 88
73 # schema installation
74
75 if [ -x /usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ] 89 if [ -x ${ROOT}/usr/bin/scrollkeeper-update ] && [ "${SCROLLKEEPER_UPDATE}" = "1" ]
76 then 90 then
77 echo ">>> Updating Scrollkeeper" 91 echo ">>> Updating Scrollkeeper"
78 scrollkeeper-update -p /var/lib/scrollkeeper 92 scrollkeeper-update -p ${ROOT}/var/lib/scrollkeeper
79 fi 93 fi
80} 94}
81 95
82EXPORT_FUNCTIONS src_compile src_install pkg_postinst 96EXPORT_FUNCTIONS src_compile src_install pkg_postinst
83 97

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

  ViewVC Help
Powered by ViewVC 1.1.20