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

Diff of /eclass/gnome2.eclass

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

Revision 1.21 Revision 1.22
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.21 2002/08/17 20:23:15 azarah Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.22 2002/08/22 19:06:40 azarah Exp $
4 4
5inherit libtool 5inherit libtool
6 6
7if [ -n "$DEBUG" ] 7if [ -n "$DEBUG" ]
8then 8then
41 41
42} 42}
43 43
44gnome2_src_install() { 44gnome2_src_install() {
45 45
46 # if this is not present, scrollkeeper-update may segfault 46 # if this is not present, scrollkeeper-update may segfault and
47 dodir /var/lib/scrollkeeper/scrollkeeper_docs 47 # create bogus directories in /var/lib/
48 [ -x ${ROOT}/bin/wc ] && dodir /var/lib/scrollkeeper
48 49
49 # we must delay gconf schema installation due to sandbox 50 # we must delay gconf schema installation due to sandbox
50 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1" 51 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
51 52
52 einstall " scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}" 53 einstall " scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}"
57 if [ -n "${DOCS}" ] 58 if [ -n "${DOCS}" ]
58 then 59 then
59 dodoc ${DOCS} 60 dodoc ${DOCS}
60 fi 61 fi
61 62
63 # if empty, remove
64 [ -x ${ROOT}/bin/wc ] && [ `ls -al ${D}/var/lib/scrollkeeper | wc -l` -eq 3 ] && \
65 rm -rf ${D}/var/lib/scrollkeeper
62 # only update scrollkeeper if this package needs it 66 # only update scrollkeeper if this package needs it
67 # we cannot use a env variable, as it may get reset when merging
68 # in phases.
63 [ ! -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="0" 69 [ ! -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="0"
64} 70}
65 71
66 72
67gnome2_gconf_install() { 73gnome2_gconf_install() {
79} 85}
80 86
81gnome2_pkg_postinst() { 87gnome2_pkg_postinst() {
82 gnome2_gconf_install 88 gnome2_gconf_install
83 89
84 if [ -x ${ROOT}/usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ] 90 if [ -x ${ROOT}/usr/bin/scrollkeeper-update ] && [ "${SCROLLKEEPER_UPDATE}" = "1" ]
85 then 91 then
86 echo ">>> Updating Scrollkeeper" 92 echo ">>> Updating Scrollkeeper"
87 scrollkeeper-update -p ${ROOT}/var/lib/scrollkeeper 93 scrollkeeper-update -p ${ROOT}/var/lib/scrollkeeper
88 fi 94 fi
89} 95}

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

  ViewVC Help
Powered by ViewVC 1.1.20