| 1 |
# Copyright 1999-2002 Gentoo Technologies, Inc.
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /home/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.11 2002/06/11 21:27:15 spider Exp $
|
| 4 |
|
| 5 |
inherit libtool
|
| 6 |
inherit debug
|
| 7 |
# Authors:
|
| 8 |
# Bruce A. Locke <blocke@shivan.org>
|
| 9 |
# Spidler <spidler@gentoo.org>
|
| 10 |
|
| 11 |
# Gnome 2 ECLASS
|
| 12 |
ECLASS="gnome2"
|
| 13 |
|
| 14 |
G2CONF="--enable-debug=yes"
|
| 15 |
SCROLLKEEPER_UPDATE="0"
|
| 16 |
|
| 17 |
gnome2_src_configure() {
|
| 18 |
elibtoolize
|
| 19 |
# doc keyword for gtk-doc
|
| 20 |
use doc && G2CONF="${G2CONF} --enable-gtk-doc" || G2CONF="${G2CONF} --disable-gtk-doc"
|
| 21 |
|
| 22 |
econf ${1} ${G2CONF} || die "./configure failure"
|
| 23 |
|
| 24 |
}
|
| 25 |
|
| 26 |
gnome2_src_compile() {
|
| 27 |
|
| 28 |
gnome2_src_configure ${1}
|
| 29 |
emake || die "compile failure"
|
| 30 |
|
| 31 |
}
|
| 32 |
|
| 33 |
gnome2_src_install() {
|
| 34 |
|
| 35 |
# we must delay gconf schema installation due to sandbox
|
| 36 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
|
| 37 |
|
| 38 |
einstall " scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}"
|
| 39 |
|
| 40 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
|
| 41 |
|
| 42 |
# manual document installation
|
| 43 |
if [ -n "${DOCS}" ]
|
| 44 |
then
|
| 45 |
dodoc ${DOCS}
|
| 46 |
fi
|
| 47 |
|
| 48 |
# only update scrollkeeper if this package needs it
|
| 49 |
[ -d ${D}/var/lib/scrollkeeper ] && SCROLLKEEPER_UPDATE="1"
|
| 50 |
|
| 51 |
}
|
| 52 |
|
| 53 |
gnome2_pkg_postinst() {
|
| 54 |
|
| 55 |
# 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 |
|
| 69 |
if [ -x /usr/bin/scrollkeeper-update ] && [ SCROLLKEEPER_UPDATE = "1" ]
|
| 70 |
then
|
| 71 |
echo ">>> Updating Scrollkeeper"
|
| 72 |
scrollkeeper-update -p /var/lib/scrollkeeper
|
| 73 |
fi
|
| 74 |
}
|
| 75 |
|
| 76 |
EXPORT_FUNCTIONS src_compile src_install pkg_postinst
|
| 77 |
|
| 78 |
|