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