/[gentoo-x86]/eclass/mozconfig-v4.eclass
Gentoo

Contents of /eclass/mozconfig-v4.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Jul 28 20:59:07 2014 UTC (7 weeks, 3 days ago) by axs
Branch: MAIN
committed new mozconfig eclass for mozilla31 and later

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4 #
5 # mozconfig-v4.eclass: the new mozilla.eclass
6
7 inherit multilib flag-o-matic mozcoreconf-2
8
9 # use-flags common among all mozilla ebuilds
10 IUSE="dbus debug startup-notification"
11
12 RDEPEND=">=app-text/hunspell-1.2
13 dev-libs/expat
14 >=dev-libs/libevent-1.4.7
15 >=x11-libs/cairo-1.10[X]
16 >=x11-libs/gtk+-2.10:2
17 >=x11-libs/pango-1.22.0
18 media-libs/alsa-lib
19 virtual/freedesktop-icon-theme
20 dbus? ( >=dev-libs/dbus-glib-0.72 )
21 startup-notification? ( >=x11-libs/startup-notification-0.8 )
22 wifi? ( >=sys-apps/dbus-0.60
23 net-wireless/wireless-tools )
24 >=dev-libs/glib-2.26:2"
25
26 DEPEND="app-arch/zip
27 app-arch/unzip
28 ${RDEPEND}"
29
30 mozconfig_config() {
31
32 mozconfig_annotate '' --enable-default-toolkit=cairo-gtk2
33
34 if has bindist ${IUSE}; then
35 mozconfig_use_enable !bindist official-branding
36 if [[ ${PN} == firefox ]] && use bindist ; then
37 mozconfig_annotate '' --with-branding=browser/branding/aurora
38 fi
39 fi
40
41 mozconfig_use_enable debug
42 mozconfig_use_enable debug tests
43
44 if ! use debug ; then
45 mozconfig_annotate 'disabled by Gentoo' --disable-debug-symbols
46 fi
47
48 mozconfig_use_enable startup-notification
49
50 if has wifi ${IUSE} && use wifi; then
51 if ! use dbus; then
52 echo "Enabling dbus support due to wifi request"
53 mozconfig_annotate wifi --enable-necko-wifi
54 mozconfig_annotate dbus --enable-dbus
55 else
56 mozconfig_annotate wifi --enable-necko-wifi
57 fi
58 fi
59
60 mozconfig_annotate 'required' --enable-ogg
61 mozconfig_annotate 'required' --enable-wave
62
63 if has jit ${IUSE}; then
64 mozconfig_use_enable jit ion
65 mozconfig_use_enable jit yarr-jit
66 fi
67
68 mozconfig_use_enable dbus
69
70 # These are enabled by default in all mozilla applications
71 mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr
72 mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr
73 mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir)
74 mozconfig_annotate '' --with-system-libevent="${EPREFIX}"/usr
75 mozconfig_annotate '' --enable-system-hunspell
76 mozconfig_annotate '' --disable-gnomevfs
77 mozconfig_annotate '' --disable-gnomeui
78 mozconfig_annotate '' --enable-gio
79 mozconfig_annotate '' --disable-crashreporter
80 }

  ViewVC Help
Powered by ViewVC 1.1.20