renamed (again, lol) amuleadu ebuild
[dottout.git] / eclass / mozconfig-minefield.eclass
blob5d7cd807f85c8698761d8495a19a1be4da66664a
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
12 x11-libs/libXt
13 x11-libs/libXmu
14 >=media-libs/jpeg-6b
15 >=media-libs/libpng-1.2.26-r99
16 dev-libs/expat
17 app-arch/zip
18 app-arch/unzip
19 >=www-client/mozilla-launcher-1.58
20 >=x11-libs/gtk+-2.8.6
21 >=dev-libs/glib-2.8.2
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.
36 DEPEND="${RDEPEND}"
38 mozconfig_config() {
39 if ${MN} || ${XUL} || ${TB}; then
40 mozconfig_annotate thebes --enable-default-toolkit=cairo-gtk2
41 else
42 mozconfig_annotate -thebes --enable-default-toolkit=gtk2
44 mozconfig_use_enable ipv6
46 if ! use dbus; then
47 mozconfig-annotate '' --disable-dbus
49 mozconfig_use_enable startup-notification
51 if use debug; then
52 mozconfig_annotate +debug \
53 --enable-debug \
54 --enable-tests \
55 --disable-reorder \
56 --enable-debugger-info-modules=ALL_MODULES
57 else
58 mozconfig_annotate -debug \
59 --disable-debug \
60 --disable-tests \
61 --enable-reorder \
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
70 if ! use gnome; then
71 mozconfig_annotate -gnome --disable-gnomevfs
72 mozconfig_annotate -gnome --disable-gnomeui