1 | # Copyright 1999-2006 Gentoo Foundation |
1 | # Copyright 1999-2006 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.80 2007/01/04 23:37:26 compnerd Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/gnome2.eclass,v 1.81 2007/02/05 05:39:14 compnerd Exp $ |
4 | |
4 | |
5 | # |
5 | # |
6 | # gnome2.eclass |
6 | # gnome2.eclass |
7 | # |
7 | # |
8 | # Exports portage base functions used by ebuilds written for packages using the |
8 | # Exports portage base functions used by ebuilds written for packages using the |
… | |
… | |
14 | |
14 | |
15 | inherit fdo-mime libtool gnome.org gnome2-utils |
15 | inherit fdo-mime libtool gnome.org gnome2-utils |
16 | |
16 | |
17 | |
17 | |
18 | # Extra configure opts passed to econf |
18 | # Extra configure opts passed to econf |
19 | G2CONF=${G2CONF:=""} |
19 | G2CONF=${G2CONF:-""} |
20 | |
20 | |
21 | # Extra options passed to elibtoolize |
21 | # Extra options passed to elibtoolize |
22 | ELTCONF=${ELTCONF:=""} |
22 | ELTCONF=${ELTCONF:-""} |
23 | |
23 | |
24 | # Should we use EINSTALL instead of DESTDIR |
24 | # Should we use EINSTALL instead of DESTDIR |
25 | USE_EINSTALL=${USE_EINSTALL:=""} |
25 | USE_EINSTALL=${USE_EINSTALL:-""} |
26 | |
26 | |
27 | # Run scrollkeeper for this package? |
27 | # Run scrollkeeper for this package? |
28 | SCROLLKEEPER_UPDATE=${SCROLLKEEPER_UPDATE:="1"} |
28 | SCROLLKEEPER_UPDATE=${SCROLLKEEPER_UPDATE:-"1"} |
29 | |
29 | |
30 | |
30 | |
31 | |
31 | |
32 | if [[ ${GCONF_DEBUG} != "no" ]]; then |
32 | if [[ ${GCONF_DEBUG} != "no" ]]; then |
33 | IUSE="debug" |
33 | IUSE="debug" |
… | |
… | |
39 | unpack ${A} |
39 | unpack ${A} |
40 | cd ${S} |
40 | cd ${S} |
41 | |
41 | |
42 | # Prevent scrollkeeper access violations |
42 | # Prevent scrollkeeper access violations |
43 | gnome2_omf_fix |
43 | gnome2_omf_fix |
|
|
44 | |
|
|
45 | # Run libtoolize |
|
|
46 | elibtoolize ${ELTCONF} |
44 | } |
47 | } |
45 | |
48 | |
46 | gnome2_src_configure() { |
49 | gnome2_src_configure() { |
47 | # Update the GNOME configuration options |
50 | # Update the GNOME configuration options |
48 | if [[ ${GCONF_DEBUG} != 'no' ]] ; then |
51 | if [[ ${GCONF_DEBUG} != 'no' ]] ; then |
… | |
… | |
53 | |
56 | |
54 | # Prevent a QA warning |
57 | # Prevent a QA warning |
55 | if hasq doc ${IUSE} ; then |
58 | if hasq doc ${IUSE} ; then |
56 | G2CONF="${G2CONF} $(use_enable doc gtk-doc)" |
59 | G2CONF="${G2CONF} $(use_enable doc gtk-doc)" |
57 | fi |
60 | fi |
58 | |
|
|
59 | # Run libtoolize |
|
|
60 | elibtoolize ${ELTCONF} |
|
|
61 | |
61 | |
62 | # Avoid sandbox violations caused by misbehaving packages (bug #128289) |
62 | # Avoid sandbox violations caused by misbehaving packages (bug #128289) |
63 | addwrite "${ROOT}root/.gnome2" |
63 | addwrite "${ROOT}root/.gnome2" |
64 | |
64 | |
65 | # GST_REGISTRY is to work around gst-inspect trying to read/write /root |
65 | # GST_REGISTRY is to work around gst-inspect trying to read/write /root |