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