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

Contents of /eclass/gnome2.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Jun 1 03:09:29 2002 UTC (12 years, 6 months ago) by blocke
Branch: MAIN
Changes since 1.1: +14 -4 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.1 2002/06/01 02:55:47 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} -eq 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 einstall ${1}
39
40 # manual document installation
41 if [ -n "${DOC}" && use doc ]
42 then
43 dodoc ${DOC}
44 fi
45
46 }
47
48 gnome2_pkg_postinst() {
49
50 # manual schema installation
51 if [ -n "${SCHEMA}" ]
52 then
53 for x in $SCHEMA
54 do
55 /usr/bin/gconftool-2 --makefile-install-rule \
56 /etc/gconf/schemas/${SCHEMA}
57 done
58 fi
59 }
60
61 EXPORT_FUNCTIONS src_compile src_install pkg_postinst

  ViewVC Help
Powered by ViewVC 1.1.20