1 |
commit: ab3bb4073c161cee30b3ae33c7428a2c4507fc49 |
2 |
Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jul 6 17:58:24 2014 +0000 |
4 |
Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jul 6 17:59:05 2014 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=ab3bb407 |
7 |
|
8 |
Redesign mozconfig eclass to be better suited to handle esr and testing |
9 |
branch |
10 |
|
11 |
--- |
12 |
eclass/mozconfig-v4.eclass | 80 ++++++++++++++++++++++++++++++++++ |
13 |
www-client/firefox/firefox-30.0.ebuild | 18 ++------ |
14 |
2 files changed, 84 insertions(+), 14 deletions(-) |
15 |
|
16 |
diff --git a/eclass/mozconfig-v4.eclass b/eclass/mozconfig-v4.eclass |
17 |
new file mode 100644 |
18 |
index 0000000..72d66b2 |
19 |
--- /dev/null |
20 |
+++ b/eclass/mozconfig-v4.eclass |
21 |
@@ -0,0 +1,80 @@ |
22 |
+# Copyright 1999-2013 Gentoo Foundation |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+# $Header: $ |
25 |
+# |
26 |
+# mozconfig-v4.eclass: the new mozilla.eclass |
27 |
+ |
28 |
+inherit multilib flag-o-matic mozcoreconf-2 |
29 |
+ |
30 |
+# use-flags common among all mozilla ebuilds |
31 |
+IUSE="dbus debug startup-notification" |
32 |
+ |
33 |
+RDEPEND=">=app-text/hunspell-1.2 |
34 |
+ dev-libs/expat |
35 |
+ >=dev-libs/libevent-1.4.7 |
36 |
+ >=x11-libs/cairo-1.10[X] |
37 |
+ >=x11-libs/gtk+-2.10:2 |
38 |
+ >=x11-libs/pango-1.22.0 |
39 |
+ media-libs/alsa-lib |
40 |
+ virtual/freedesktop-icon-theme |
41 |
+ dbus? ( >=dev-libs/dbus-glib-0.72 ) |
42 |
+ startup-notification? ( >=x11-libs/startup-notification-0.8 ) |
43 |
+ wifi? ( >=sys-apps/dbus-0.60 |
44 |
+ net-wireless/wireless-tools ) |
45 |
+ >=dev-libs/glib-2.26:2" |
46 |
+ |
47 |
+DEPEND="app-arch/zip |
48 |
+ app-arch/unzip |
49 |
+ ${RDEPEND}" |
50 |
+ |
51 |
+mozconfig_config() { |
52 |
+ |
53 |
+ mozconfig_annotate '' --enable-default-toolkit=cairo-gtk2 |
54 |
+ |
55 |
+ if has bindist ${IUSE}; then |
56 |
+ mozconfig_use_enable !bindist official-branding |
57 |
+ if [[ ${PN} == firefox ]] && use bindist ; then |
58 |
+ mozconfig_annotate '' --with-branding=browser/branding/aurora |
59 |
+ fi |
60 |
+ fi |
61 |
+ |
62 |
+ mozconfig_use_enable debug |
63 |
+ mozconfig_use_enable debug tests |
64 |
+ |
65 |
+ if ! use debug ; then |
66 |
+ mozconfig_annotate 'disabled by Gentoo' --disable-debug-symbols |
67 |
+ fi |
68 |
+ |
69 |
+ mozconfig_use_enable startup-notification |
70 |
+ |
71 |
+ if has wifi ${IUSE} && use wifi; then |
72 |
+ if ! use dbus; then |
73 |
+ echo "Enabling dbus support due to wifi request" |
74 |
+ mozconfig_annotate wifi --enable-necko-wifi |
75 |
+ mozconfig_annotate dbus --enable-dbus |
76 |
+ else |
77 |
+ mozconfig_annotate wifi --enable-necko-wifi |
78 |
+ fi |
79 |
+ fi |
80 |
+ |
81 |
+ mozconfig_annotate 'required' --enable-ogg |
82 |
+ mozconfig_annotate 'required' --enable-wave |
83 |
+ |
84 |
+ if has jit ${IUSE}; then |
85 |
+ mozconfig_use_enable jit ion |
86 |
+ mozconfig_use_enable jit yarr-jit |
87 |
+ fi |
88 |
+ |
89 |
+ mozconfig_use_enable dbus |
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 |
+} |
102 |
|
103 |
diff --git a/www-client/firefox/firefox-30.0.ebuild b/www-client/firefox/firefox-30.0.ebuild |
104 |
index 6d823f7..2c33bb9 100644 |
105 |
--- a/www-client/firefox/firefox-30.0.ebuild |
106 |
+++ b/www-client/firefox/firefox-30.0.ebuild |
107 |
@@ -1,6 +1,6 @@ |
108 |
# Copyright 1999-2014 Gentoo Foundation |
109 |
# Distributed under the terms of the GNU General Public License v2 |
110 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/firefox/firefox-28.0.ebuild,v 1.4 2014/04/02 14:03:36 axs Exp $ |
111 |
+# $Header: $ |
112 |
|
113 |
EAPI="5" |
114 |
VIRTUALX_REQUIRED="pgo" |
115 |
@@ -31,7 +31,7 @@ PATCH="${PN}-30.0-patches-0.1" |
116 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/" |
117 |
MOZ_HTTP_URI="http://ftp.mozilla.org/pub/${PN}/releases/" |
118 |
|
119 |
-inherit check-reqs flag-o-matic toolchain-funcs eutils gnome2-utils mozconfig-3 multilib pax-utils fdo-mime autotools virtualx mozlinguas |
120 |
+inherit check-reqs flag-o-matic toolchain-funcs eutils gnome2-utils mozconfig-v4 multilib pax-utils fdo-mime autotools virtualx mozlinguas |
121 |
|
122 |
DESCRIPTION="Firefox Web Browser" |
123 |
HOMEPAGE="http://www.mozilla.com/firefox" |
124 |
@@ -39,12 +39,11 @@ HOMEPAGE="http://www.mozilla.com/firefox" |
125 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
126 |
SLOT="0" |
127 |
LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
128 |
-IUSE="bindist gstreamer hardened +jit +minimal pgo pulseaudio selinux system-cairo system-icu system-jpeg system-sqlite test" |
129 |
+IUSE="bindist gstreamer hardened +jit +minimal pgo pulseaudio selinux system-cairo system-icu system-jpeg system-sqlite test wifi" |
130 |
|
131 |
# More URIs appended below... |
132 |
SRC_URI="${SRC_URI} |
133 |
http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.xz |
134 |
- http://dev.gentoo.org/~nirbheek/mozilla/patchsets/${PATCH}.tar.xz |
135 |
http://dev.gentoo.org/~axs/distfiles/${PATCH}.tar.xz" |
136 |
|
137 |
ASM_DEPEND=">=dev-lang/yasm-1.1" |
138 |
@@ -53,13 +52,12 @@ ASM_DEPEND=">=dev-lang/yasm-1.1" |
139 |
RDEPEND=" |
140 |
>=dev-libs/nss-3.16 |
141 |
>=dev-libs/nspr-4.10.6 |
142 |
- >=dev-libs/glib-2.26:2 |
143 |
>=media-libs/mesa-7.10 |
144 |
>=media-libs/libpng-1.6.7[apng] |
145 |
virtual/libffi |
146 |
gstreamer? ( media-plugins/gst-plugins-meta:1.0[ffmpeg] ) |
147 |
pulseaudio? ( media-sound/pulseaudio ) |
148 |
- system-cairo? ( >=x11-libs/cairo-1.12[X] ) |
149 |
+ system-cairo? ( >=x11-libs/cairo-1.10[X] ) |
150 |
system-icu? ( >=dev-libs/icu-51.1 ) |
151 |
system-jpeg? ( >=media-libs/libjpeg-turbo-1.2.1 ) |
152 |
system-sqlite? ( >=dev-db/sqlite-3.8.3.1:3[secure-delete,debug=] ) |
153 |
@@ -247,8 +245,6 @@ src_configure() { |
154 |
mozconfig_use_with system-jpeg |
155 |
mozconfig_use_with system-icu |
156 |
mozconfig_use_enable system-icu intl-api |
157 |
- # Feature is know to cause problems on hardened |
158 |
- mozconfig_use_enable jit ion |
159 |
|
160 |
# Allow for a proper pgo build |
161 |
if use pgo; then |
162 |
@@ -322,12 +318,6 @@ src_install() { |
163 |
>> "${S}/${obj_dir}/dist/bin/browser/defaults/preferences/all-gentoo.js" \ |
164 |
|| die |
165 |
|
166 |
- if ! use libnotify; then |
167 |
- echo "pref(\"browser.download.manager.showAlertOnComplete\", false);" \ |
168 |
- >> "${S}/${obj_dir}/dist/bin/browser/defaults/preferences/all-gentoo.js" \ |
169 |
- || die |
170 |
- fi |
171 |
- |
172 |
echo "pref(\"extensions.autoDisableScopes\", 3);" >> \ |
173 |
"${S}/${obj_dir}/dist/bin/browser/defaults/preferences/all-gentoo.js" \ |
174 |
|| die |