| 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.12 2002/06/12 00:05:40 spider Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.13 2002/06/12 02:40:00 spider Exp $ |
| 4 | |
4 | |
| 5 | inherit libtool |
5 | inherit libtool |
| 6 | inherit debug |
6 | inherit debug |
| 7 | # Authors: |
7 | # Authors: |
| 8 | # Bruce A. Locke <blocke@shivan.org> |
8 | # Bruce A. Locke <blocke@shivan.org> |
| … | |
… | |
| 45 | dodoc ${DOCS} |
45 | dodoc ${DOCS} |
| 46 | fi |
46 | fi |
| 47 | |
47 | |
| 48 | # only update scrollkeeper if this package needs it |
48 | # only update scrollkeeper if this package needs it |
| 49 | [ -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="1" |
49 | [ -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="1" |
| 50 | |
|
|
| 51 | } |
50 | } |
| 52 | |
51 | |
| 53 | gnome2_pkg_postinst() { |
52 | gnome2_pkg_postinst() { |
| 54 | |
53 | # No more SCHEMAS variable :) |
|
|
54 | export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` |
|
|
55 | |
|
|
56 | cat ${WORKDIR}/../build-info/CONTENTS | grep "obj /etc/gconf/schemas" | sed 's:obj \([^ ]*\) .*:\1:' |while read F; do |
|
|
57 | /usr/bin/gconftool-2 --makefile-install-rule ${F} |
|
|
58 | done |
|
|
59 | |
| 55 | # schema installation |
60 | # schema installation |
| 56 | if [ -n "${SCHEMAS}" ] |
|
|
| 57 | then |
|
|
| 58 | |
|
|
| 59 | # install/update schemas the hard way |
|
|
| 60 | export GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` |
|
|
| 61 | echo ">>> Updating GConf2 Schemas for ${P}" |
|
|
| 62 | for x in $SCHEMAS |
|
|
| 63 | do |
|
|
| 64 | /usr/bin/gconftool-2 --makefile-install-rule \ |
|
|
| 65 | /etc/gconf/schemas/${x} |
|
|
| 66 | done |
|
|
| 67 | fi |
|
|
| 68 | |
61 | |
| 69 | if [ -x /usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ] |
62 | if [ -x /usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ] |
| 70 | then |
63 | then |
| 71 | echo ">>> Updating Scrollkeeper" |
64 | echo ">>> Updating Scrollkeeper" |
| 72 | scrollkeeper-update -p /var/lib/scrollkeeper |
65 | scrollkeeper-update -p /var/lib/scrollkeeper |