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

Contents of /eclass/mozconfig-3.eclass

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.29 - (show annotations) (download)
Tue Feb 28 05:04:25 2012 UTC (3 years, 2 months ago) by anarchy
Branch: MAIN
Changes since 1.28: +2 -2 lines
Only pass with-branding if bindist build

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.28 2012/02/28 03:49:41 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 virtual/freedesktop-icon-theme
27 alsa? ( media-libs/alsa-lib )
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 if has +crashreporter ${IUSE} ; then
47 mozconfig_use_enable crashreporter
48 fi
49 mozconfig_use_enable dbus
50 mozconfig_use_enable debug
51 mozconfig_use_enable debug tests
52 mozconfig_use_enable debug debugger-info-modeules
53 if has +ipc ${IUSE}; then
54 mozconfig_use_enable ipc
55 fi
56 mozconfig_use_enable libnotify
57 mozconfig_use_enable startup-notification
58 mozconfig_use_enable system-sqlite
59 if use system-sqlite; then
60 mozconfig_annotate '' --with-sqlite-prefix="${EPREFIX}"/usr
61 fi
62 mozconfig_use_enable wifi necko-wifi
63
64 if [[ ${PN} == xulrunner ]] ; then
65 mozconfig_annotate 'mozjs' --enable-shared-js
66 fi
67
68 if has +webm ${IUSE} && use webm; then
69 if ! use alsa; then
70 echo "Enabling alsa support due to webm request"
71 mozconfig_annotate '+webm -alsa' --enable-ogg
72 mozconfig_annotate '+webm -alsa' --enable-wave
73 mozconfig_annotate '+webm' --enable-webm
74 mozconfig_annotate '+webm' --with-system-libvpx="${EPREFIX}"/usr
75 else
76 mozconfig_use_enable webm
77 mozconfig_annotate '+webm' --with-system-libvpx="${EPREFIX}"/usr
78 fi
79 else
80 mozconfig_annotate '' --disable-webm
81 mozconfig_annotate '' --disable-system-libvpx
82 fi
83
84 if use amd64 || use x86 || use arm || use sparc; then
85 mozconfig_annotate '' --enable-tracejit
86 fi
87
88 # These are enabled by default in all mozilla applications
89 mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr
90 mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr
91 mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir)
92 mozconfig_annotate '' --with-system-libevent="${EPREFIX}"/usr
93 mozconfig_annotate '' --enable-system-hunspell
94 mozconfig_annotate '' --disable-gnomevfs
95 mozconfig_annotate '' --disable-gnomeui
96 mozconfig_annotate '' --enable-gio
97 if [[ ${PN} != thunderbird ]] ; then
98 mozconfig_annotate 'places' --enable-storage --enable-places --enable-places_bookmarks
99 mozconfig_annotate '' --enable-oji --enable-mathml
100 mozconfig_annotate 'broken' --disable-mochitest
101 fi
102 }

  ViewVC Help
Powered by ViewVC 1.1.20