Gentoo Archives: gentoo-commits

From: "Jory Pratt (anarchy)" <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/mozilla-firefox: mozilla-firefox-3.6.3.ebuild ChangeLog
Date: Mon, 05 Apr 2010 05:09:27
Message-Id: E1NyeYt-0003fk-BN@stork.gentoo.org
1 anarchy 10/04/05 05:09:23
2
3 Modified: ChangeLog
4 Added: mozilla-firefox-3.6.3.ebuild
5 Log:
6 Security Bump
7 (Portage version: 2.1.8.3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.606 www-client/mozilla-firefox/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?rev=1.606&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?rev=1.606&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/ChangeLog?r1=1.605&r2=1.606
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v
19 retrieving revision 1.605
20 retrieving revision 1.606
21 diff -u -r1.605 -r1.606
22 --- ChangeLog 24 Mar 2010 12:51:04 -0000 1.605
23 +++ ChangeLog 5 Apr 2010 05:09:23 -0000 1.606
24 @@ -1,6 +1,11 @@
25 # ChangeLog for www-client/mozilla-firefox
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.605 2010/03/24 12:51:04 nirbheek Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/ChangeLog,v 1.606 2010/04/05 05:09:23 anarchy Exp $
29 +
30 +*mozilla-firefox-3.6.3 (05 Apr 2010)
31 +
32 + 05 Apr 2010; <anarchy@g.o> +mozilla-firefox-3.6.3.ebuild:
33 + Security Bump
34
35 *mozilla-firefox-3.6.2 (24 Mar 2010)
36
37
38
39
40 1.1 www-client/mozilla-firefox/mozilla-firefox-3.6.3.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.6.3.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.6.3.ebuild?rev=1.1&content-type=text/plain
44
45 Index: mozilla-firefox-3.6.3.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox/mozilla-firefox-3.6.3.ebuild,v 1.1 2010/04/05 05:09:23 anarchy Exp $
50 EAPI="2"
51 WANT_AUTOCONF="2.1"
52
53 inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib pax-utils fdo-mime autotools mozextension java-pkg-opt-2
54
55 LANGS="af ar as be bg bn-BD bn-IN ca cs cy da de el en en-GB en-US eo es-AR
56 es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gl gu-IN he hi-IN hr hu id is it ja
57 ka kk kn ko ku lt lv mk ml mr nb-NO nl nn-NO oc or pa-IN pl pt-BR pt-PT rm ro ru
58 si sk sl sq sr sv-SE ta ta-LK te th tr uk vi zh-CN zh-TW"
59 NOSHORTLANGS="en-GB es-AR es-CL es-MX pt-BR zh-CN zh-TW"
60
61 MAJ_XUL_PV="1.9.2"
62 MAJ_PV="${PV/_*/}" # Without the _rc and _beta stuff
63 DESKTOP_PV="3.6"
64 MY_PV="${PV/_rc/rc}" # Handle beta for SRC_URI
65 XUL_PV="${MAJ_XUL_PV}${MAJ_PV/${DESKTOP_PV}/}" # Major + Minor version no.s
66 PATCH="${PN}-3.6-patches-0.6"
67
68 DESCRIPTION="Firefox Web Browser"
69 HOMEPAGE="http://www.mozilla.com/firefox"
70
71 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
72 SLOT="0"
73 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
74 IUSE="+alsa bindist java libnotify system-sqlite wifi"
75
76 REL_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases"
77 SRC_URI="${REL_URI}/${MY_PV}/source/firefox-${MY_PV}.source.tar.bz2
78 http://dev.gentoo.org/~anarchy/dist/${PATCH}.tar.bz2"
79
80 for X in ${LANGS} ; do
81 if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
82 SRC_URI="${SRC_URI}
83 linguas_${X/-/_}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )"
84 fi
85 IUSE="${IUSE} linguas_${X/-/_}"
86 # english is handled internally
87 if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
88 if [ "${X}" != "en-US" ]; then
89 SRC_URI="${SRC_URI}
90 linguas_${X%%-*}? ( ${REL_URI}/${PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )"
91 fi
92 IUSE="${IUSE} linguas_${X%%-*}"
93 fi
94 done
95
96 RDEPEND="
97 >=sys-devel/binutils-2.16.1
98 >=dev-libs/nss-3.12.4
99 >=dev-libs/nspr-4.8
100 >=app-text/hunspell-1.2
101 system-sqlite? ( >=dev-db/sqlite-3.6.22-r2[fts3,secure-delete] )
102 alsa? ( media-libs/alsa-lib )
103 >=x11-libs/cairo-1.8.8[X]
104 x11-libs/pango[X]
105 wifi? ( net-wireless/wireless-tools )
106 libnotify? ( >=x11-libs/libnotify-0.4 )
107 ~net-libs/xulrunner-${XUL_PV}[java=,wifi=,libnotify=,system-sqlite=]"
108
109 DEPEND="${RDEPEND}
110 java? ( >=virtual/jdk-1.4 )
111 dev-util/pkgconfig"
112
113 RDEPEND="${RDEPEND} java? ( >=virtual/jre-1.4 )"
114
115 S="${WORKDIR}/mozilla-1.9.2"
116
117 QA_PRESTRIPPED="usr/$(get_libdir)/${PN}/firefox"
118
119 linguas() {
120 local LANG SLANG
121 for LANG in ${LINGUAS}; do
122 if has ${LANG} en en_US; then
123 has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
124 continue
125 elif has ${LANG} ${LANGS//-/_}; then
126 has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
127 continue
128 elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
129 for X in ${LANGS}; do
130 if [[ "${X}" == "${LANG}-"* ]] && \
131 [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
132 has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
133 continue 2
134 fi
135 done
136 fi
137 ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA"
138 done
139 }
140
141 pkg_setup() {
142 # Ensure we always build with C locale.
143 export LANG="C"
144 export LC_ALL="C"
145 export LC_MESSAGES="C"
146 export LC_CTYPE="C"
147
148 if ! use bindist ; then
149 einfo
150 elog "You are enabling official branding. You may not redistribute this build"
151 elog "to any users on your network or the internet. Doing so puts yourself into"
152 elog "a legal problem with Mozilla Foundation"
153 elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag"
154 fi
155
156 java-pkg-opt-2_pkg_setup
157 }
158
159 src_unpack() {
160 unpack firefox-${MY_PV}.source.tar.bz2 ${PATCH}.tar.bz2
161
162 linguas
163 for X in ${linguas}; do
164 # FIXME: Add support for unpacking xpis to portage
165 [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi"
166 done
167 }
168
169 src_prepare() {
170 # Apply our patches
171 EPATCH_SUFFIX="patch" \
172 EPATCH_FORCE="yes" \
173 epatch "${WORKDIR}"
174
175 # Fix media build failure
176 epatch "${FILESDIR}/xulrunner-1.9.2-noalsa-fixup.patch"
177
178 # Fix broken alignment
179 epatch "${FILESDIR}/1000_fix_alignment.patch"
180
181 eautoreconf
182
183 cd js/src
184 eautoreconf
185 }
186
187 src_configure() {
188 MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
189 MEXTENSIONS="default"
190
191 ####################################
192 #
193 # mozconfig, CFLAGS and CXXFLAGS setup
194 #
195 ####################################
196
197 mozconfig_init
198 mozconfig_config
199
200 # It doesn't compile on alpha without this LDFLAGS
201 use alpha && append-ldflags "-Wl,--no-relax"
202
203 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
204 mozconfig_annotate '' --enable-application=browser
205 mozconfig_annotate '' --disable-mailnews
206 mozconfig_annotate 'broken' --disable-crashreporter
207 mozconfig_annotate '' --enable-image-encoder=all
208 mozconfig_annotate '' --enable-canvas
209 mozconfig_annotate 'gtk' --enable-default-toolkit=cairo-gtk2
210 # Bug 60668: Galeon doesn't build without oji enabled, so enable it
211 # regardless of java setting.
212 mozconfig_annotate '' --enable-oji --enable-mathml
213 mozconfig_annotate 'places' --enable-storage --enable-places
214 mozconfig_annotate '' --enable-safe-browsing
215
216 # Build mozdevelop permately
217 mozconfig_annotate '' --enable-jsd --enable-xpctools
218
219 # System-wide install specs
220 mozconfig_annotate '' --disable-installer
221 mozconfig_annotate '' --disable-updater
222 mozconfig_annotate '' --disable-strip
223 mozconfig_annotate '' --disable-install-strip
224
225 # Use system libraries
226 mozconfig_annotate '' --enable-system-cairo
227 mozconfig_annotate '' --enable-system-hunspell
228 mozconfig_annotate '' --with-system-nspr
229 mozconfig_annotate '' --with-system-nss
230 mozconfig_annotate '' --enable-system-lcms
231 mozconfig_annotate '' --with-system-bz2
232 mozconfig_annotate '' --with-system-libxul
233 mozconfig_annotate '' --with-libxul-sdk=/usr/$(get_libdir)/xulrunner-devel-${MAJ_XUL_PV}
234
235 mozconfig_use_enable libnotify
236 mozconfig_use_enable java javaxpcom
237 mozconfig_use_enable wifi necko-wifi
238 mozconfig_use_enable alsa ogg
239 mozconfig_use_enable alsa wave
240 mozconfig_use_enable system-sqlite
241 mozconfig_use_enable !bindist official-branding
242
243 # Other ff-specific settings
244 mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
245
246 # Finalize and report settings
247 mozconfig_final
248
249 if [[ $(gcc-major-version) -lt 4 ]]; then
250 append-cxxflags -fno-stack-protector
251 fi
252
253 ####################################
254 #
255 # Configure and build
256 #
257 ####################################
258
259 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" econf
260 }
261
262 src_compile() {
263 # Should the build use multiprocessing? Not enabled by default, as it tends to break
264 [ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1"
265 emake ${jobs} || die
266 }
267
268 src_install() {
269 MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
270
271 emake DESTDIR="${D}" install || die "emake install failed"
272
273 linguas
274 for X in ${linguas}; do
275 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}"
276 done
277
278 # Install icon and .desktop for menu entry
279 if ! use bindist ; then
280 newicon "${S}"/other-licenses/branding/firefox/content/icon48.png firefox-icon.png
281 newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5.desktop \
282 ${PN}-${DESKTOP_PV}.desktop
283 else
284 newicon "${S}"/browser/branding/unofficial/content/icon48.png firefox-icon-unbranded.png
285 newmenu "${FILESDIR}"/icon/mozilla-firefox-1.5-unbranded.desktop \
286 ${PN}-${DESKTOP_PV}.desktop
287 sed -i -e "s:Bon Echo:Namoroka:" \
288 "${D}"/usr/share/applications/${PN}-${DESKTOP_PV}.desktop || die "sed failed!"
289 fi
290
291 # Add StartupNotify=true bug 237317
292 if use startup-notification ; then
293 echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}-${DESKTOP_PV}.desktop
294 fi
295
296 pax-mark m "${D}"/${MOZILLA_FIVE_HOME}/firefox
297
298 # Enable very specific settings not inherited from xulrunner
299 cp "${FILESDIR}"/firefox-default-prefs.js \
300 "${D}/${MOZILLA_FIVE_HOME}/defaults/preferences/all-gentoo.js" || \
301 die "failed to cp firefox-default-prefs.js"
302
303 # Plugins dir
304 dosym ../nsbrowser/plugins "${MOZILLA_FIVE_HOME}"/plugins \
305 || die "failed to symlink"
306
307 # very ugly hack to make firefox not sigbus on sparc
308 use sparc && { sed -e 's/Firefox/FirefoxGentoo/g' \
309 -i "${D}/${MOZILLA_FIVE_HOME}/application.ini" || \
310 die "sparc sed failed"; }
311 }
312
313 pkg_postinst() {
314 ewarn "All the packages built against ${PN} won't compile,"
315 ewarn "any package that fails to build warrants a bug report."
316 elog
317
318 # Update mimedb for the new .desktop file
319 fdo-mime_desktop_database_update
320 }