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

Contents of /eclass/gnome2.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Jun 1 03:41:55 2002 UTC (12 years, 2 months ago) by blocke
Branch: MAIN
Changes since 1.2: +19 -5 lines
more hacking

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.2 2002/06/01 03:09:29 blocke Exp $
4
5 # Authors:
6 # Bruce A. Locke <blocke@shivan.org>
7 # Spidler <spidler@gentoo.org>
8
9 # Gnome 2 ECLASS
10 ECLASS="gnome2"
11
12 # DEBUG for Beta
13 # Do _NOT_ strip symbols in the build! Need both lines for Portage 1.8.9+
14 DEBUG="yes"
15 RESTRICT="nostrip"
16 # force debug information
17 CFLAGS="${CFLAGS} -g"
18 CXXFLAGS="${CXXFLAGS} -g"
19
20 G2CONF="--enable-debug=yes"
21
22 gnome2_src_compile() {
23
24 use doc && G2CONF="${G2CONF} --enable-gtk-doc" || G2CONF="${G2CONF} --disable-gtk-doc"
25
26 if [ "${LIBTOOL_FIX}" = "1" ]
27 then
28 libtoolize --copy --force
29 fi
30
31 econf ${1} --enable-debug=yes || die "./configure failure"
32 emake || die "compile failure"
33
34 }
35
36 gnome2_src_install() {
37
38 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
39
40 einstall " scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}"
41
42 # manual document installation
43 if [ -n "${DOC}" && use doc ]
44 then
45 dodoc ${DOC}
46 fi
47
48 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
49
50 }
51
52 gnome2_pkg_postinst() {
53
54 # schema installation
55 if [ -n "${SCHEMA}" ]
56 then
57
58 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
59
60 echo ">>> Updating GConf2 Schemas for ${P}"
61 for x in $SCHEMA
62 do
63 /usr/bin/gconftool-2 --makefile-install-rule \
64 /etc/gconf/schemas/${SCHEMA}
65 done
66 fi
67
68 if [ -x /usr/bin/scrollkeeper-update ]
69 then
70 echo ">>> Updating Scrollkeeper"
71 scrollkeeper-update -p /var/lib/scrollkeeper
72 fi
73 }
74
75 EXPORT_FUNCTIONS src_compile src_install pkg_postinst

  ViewVC Help
Powered by ViewVC 1.1.20