/[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.51
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.51 2005/07/06 20:23:20 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"
14 12
15G2CONF="" # extra configure opts passed to econf 13G2CONF="" # extra configure opts passed to econf
16ELTCONF="" # extra options passed to elibtoolize 14ELTCONF="" # extra options passed to elibtoolize
17SCROLLKEEPER_UPDATE="1" # whether to run scrollkeeper for this package 15SCROLLKEEPER_UPDATE="1" # whether to run scrollkeeper for this package
18USE_DESTDIR="" # use make DESTDIR=${D} install rather than einstall 16USE_DESTDIR="" # use make DESTDIR=${D} install rather than einstall
25 23
26 # [ -n "${ELTCONF}" ] && elibtoolize ${ELTCONF} 24 # [ -n "${ELTCONF}" ] && elibtoolize ${ELTCONF}
27 elibtoolize ${ELTCONF} 25 elibtoolize ${ELTCONF}
28 26
29 # doc keyword for gtk-doc 27 # doc keyword for gtk-doc
30 use doc \
31 && G2CONF="${G2CONF} --enable-gtk-doc" \ 28 G2CONF="${G2CONF} $(use_enable doc gtk-doc)"
32 || G2CONF="${G2CONF} --disable-gtk-doc"
33 29
34 econf "$@" ${G2CONF} || die "./configure failure" 30 econf "$@" ${G2CONF} || die "./configure failure"
35 31
36} 32}
37 33
53 49
54 if [ -z "${USE_DESTDIR}" -o "${USE_DESTDIR}" = "0" ]; then 50 if [ -z "${USE_DESTDIR}" -o "${USE_DESTDIR}" = "0" ]; then
55 einstall "scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/" "$@" 51 einstall "scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/" "$@"
56 else 52 else
57 make DESTDIR=${D} \ 53 make DESTDIR=${D} \
58 scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper \
59 "$@" install 54 "$@" install
60 fi 55 fi
61 56
62 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 57 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
63 58
86 if [ -x ${ROOT}/usr/bin/gconftool-2 ] 81 if [ -x ${ROOT}/usr/bin/gconftool-2 ]
87 then 82 then
88 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL 83 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
89 export GCONF_CONFIG_SOURCE=`${ROOT}/usr/bin/gconftool-2 --get-default-source` 84 export GCONF_CONFIG_SOURCE=`${ROOT}/usr/bin/gconftool-2 --get-default-source`
90 einfo "Installing GNOME 2 GConf schemas" 85 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 86 grep "obj /etc/gconf/schemas" ${ROOT}/var/db/pkg/*/${PF}/CONTENTS | sed 's:obj \([^ ]*\) .*:\1:' | while read F; do
87 if [ -e "${F}" ]; then
92 # echo "DEBUG::gconf install ${F}" 88 # echo "DEBUG::gconf install ${F}"
93 ${ROOT}/usr/bin/gconftool-2 --makefile-install-rule ${F} 1>/dev/null 89 ${ROOT}/usr/bin/gconftool-2 --makefile-install-rule ${F} 1>/dev/null
90 fi
94 done 91 done
95 fi 92 fi
96 93
97} 94}
98 95

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

  ViewVC Help
Powered by ViewVC 1.1.20