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

Diff of /eclass/gnome2.eclass

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

Revision 1.38 Revision 1.39
1# Copyright 1999-2003 Gentoo Technologies, Inc. 1# Copyright 1999-2003 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.38 2004/03/24 22:18:05 spider Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.39 2004/04/09 15:49:46 foser Exp $
4# 4#
5# Authors: 5# Authors:
6# Bruce A. Locke <blocke@shivan.org> 6# Bruce A. Locke <blocke@shivan.org>
7# Spidler <spider@gentoo.org> 7# Spidler <spider@gentoo.org>
8 8
18SCROLLKEEPER_UPDATE="1" # whether to run scrollkeeper for this package 18SCROLLKEEPER_UPDATE="1" # whether to run scrollkeeper for this package
19USE_DESTDIR="" # use make DESTDIR=${D} install rather than einstall 19USE_DESTDIR="" # use make DESTDIR=${D} install rather than einstall
20 20
21[ `use debug` ] && G2CONF="${G2CONF} --enable-debug=yes" 21[ `use debug` ] && G2CONF="${G2CONF} --enable-debug=yes"
22 22
23DEPEND=">=sys-apps/sed-4" 23DEPEND="${DEPEND} >=sys-apps/sed-4"
24 24
25gnome2_src_configure() { 25gnome2_src_configure() {
26 elibtoolize ${ELTCONF} 26 elibtoolize ${ELTCONF}
27 # doc keyword for gtk-doc 27 # doc keyword for gtk-doc
28 use doc \ 28 use doc \
79gnome2_gconf_install() { 79gnome2_gconf_install() {
80 if [ -x ${ROOT}/usr/bin/gconftool-2 ] 80 if [ -x ${ROOT}/usr/bin/gconftool-2 ]
81 then 81 then
82 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 82 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
83 export GCONF_CONFIG_SOURCE=`${ROOT}/usr/bin/gconftool-2 --get-default-source` 83 export GCONF_CONFIG_SOURCE=`${ROOT}/usr/bin/gconftool-2 --get-default-source`
84 einfo "Installing GNOME 2 GConf Schemas" 84 einfo "Installing GNOME 2 GConf schemas"
85 cat ${ROOT}/var/db/pkg/*/${PN}-${PVR}/CONTENTS | grep "obj /etc/gconf/schemas" | sed 's:obj \([^ ]*\) .*:\1:' |while read F; do 85 cat ${ROOT}/var/db/pkg/*/${PN}-${PVR}/CONTENTS | grep "obj /etc/gconf/schemas" | sed 's:obj \([^ ]*\) .*:\1:' |while read F; do
86 echo "DEBUG::gconf install ${F}" 86 # echo "DEBUG::gconf install ${F}"
87 ${ROOT}/usr/bin/gconftool-2 --makefile-install-rule ${F} 87 ${ROOT}/usr/bin/gconftool-2 --makefile-install-rule ${F} 1>/dev/null
88 done 88 done
89 echo
90 fi 89 fi
90}
91
92gnome2_gconf_uninstall() {
93
94 if [ -x ${ROOT}/usr/bin/gconftool-2 ]
95 then
96 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
97 export GCONF_CONFIG_SOURCE=`${ROOT}/usr/bin/gconftool-2 --get-default-source`
98 einfo "Uninstalling GNOME 2 GConf schemas"
99 cat ${ROOT}/var/db/pkg/*/${PN}-${PVR}/CONTENTS | grep "obj /etc/gconf/schemas" | sed 's:obj \([^ ]*\) .*:\1:' |while read F; do
100 # echo "DEBUG::gconf install ${F}"
101 ${ROOT}/usr/bin/gconftool-2 --makefile-uninstall-rule ${F} 1>/dev/null
102 done
103 fi
104
91} 105}
92 106
93gnome2_omf_fix() { 107gnome2_omf_fix() {
94 # workaround/patch against omf.make or omf-install/Makefile.in 108 # workaround/patch against omf.make or omf-install/Makefile.in
95 # in order to remove redundant scrollkeeper-updates. 109 # in order to remove redundant scrollkeeper-updates.
127gnome2_pkg_postinst() { 141gnome2_pkg_postinst() {
128 gnome2_gconf_install 142 gnome2_gconf_install
129 gnome2_scrollkeeper_update 143 gnome2_scrollkeeper_update
130} 144}
131 145
146gnome2_pkg_prerm() {
147
148 gnome2_gconf_uninstall
149
150}
151
132gnome2_pkg_postrm() { 152gnome2_pkg_postrm() {
133 gnome2_scrollkeeper_update 153 gnome2_scrollkeeper_update
134} 154}
135 155
136 156
137EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm 157EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_prerm pkg_postrm
138 158
139 159

Legend:
Removed from v.1.38  
changed lines
  Added in v.1.39

  ViewVC Help
Powered by ViewVC 1.1.20