diff options
author | D.M.D. Ljungmark <spider@gentoo.org> | 2002-08-05 21:19:52 +0000 |
---|---|---|
committer | D.M.D. Ljungmark <spider@gentoo.org> | 2002-08-05 21:19:52 +0000 |
commit | df7fec3e0324fa5f0210b806873ecd8647fc3a15 (patch) | |
tree | dc744b599d213ff7b208b0e9bf0d7e925956d45e /eclass | |
parent | changed from bonobo to bonoboui (diff) | |
download | historical-df7fec3e0324fa5f0210b806873ecd8647fc3a15.tar.gz historical-df7fec3e0324fa5f0210b806873ecd8647fc3a15.tar.bz2 historical-df7fec3e0324fa5f0210b806873ecd8647fc3a15.zip |
changes to make binary packages install schemas
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/gnome2.eclass | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/eclass/gnome2.eclass b/eclass/gnome2.eclass index 4022420bbf86..e3d0b2947e05 100644 --- a/eclass/gnome2.eclass +++ b/eclass/gnome2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.19 2002/07/18 13:08:37 spider Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.20 2002/08/05 21:19:52 spider Exp $ inherit libtool @@ -23,7 +23,7 @@ if [ -n "$DEBUG" ]; then fi ELTCONF="" -SCROLLKEEPER_UPDATE="0" +SCROLLKEEPER_UPDATE="1" gnome2_src_configure() { elibtoolize ${ELTCONF} @@ -57,25 +57,31 @@ gnome2_src_install() { fi # only update scrollkeeper if this package needs it - [ -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="1" + [ ! -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="0" } -gnome2_pkg_postinst() { - # No more SCHEMAS variable :) - unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL - export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` - einfo "installing gnome2 gconf schemas" - cat ${WORKDIR}/../build-info/CONTENTS | grep "obj /etc/gconf/schemas" | sed 's:obj \([^ ]*\) .*:\1:' |while read F; do - echo "DEBUG::gconf install ${F}" - /usr/bin/gconftool-2 --makefile-install-rule ${F} - done - + +gnome2_gconf_install() { + if [ -x ${ROOT}/usr/bin/gconftool-2 ] + then + unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL + export GCONF_CONFIG_SOURCE=`${ROOT}/usr/bin/gconftool-2 --get-default-source` + einfo "installing gnome2 gconf schemas" + cat ${ROOT}/var/db/pkg/*/${PN}-${PVR}/CONTENTS | grep "obj /etc/gconf/schemas" | sed 's:obj \([^ ]*\) .*:\1:' |while read F; do + echo "DEBUG::gconf install ${F}" + ${ROOT}/usr/bin/gconftool-2 --makefile-install-rule ${F} + done + fi # schema installation +} - if [ -x /usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ] +gnome2_pkg_postinst() { + gnome2_gconf_install + + if [ -x ${ROOT}/usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ] then echo ">>> Updating Scrollkeeper" - scrollkeeper-update -p /var/lib/scrollkeeper + scrollkeeper-update -p ${ROOT}/var/lib/scrollkeeper fi } |