Gentoo Archives: gentoo-commits

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