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

Contents of /eclass/mozconfig-3.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.32 - (show annotations) (download)
Wed Sep 12 22:52:18 2012 UTC (2 years ago) by anarchy
Branch: MAIN
Changes since 1.31: +2 -1 lines
Disable crashreporter on all mozilla products, bug #433962

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/eclass/mozconfig-3.eclass,v 1.31 2012/07/18 00:22:30 anarchy Exp $
4 #
5 # mozconfig.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="+alsa +dbus debug libnotify startup-notification system-sqlite wifi"
11
12 # XXX: GConf is used for setting the default browser
13 # revisit to make it optional with GNOME 3
14 # pango[X] is needed for pangoxft.h
15 # freedesktop-icon-theme is needed for bug 341697
16 RDEPEND="app-arch/zip
17 app-arch/unzip
18 >=app-text/hunspell-1.2
19 dev-libs/expat
20 >=dev-libs/libIDL-0.8.0
21 >=dev-libs/libevent-1.4.7
22 >=x11-libs/cairo-1.8[X]
23 >=x11-libs/gtk+-2.8.6:2
24 >=x11-libs/pango-1.10.1[X]
25 virtual/jpeg
26 alsa? ( media-libs/alsa-lib )
27 virtual/freedesktop-icon-theme
28 dbus? ( >=dev-libs/dbus-glib-0.72 )
29 libnotify? ( >=x11-libs/libnotify-0.4 )
30 startup-notification? ( >=x11-libs/startup-notification-0.8 )
31 wifi? ( net-wireless/wireless-tools )"
32 DEPEND="${RDEPEND}"
33
34 mozconfig_config() {
35 mozconfig_annotate '' --enable-default-toolkit=cairo-gtk2
36
37 if has bindist ${IUSE}; then
38 mozconfig_use_enable !bindist official-branding
39 if [[ ${PN} == firefox ]] && use bindist ; then
40 mozconfig_annotate '' --with-branding=browser/branding/aurora
41 fi
42 fi
43
44 mozconfig_use_enable alsa ogg
45 mozconfig_use_enable alsa wave
46 mozconfig_use_enable dbus
47 mozconfig_use_enable debug
48 mozconfig_use_enable debug tests
49 mozconfig_use_enable debug debugger-info-modules
50 if has +ipc ${IUSE}; then
51 mozconfig_use_enable ipc
52 fi
53 mozconfig_use_enable libnotify
54 mozconfig_use_enable startup-notification
55 mozconfig_use_enable system-sqlite
56 if use system-sqlite; then
57 mozconfig_annotate '' --with-sqlite-prefix="${EPREFIX}"/usr
58 fi
59 mozconfig_use_enable wifi necko-wifi
60
61 if [[ ${PN} == xulrunner ]] ; then
62 mozconfig_annotate 'mozjs' --enable-shared-js
63 fi
64
65 if has +webm ${IUSE} && use webm; then
66 if ! use alsa; then
67 echo "Enabling alsa support due to webm request"
68 mozconfig_annotate '+webm -alsa' --enable-ogg
69 mozconfig_annotate '+webm -alsa' --enable-wave
70 mozconfig_annotate '+webm' --enable-webm
71 mozconfig_annotate '+webm' --with-system-libvpx
72 else
73 mozconfig_use_enable webm
74 mozconfig_annotate '+webm' --with-system-libvpx
75 fi
76 else
77 mozconfig_annotate '' --disable-webm
78 mozconfig_annotate '' --disable-system-libvpx
79 fi
80
81 if use amd64 || use x86 || use arm || use sparc; then
82 mozconfig_annotate '' --enable-tracejit
83 fi
84
85 # These are enabled by default in all mozilla applications
86 mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr
87 mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr
88 mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir)
89 mozconfig_annotate '' --with-system-libevent="${EPREFIX}"/usr
90 mozconfig_annotate '' --enable-system-hunspell
91 mozconfig_annotate '' --disable-gnomevfs
92 mozconfig_annotate '' --disable-gnomeui
93 mozconfig_annotate '' --enable-gio
94 mozconfig_annotate '' --disable-crashreporter
95 if [[ ${PN} != thunderbird ]] ; then
96 mozconfig_annotate 'places' --enable-storage --enable-places --enable-places_bookmarks
97 mozconfig_annotate '' --enable-oji --enable-mathml
98 mozconfig_annotate 'broken' --disable-mochitest
99 fi
100 }

  ViewVC Help
Powered by ViewVC 1.1.20