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

Diff of /eclass/gnome2.eclass

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

Revision 1.47 Revision 1.50
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
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.47 2005/05/27 23:25:32 foser Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.50 2005/07/06 20:20:03 agriffis 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
9inherit libtool gnome.org debug fdo-mime 9inherit libtool gnome.org debug fdo-mime
10 10
11# Gnome 2 ECLASS 11# Gnome 2 ECLASS
12ECLASS="gnome2"
13INHERITED="$INHERITED $ECLASS" 12INHERITED="$INHERITED $ECLASS"
14 13
15G2CONF="" # extra configure opts passed to econf 14G2CONF="" # extra configure opts passed to econf
16ELTCONF="" # extra options passed to elibtoolize 15ELTCONF="" # extra options passed to elibtoolize
17SCROLLKEEPER_UPDATE="1" # whether to run scrollkeeper for this package 16SCROLLKEEPER_UPDATE="1" # whether to run scrollkeeper for this package
25 24
26 # [ -n "${ELTCONF}" ] && elibtoolize ${ELTCONF} 25 # [ -n "${ELTCONF}" ] && elibtoolize ${ELTCONF}
27 elibtoolize ${ELTCONF} 26 elibtoolize ${ELTCONF}
28 27
29 # doc keyword for gtk-doc 28 # doc keyword for gtk-doc
30 use doc \
31 && G2CONF="${G2CONF} --enable-gtk-doc" \ 29 G2CONF="${G2CONF} $(use_enable doc gtk-doc)"
32 || G2CONF="${G2CONF} --disable-gtk-doc"
33 30
34 econf "$@" ${G2CONF} || die "./configure failure" 31 econf "$@" ${G2CONF} || die "./configure failure"
35 32
36} 33}
37 34
53 50
54 if [ -z "${USE_DESTDIR}" -o "${USE_DESTDIR}" = "0" ]; then 51 if [ -z "${USE_DESTDIR}" -o "${USE_DESTDIR}" = "0" ]; then
55 einstall "scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/" "$@" 52 einstall "scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/" "$@"
56 else 53 else
57 make DESTDIR=${D} \ 54 make DESTDIR=${D} \
58 scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper \
59 "$@" install 55 "$@" install
60 fi 56 fi
61 57
62 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 58 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
63 59
86 if [ -x ${ROOT}/usr/bin/gconftool-2 ] 82 if [ -x ${ROOT}/usr/bin/gconftool-2 ]
87 then 83 then
88 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 84 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
89 export GCONF_CONFIG_SOURCE=`${ROOT}/usr/bin/gconftool-2 --get-default-source` 85 export GCONF_CONFIG_SOURCE=`${ROOT}/usr/bin/gconftool-2 --get-default-source`
90 einfo "Installing GNOME 2 GConf schemas" 86 einfo "Installing GNOME 2 GConf schemas"
91 cat ${ROOT}/var/db/pkg/*/${PN}-${PVR}/CONTENTS | grep "obj /etc/gconf/schemas" | sed 's:obj \([^ ]*\) .*:\1:' |while read F; do 87 grep "obj /etc/gconf/schemas" ${ROOT}/var/db/pkg/*/${PF}/CONTENTS | sed 's:obj \([^ ]*\) .*:\1:' | while read F; do
88 if [ -e "${F}" ]; then
92 # echo "DEBUG::gconf install ${F}" 89 # echo "DEBUG::gconf install ${F}"
93 ${ROOT}/usr/bin/gconftool-2 --makefile-install-rule ${F} 1>/dev/null 90 ${ROOT}/usr/bin/gconftool-2 --makefile-install-rule ${F} 1>/dev/null
91 fi
94 done 92 done
95 fi 93 fi
96 94
97} 95}
98 96

Legend:
Removed from v.1.47  
changed lines
  Added in v.1.50

  ViewVC Help
Powered by ViewVC 1.1.20