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

Contents of /eclass/gnome2.eclass

Parent Directory Parent Directory | Revision Log Revision Log


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

1 blocke 1.1 # Copyright 1999-2002 Gentoo Technologies, Inc.
2     # Distributed under the terms of the GNU General Public License v2
3 blocke 1.3 # $Header: /home/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.2 2002/06/01 03:09:29 blocke Exp $
4 blocke 1.2
5     # Authors:
6     # Bruce A. Locke <blocke@shivan.org>
7     # Spidler <spidler@gentoo.org>
8 blocke 1.1
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 blocke 1.2 G2CONF="--enable-debug=yes"
21 blocke 1.1
22     gnome2_src_compile() {
23    
24 blocke 1.2 use doc && G2CONF="${G2CONF} --enable-gtk-doc" || G2CONF="${G2CONF} --disable-gtk-doc"
25    
26 blocke 1.3 if [ "${LIBTOOL_FIX}" = "1" ]
27 blocke 1.2 then
28     libtoolize --copy --force
29     fi
30 blocke 1.1
31 blocke 1.3 econf ${1} --enable-debug=yes || die "./configure failure"
32 blocke 1.1 emake || die "compile failure"
33    
34     }
35    
36     gnome2_src_install() {
37    
38 blocke 1.3 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL="1"
39    
40     einstall " scrollkeeper_localstate_dir=${D}/var/lib/scrollkeeper/ ${1}"
41 blocke 1.1
42     # manual document installation
43     if [ -n "${DOC}" && use doc ]
44     then
45 blocke 1.2 dodoc ${DOC}
46 blocke 1.1 fi
47    
48 blocke 1.3 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
49    
50 blocke 1.1 }
51    
52     gnome2_pkg_postinst() {
53    
54 blocke 1.3 # schema installation
55 blocke 1.1 if [ -n "${SCHEMA}" ]
56     then
57 blocke 1.3
58     export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
59    
60     echo ">>> Updating GConf2 Schemas for ${P}"
61 blocke 1.1 for x in $SCHEMA
62     do
63     /usr/bin/gconftool-2 --makefile-install-rule \
64     /etc/gconf/schemas/${SCHEMA}
65     done
66 blocke 1.3 fi
67    
68     if [ -x /usr/bin/scrollkeeper-update ]
69     then
70     echo ">>> Updating Scrollkeeper"
71     scrollkeeper-update -p /var/lib/scrollkeeper
72 blocke 1.1 fi
73     }
74    
75 blocke 1.2 EXPORT_FUNCTIONS src_compile src_install pkg_postinst

  ViewVC Help
Powered by ViewVC 1.1.20