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

Contents of /eclass/mozconfig-3.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.35 - (show annotations) (download)
Sun Mar 24 19:08:58 2013 UTC (2 years, 5 months ago) by anarchy
Branch: MAIN
Changes since 1.34: +2 -3 lines
Cleanup of obsolete options, address bug #446662,460592

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.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/libevent-1.4.7
21 >=x11-libs/cairo-1.8[X]
22 >=x11-libs/gtk+-2.8.6:2
23 >=x11-libs/pango-1.10.1[X]
24 virtual/jpeg
25 alsa? ( media-libs/alsa-lib )
26 virtual/freedesktop-icon-theme
27 dbus? ( >=dev-libs/dbus-glib-0.72 )
28 libnotify? ( >=x11-libs/libnotify-0.4 )
29 startup-notification? ( >=x11-libs/startup-notification-0.8 )
30 wifi? ( net-wireless/wireless-tools )"
31 DEPEND="${RDEPEND}"
32
33 mozconfig_config() {
34 mozconfig_annotate '' --enable-default-toolkit=cairo-gtk2
35
36 if has bindist ${IUSE}; then
37 mozconfig_use_enable !bindist official-branding
38 if [[ ${PN} == firefox ]] && use bindist ; then
39 mozconfig_annotate '' --with-branding=browser/branding/aurora
40 fi
41 fi
42
43 if ! $(mozversion_is_new_enough) ; then
44 mozconfig_use_enable alsa ogg
45 mozconfig_use_enable alsa wave
46 mozconfig_use_enable libnotify
47 mozconfig_use_enable debug debugger-info-modules
48 if has +ipc ${IUSE}; then
49 mozconfig_use_enable ipc
50 fi
51 if [[ ${PN} != thunderbird ]] ; then
52 mozconfig_annotate 'places' --enable-storage --enable-places --enable-places_bookmarks
53 mozconfig_annotate '' --enable-oji --enable-mathml
54 mozconfig_annotate 'broken' --disable-mochitest
55 fi
56 if use system-sqlite; then
57 mozconfig_annotate '' --with-sqlite-prefix="${EPREFIX}"/usr
58 fi
59 if use amd64 || use x86 || use arm || use sparc; then
60 mozconfig_annotate '' --enable-tracejit
61 fi
62 fi
63
64 mozconfig_use_enable dbus
65 mozconfig_use_enable debug
66 mozconfig_use_enable debug tests
67 mozconfig_use_enable startup-notification
68 mozconfig_use_enable system-sqlite
69 mozconfig_use_enable wifi necko-wifi
70
71 if $(mozversion_is_new_enough) ; then
72 mozconfig_annotate 'required' --enable-ogg
73 mozconfig_annotate 'required' --enable-wave
74 mozconfig_annotate 'required' --with-system-libvpx
75 elif has +webm ${IUSE} && use webm; then
76 if ! use alsa; then
77 echo "Enabling alsa support due to webm request"
78 mozconfig_annotate '+webm -alsa' --enable-ogg
79 mozconfig_annotate '+webm -alsa' --enable-wave
80 mozconfig_annotate '+webm' --enable-webm
81 mozconfig_annotate '+webm' --with-system-libvpx
82 else
83 mozconfig_use_enable webm
84 mozconfig_annotate '+webm' --with-system-libvpx
85 fi
86 else
87 mozconfig_annotate '' --disable-webm
88 mozconfig_annotate '' --disable-system-libvpx
89 fi
90
91 # These are enabled by default in all mozilla applications
92 mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr
93 mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr
94 mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir)
95 mozconfig_annotate '' --with-system-libevent="${EPREFIX}"/usr
96 mozconfig_annotate '' --enable-system-hunspell
97 mozconfig_annotate '' --disable-gnomevfs
98 mozconfig_annotate '' --disable-gnomeui
99 mozconfig_annotate '' --enable-gio
100 mozconfig_annotate '' --disable-crashreporter
101 }

  ViewVC Help
Powered by ViewVC 1.1.20