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/firefox: ChangeLog firefox-3.6.9.ebuild firefox-3.6.4.ebuild firefox-3.6.8-r1.ebuild
Date: Wed, 08 Sep 2010 01:12:13
Message-Id: 20100908011206.054C120051@flycatcher.gentoo.org
1 anarchy 10/09/08 01:12:05
2
3 Modified: ChangeLog
4 Added: firefox-3.6.9.ebuild
5 Removed: firefox-3.6.4.ebuild firefox-3.6.8-r1.ebuild
6 Log:
7 Security bump bug 336396
8
9 (Portage version: 2.1.9.1/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.7 www-client/firefox/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/ChangeLog?rev=1.7&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/ChangeLog?rev=1.7&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/ChangeLog?r1=1.6&r2=1.7
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-client/firefox/ChangeLog,v
21 retrieving revision 1.6
22 retrieving revision 1.7
23 diff -u -r1.6 -r1.7
24 --- ChangeLog 10 Aug 2010 22:52:14 -0000 1.6
25 +++ ChangeLog 8 Sep 2010 01:12:05 -0000 1.7
26 @@ -1,6 +1,12 @@
27 # ChangeLog for www-client/firefox
28 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-client/firefox/ChangeLog,v 1.6 2010/08/10 22:52:14 truedfx Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-client/firefox/ChangeLog,v 1.7 2010/09/08 01:12:05 anarchy Exp $
31 +
32 +*firefox-3.6.9 (08 Sep 2010)
33 +
34 + 08 Sep 2010; Jory A. Pratt <anarchy@g.o> -firefox-3.6.4.ebuild,
35 + -firefox-3.6.8-r1.ebuild, +firefox-3.6.9.ebuild:
36 + Security bump bug 336396
37
38 10 Aug 2010; Harald van Dijk <truedfx@g.o> firefox-3.6.4.ebuild,
39 firefox-3.6.8.ebuild, firefox-3.6.8-r1.ebuild:
40
41
42
43 1.1 www-client/firefox/firefox-3.6.9.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/firefox-3.6.9.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox/firefox-3.6.9.ebuild?rev=1.1&content-type=text/plain
47
48 Index: firefox-3.6.9.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/www-client/firefox/firefox-3.6.9.ebuild,v 1.1 2010/09/08 01:12:05 anarchy Exp $
53 EAPI="3"
54 WANT_AUTOCONF="2.1"
55
56 inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib pax-utils fdo-mime autotools mozextension java-pkg-opt-2 python
57
58 LANGS="af ar as be bg bn-BD bn-IN ca cs cy da de el en en-GB en-US eo es-AR \
59 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 \
60 ja 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 \
61 ro ru si sk sl sq sr sv-SE ta ta-LK te th tr uk vi zh-CN zh-TW"
62 NOSHORTLANGS="en-GB es-AR es-CL es-MX pt-BR zh-CN zh-TW"
63
64 MAJ_XUL_PV="1.9.2"
65 MAJ_PV="${PV/_*/}" # Without the _rc and _beta stuff
66 DESKTOP_PV="3.6"
67 MY_PV="${PV/_rc/rc}" # Handle beta for SRC_URI
68 XUL_PV="${MAJ_XUL_PV}${MAJ_PV/${DESKTOP_PV}/}" # Major + Minor version no.s
69 PATCH="${PN}-3.6-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 ~amd64-linux ~ia64-linux ~x86-linux ~sparc-solaris ~x64-solaris ~x86-solaris"
75 SLOT="0"
76 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
77 IUSE="+alsa bindist +cups +ipc java libnotify system-sqlite wifi"
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/mozilla/patchsets/${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 RDEPEND="
100 >=sys-devel/binutils-2.16.1
101 >=dev-libs/nss-3.12.4
102 >=dev-libs/nspr-4.8
103 >=app-text/hunspell-1.2
104 system-sqlite? ( >=dev-db/sqlite-3.6.22-r2[fts3,secure-delete] )
105 alsa? ( media-libs/alsa-lib )
106 >=x11-libs/cairo-1.8.8[X]
107 x11-libs/pango[X]
108 wifi? ( net-wireless/wireless-tools )
109 libnotify? ( >=x11-libs/libnotify-0.4 )
110 cups? ( net-print/cups[gnutls] )
111 ~net-libs/xulrunner-${XUL_PV}[ipc=,java=,wifi=,libnotify=,system-sqlite=]"
112
113 DEPEND="${RDEPEND}
114 java? ( >=virtual/jdk-1.4 )
115 =dev-lang/python-2*[threads]
116 dev-util/pkgconfig"
117
118 RDEPEND="${RDEPEND} java? ( >=virtual/jre-1.4 )"
119
120 S="${WORKDIR}/mozilla-1.9.2"
121
122 # This is a copy of the launcher program installed as part of xulrunner, so has
123 # already been stripped. Bug #332071 for details.
124 QA_PRESTRIPPED="usr/$(get_libdir)/${PN}/firefox"
125
126 linguas() {
127 local LANG SLANG
128 for LANG in ${LINGUAS}; do
129 if has ${LANG} en en_US; then
130 has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
131 continue
132 elif has ${LANG} ${LANGS//-/_}; then
133 has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
134 continue
135 elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
136 for X in ${LANGS}; do
137 if [[ "${X}" == "${LANG}-"* ]] && \
138 [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
139 has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
140 continue 2
141 fi
142 done
143 fi
144 ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA"
145 done
146 }
147
148 # XXX FIXME XXX: All refs to mozilla-${PN} need to become ${PN} with the next bump
149 # Note that this WILL cause breakage for packages that use fx's libdir and includedir
150 pkg_setup() {
151 # Ensure we always build with C locale.
152 export LANG="C"
153 export LC_ALL="C"
154 export LC_MESSAGES="C"
155 export LC_CTYPE="C"
156
157 if ! use bindist ; then
158 einfo
159 elog "You are enabling official branding. You may not redistribute this build"
160 elog "to any users on your network or the internet. Doing so puts yourself into"
161 elog "a legal problem with Mozilla Foundation"
162 elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag"
163 fi
164
165 java-pkg-opt-2_pkg_setup
166
167 python_set_active_version 2
168 }
169
170 src_unpack() {
171 unpack firefox-${MY_PV}.source.tar.bz2 ${PATCH}.tar.bz2
172
173 linguas
174 for X in ${linguas}; do
175 # FIXME: Add support for unpacking xpis to portage
176 [[ ${X} != "en" ]] && xpi_unpack "mozilla-${P}-${X}.xpi"
177 done
178 }
179
180 src_prepare() {
181 # Apply our patches
182 EPATCH_SUFFIX="patch" \
183 EPATCH_FORCE="yes" \
184 epatch "${WORKDIR}"
185
186 # Allow user to apply additional patches without modifing ebuild
187 epatch_user
188
189 eautoreconf
190
191 cd js/src
192 eautoreconf
193 }
194
195 src_configure() {
196 MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
197 MEXTENSIONS="default"
198
199 ####################################
200 #
201 # mozconfig, CFLAGS and CXXFLAGS setup
202 #
203 ####################################
204
205 mozconfig_init
206 mozconfig_config
207
208 # It doesn't compile on alpha without this LDFLAGS
209 use alpha && append-ldflags "-Wl,--no-relax"
210
211 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
212 mozconfig_annotate '' --enable-application=browser
213 mozconfig_annotate '' --disable-mailnews
214 mozconfig_annotate 'broken' --disable-crashreporter
215 mozconfig_annotate '' --enable-image-encoder=all
216 mozconfig_annotate '' --enable-canvas
217 mozconfig_annotate 'gtk' --enable-default-toolkit=cairo-gtk2
218 # Bug 60668: Galeon doesn't build without oji enabled, so enable it
219 # regardless of java setting.
220 mozconfig_annotate '' --enable-oji --enable-mathml
221 mozconfig_annotate 'places' --enable-storage --enable-places
222 mozconfig_annotate '' --enable-safe-browsing
223
224 # Build mozdevelop permately
225 mozconfig_annotate '' --enable-jsd --enable-xpctools
226
227 # System-wide install specs
228 mozconfig_annotate '' --disable-installer
229 mozconfig_annotate '' --disable-updater
230 mozconfig_annotate '' --disable-strip
231 mozconfig_annotate '' --disable-install-strip
232
233 # Use system libraries
234 mozconfig_annotate '' --enable-system-cairo
235 mozconfig_annotate '' --enable-system-hunspell
236 mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr
237 mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr
238 mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir)
239 mozconfig_annotate '' --with-system-bz2
240 mozconfig_annotate '' --with-system-libxul
241 mozconfig_annotate '' --with-libxul-sdk="${EPREFIX}"/usr/$(get_libdir)/xulrunner-devel-${MAJ_XUL_PV}
242
243 mozconfig_use_enable ipc # +ipc, upstream default
244 mozconfig_use_enable libnotify
245 mozconfig_use_enable java javaxpcom
246 mozconfig_use_enable wifi necko-wifi
247 mozconfig_use_enable alsa ogg
248 mozconfig_use_enable alsa wave
249 mozconfig_use_enable system-sqlite
250 mozconfig_use_enable cups printing
251 mozconfig_use_enable !bindist official-branding
252
253 # Other ff-specific settings
254 mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
255
256 # Finalize and report settings
257 mozconfig_final
258
259 if [[ $(gcc-major-version) -lt 4 ]]; then
260 append-cxxflags -fno-stack-protector
261 fi
262
263 ####################################
264 #
265 # Configure and build
266 #
267 ####################################
268
269 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" PYTHON="$(PYTHON)" econf
270 }
271
272 src_compile() {
273 # Should the build use multiprocessing? Not enabled by default, as it tends to break
274 [ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1"
275 emake ${jobs} || die
276 }
277
278 src_install() {
279 MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
280
281 emake DESTDIR="${D}" install || die "emake install failed"
282
283 linguas
284 for X in ${linguas}; do
285 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"mozilla-${P}-${X}"
286 done
287
288 # Install icon and .desktop for menu entry
289 if ! use bindist ; then
290 newicon "${S}"/other-licenses/branding/firefox/content/icon48.png ${PN}-icon.png
291 newmenu "${FILESDIR}"/icon/${PN}-1.5.desktop \
292 mozilla-${PN}-${DESKTOP_PV}.desktop
293 else
294 newicon "${S}"/browser/branding/unofficial/content/icon48.png ${PN}-icon-unbranded.png
295 newmenu "${FILESDIR}"/icon/${PN}-1.5-unbranded.desktop \
296 mozilla-${PN}-${DESKTOP_PV}.desktop
297 sed -i -e "s:Bon\ Echo:Namoroka:" \
298 "${ED}"/usr/share/applications/mozilla-${PN}-${DESKTOP_PV}.desktop || die "sed failed!"
299 fi
300
301 # Add StartupNotify=true bug 237317
302 if use startup-notification ; then
303 echo "StartupNotify=true" >> "${ED}"/usr/share/applications/mozilla-${PN}-${DESKTOP_PV}.desktop
304 fi
305
306 pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/firefox
307
308 # Enable very specific settings not inherited from xulrunner
309 cp "${FILESDIR}"/firefox-default-prefs.js \
310 "${ED}/${MOZILLA_FIVE_HOME}/defaults/preferences/all-gentoo.js" || \
311 die "failed to cp firefox-default-prefs.js"
312
313 # Plugins dir
314 dosym ../nsbrowser/plugins "${MOZILLA_FIVE_HOME}"/plugins \
315 || die "failed to symlink"
316
317 # very ugly hack to make firefox not sigbus on sparc
318 use sparc && { sed -e 's/Firefox/FirefoxGentoo/g' \
319 -i "${ED}/${MOZILLA_FIVE_HOME}/application.ini" || \
320 die "sparc sed failed"; }
321 }
322
323 pkg_postinst() {
324 ewarn "We have finished moving away from mozilla-${PN}"
325 ewarn "to plain jane ${PN}. If for some reason you have a bug"
326 ewarn "that results please open a report and assign to maintainer"
327 ewarn "with mozilla@g.o being CC'd on the bug report."
328 elog
329
330 # Update mimedb for the new .desktop file
331 fdo-mime_desktop_database_update
332 }