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

Contents of /eclass/mozconfig-3.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.33 - (show annotations) (download)
Sun Dec 9 15:37:12 2012 UTC (20 months, 1 week ago) by axs
Branch: MAIN
Changes since 1.32: +33 -24 lines
updated mozilla eclasses to match mozilla-overlay

1 # Copyright 1999-2012 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.26 2011/11/21 15:29:36 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 if ! $(mozversion_is_new_enough) ; then
45 mozconfig_use_enable alsa ogg
46 mozconfig_use_enable alsa wave
47 mozconfig_use_enable libnotify
48 mozconfig_use_enable debug debugger-info-modules
49 if has +ipc ${IUSE}; then
50 mozconfig_use_enable ipc
51 fi
52 if [[ ${PN} != thunderbird ]] ; then
53 mozconfig_annotate 'places' --enable-storage --enable-places --enable-places_bookmarks
54 mozconfig_annotate '' --enable-oji --enable-mathml
55 mozconfig_annotate 'broken' --disable-mochitest
56 fi
57 if use system-sqlite; then
58 mozconfig_annotate '' --with-sqlite-prefix="${EPREFIX}"/usr
59 fi
60 if use amd64 || use x86 || use arm || use sparc; then
61 mozconfig_annotate '' --enable-tracejit
62 fi
63 fi
64
65 mozconfig_use_enable dbus
66 mozconfig_use_enable debug
67 mozconfig_use_enable debug tests
68 mozconfig_use_enable startup-notification
69 mozconfig_use_enable system-sqlite
70 mozconfig_use_enable wifi necko-wifi
71
72 if $(mozversion_is_new_enough) ; then
73 mozconfig_annotate 'required' --enable-ogg
74 mozconfig_annotate 'required' --enable-wave
75 mozconfig_annotate 'required' --with-system-libvpx
76 elif has +webm ${IUSE} && use webm; then
77 if ! use alsa; then
78 echo "Enabling alsa support due to webm request"
79 mozconfig_annotate '+webm -alsa' --enable-ogg
80 mozconfig_annotate '+webm -alsa' --enable-wave
81 mozconfig_annotate '+webm' --enable-webm
82 mozconfig_annotate '+webm' --with-system-libvpx
83 else
84 mozconfig_use_enable webm
85 mozconfig_annotate '+webm' --with-system-libvpx
86 fi
87 else
88 mozconfig_annotate '' --disable-webm
89 mozconfig_annotate '' --disable-system-libvpx
90 fi
91
92 # Disable webrtc for arches that it doesn't support, bug 444780
93 if $(mozversion_is_new_enough) ; then
94 if ! use x86 && ! use amd64 ; then
95 mozconfig_annotate '' --disable-webrtc
96 fi
97 fi
98
99 # These are enabled by default in all mozilla applications
100 mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr
101 mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr
102 mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir)
103 mozconfig_annotate '' --with-system-libevent="${EPREFIX}"/usr
104 mozconfig_annotate '' --enable-system-hunspell
105 mozconfig_annotate '' --disable-gnomevfs
106 mozconfig_annotate '' --disable-gnomeui
107 mozconfig_annotate '' --enable-gio
108 mozconfig_annotate '' --disable-crashreporter
109 }

  ViewVC Help
Powered by ViewVC 1.1.20