| 1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.68 2006/03/29 13:02:27 allanonjl Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.72 2006/06/12 14:40:49 allanonjl Exp $ |
| 4 | |
4 | |
| 5 | # GNOME 2 ECLASS |
5 | # GNOME 2 ECLASS |
| 6 | inherit libtool gnome.org debug fdo-mime eutils |
6 | inherit libtool gnome.org debug fdo-mime eutils |
| 7 | |
7 | |
| 8 | # Extra configure opts passed to econf |
8 | # Extra configure opts passed to econf |
| … | |
… | |
| 24 | SCROLLKEEPER_UPDATE_BIN=${SCROLLKEEPER_UPDATE_BIN:="${ROOT}/usr/bin/scrollkeeper-update"} |
24 | SCROLLKEEPER_UPDATE_BIN=${SCROLLKEEPER_UPDATE_BIN:="${ROOT}/usr/bin/scrollkeeper-update"} |
| 25 | |
25 | |
| 26 | # Path to gconftool-2 |
26 | # Path to gconftool-2 |
| 27 | GCONFTOOL_BIN=${GCONFTOOL_BIN:="${ROOT}/usr/bin/gconftool-2"} |
27 | GCONFTOOL_BIN=${GCONFTOOL_BIN:="${ROOT}/usr/bin/gconftool-2"} |
| 28 | |
28 | |
|
|
29 | if [[ ${GCONF_DEBUG} != "no" ]]; then |
| 29 | IUSE="debug" |
30 | IUSE="debug" |
|
|
31 | fi |
| 30 | |
32 | |
| 31 | DEPEND=">=sys-apps/sed-4 |
33 | DEPEND=">=sys-apps/sed-4" |
| 32 | sys-apps/findutils" |
|
|
| 33 | |
34 | |
| 34 | gnome2_src_unpack() { |
35 | gnome2_src_unpack() { |
| 35 | unpack ${A} |
36 | unpack ${A} |
| 36 | cd ${S} |
37 | cd ${S} |
| 37 | |
38 | |
| … | |
… | |
| 39 | gnome2_omf_fix |
40 | gnome2_omf_fix |
| 40 | } |
41 | } |
| 41 | |
42 | |
| 42 | gnome2_src_configure() { |
43 | gnome2_src_configure() { |
| 43 | # Update the GNOME configuration options |
44 | # Update the GNOME configuration options |
|
|
45 | if [[ ${GCONF_DEBUG} != 'no' ]] ; then |
|
|
46 | if use debug ; then |
| 44 | use debug && G2CONF="${G2CONF} --enable-debug=yes" |
47 | G2CONF="${G2CONF} --enable-debug=yes" |
|
|
48 | fi |
|
|
49 | fi |
| 45 | G2CONF="${G2CONF} $(use_enable doc gtk-doc)" |
50 | G2CONF="${G2CONF} $(use_enable doc gtk-doc)" |
| 46 | |
51 | |
| 47 | # Run libtoolize |
52 | # Run libtoolize |
| 48 | elibtoolize ${ELTCONF} |
53 | elibtoolize ${ELTCONF} |
|
|
54 | |
|
|
55 | # Do not remove the addwrite. bug #128289 |
|
|
56 | addwrite "${ROOT}/root/.gnome2" |
| 49 | |
57 | |
| 50 | # GST_REGISTRY is to work around gst-inspect trying to read/write /root |
58 | # GST_REGISTRY is to work around gst-inspect trying to read/write /root |
| 51 | GST_REGISTRY="${S}/registry.xml" econf "$@" ${G2CONF} || die "configure failed" |
59 | GST_REGISTRY="${S}/registry.xml" econf "$@" ${G2CONF} || die "configure failed" |
| 52 | } |
60 | } |
| 53 | |
61 | |