1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/mozconfig-2.eclass,v 1.17 2007/03/24 14:52:41 armin76 Exp $
5 # mozconfig.eclass: the new mozilla.eclass
7 inherit multilib flag-o-matic mozcoreconf-minefield
9 IUSE
="debug gnome ipv6 dbus startup-notification"
11 RDEPEND
="x11-libs/libXrender
15 >=media-libs/libpng-1.2.26-r99
19 >=www-client/mozilla-launcher-1.58
22 >=x11-libs/pango-1.10.1
23 >=dev-libs/libIDL-0.8.0
24 gnome? ( >=gnome-base/gnome-vfs-2.16.3
25 >=gnome-base/libgnomeui-2.16.1
26 >=gnome-base/gconf-2.16.0
27 >=gnome-base/libgnome-2.16.0 )
28 dbus? ( >=dev-libs/dbus-glib-0.72 )
29 startup-notification? ( >=x11-libs/startup-notification-0.8 )
30 !<x11-base/xorg-x11-6.7.0-r2
31 >=x11-libs/cairo-1.5.12"
32 #According to bugs #18573, #204520, and couple of others in Mozilla's
33 #bugzilla. libmng and mng support has been removed in 2003.
39 if ${MN} || ${XUL} || ${TB}; then
40 mozconfig_annotate thebes
--enable-default-toolkit=cairo-gtk2
42 mozconfig_annotate
-thebes --enable-default-toolkit=gtk2
44 mozconfig_use_enable ipv6
47 mozconfig-annotate
'' --disable-dbus
49 mozconfig_use_enable startup-notification
52 mozconfig_annotate
+debug \
56 --enable-debugger-info-modules=ALL_MODULES
58 mozconfig_annotate
-debug \
63 # Currently --enable-elf-dynstr-gc only works for x86 and ppc,
64 # thanks to Jason Wever <weeve@gentoo.org> for the fix.
65 if use x86 || use ppc
&& [[ ${enable_optimize} != -O0 ]]; then
66 mozconfig_annotate
"${ARCH} optimized build" --enable-elf-dynstr-gc
71 mozconfig_annotate
-gnome --disable-gnomevfs
72 mozconfig_annotate
-gnome --disable-gnomeui