/[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.20
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.20 2002/08/05 21:19:52 spider 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"
55 then 55 then
56 dodoc ${DOCS} 56 dodoc ${DOCS}
57 fi 57 fi
58 58
59 # only update scrollkeeper if this package needs it 59 # only update scrollkeeper if this package needs it
60 [ -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="1" 60 [ ! -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="0"
61}
62
63
64gnome2_gconf_install() {
65 if [ -x ${ROOT}/usr/bin/gconftool-2 ]
66 then
67 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
68 export GCONF_CONFIG_SOURCE=`${ROOT}/usr/bin/gconftool-2 --get-default-source`
69 einfo "installing gnome2 gconf schemas"
70 cat ${ROOT}/var/db/pkg/*/${PN}-${PVR}/CONTENTS | grep "obj /etc/gconf/schemas" | sed 's:obj \([^ ]*\) .*:\1:' |while read F; do
71 echo "DEBUG::gconf install ${F}"
72 ${ROOT}/usr/bin/gconftool-2 --makefile-install-rule ${F}
73 done
74 fi
75 # schema installation
61} 76}
62 77
63gnome2_pkg_postinst() { 78gnome2_pkg_postinst() {
64 # No more SCHEMAS variable :) 79 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 80
73 # schema installation
74
75 if [ -x /usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ] 81 if [ -x ${ROOT}/usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ]
76 then 82 then
77 echo ">>> Updating Scrollkeeper" 83 echo ">>> Updating Scrollkeeper"
78 scrollkeeper-update -p /var/lib/scrollkeeper 84 scrollkeeper-update -p ${ROOT}/var/lib/scrollkeeper
79 fi 85 fi
80} 86}
81 87
82EXPORT_FUNCTIONS src_compile src_install pkg_postinst 88EXPORT_FUNCTIONS src_compile src_install pkg_postinst
83 89

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

  ViewVC Help
Powered by ViewVC 1.1.20