Gentoo Archives: gentoo-commits

From: "Raul Porcel (armin76)" <armin76@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/mozilla-firefox-bin: mozilla-firefox-bin-3.0.10.ebuild ChangeLog mozilla-firefox-bin-3.5_beta4.ebuild mozilla-firefox-bin-3.1_beta3.ebuild mozilla-firefox-bin-3.0.9.ebuild
Date: Tue, 28 Apr 2009 14:17:13
Message-Id: E1Lyo7S-0007KB-KD@stork.gentoo.org
1 armin76 09/04/28 14:17:10
2
3 Modified: ChangeLog
4 Added: mozilla-firefox-bin-3.0.10.ebuild
5 mozilla-firefox-bin-3.5_beta4.ebuild
6 Removed: mozilla-firefox-bin-3.1_beta3.ebuild
7 mozilla-firefox-bin-3.0.9.ebuild
8 Log:
9 Version bump
10 (Portage version: 2.1.6.7/cvs/Linux i686)
11
12 Revision Changes Path
13 1.186 www-client/mozilla-firefox-bin/ChangeLog
14
15 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox-bin/ChangeLog?rev=1.186&view=markup
16 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox-bin/ChangeLog?rev=1.186&content-type=text/plain
17 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox-bin/ChangeLog?r1=1.185&r2=1.186
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox-bin/ChangeLog,v
22 retrieving revision 1.185
23 retrieving revision 1.186
24 diff -u -r1.185 -r1.186
25 --- ChangeLog 22 Apr 2009 17:12:12 -0000 1.185
26 +++ ChangeLog 28 Apr 2009 14:17:10 -0000 1.186
27 @@ -1,6 +1,15 @@
28 # ChangeLog for www-client/mozilla-firefox-bin
29 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox-bin/ChangeLog,v 1.185 2009/04/22 17:12:12 armin76 Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox-bin/ChangeLog,v 1.186 2009/04/28 14:17:10 armin76 Exp $
32 +
33 +*mozilla-firefox-bin-3.5_beta4 (28 Apr 2009)
34 +*mozilla-firefox-bin-3.0.10 (28 Apr 2009)
35 +
36 + 28 Apr 2009; Raúl Porcel <armin76@g.o>
37 + -mozilla-firefox-bin-3.0.9.ebuild, +mozilla-firefox-bin-3.0.10.ebuild,
38 + -mozilla-firefox-bin-3.1_beta3.ebuild,
39 + +mozilla-firefox-bin-3.5_beta4.ebuild:
40 + Version bump
41
42 *mozilla-firefox-bin-3.0.9 (22 Apr 2009)
43
44
45
46
47 1.1 www-client/mozilla-firefox-bin/mozilla-firefox-bin-3.0.10.ebuild
48
49 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox-bin/mozilla-firefox-bin-3.0.10.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox-bin/mozilla-firefox-bin-3.0.10.ebuild?rev=1.1&content-type=text/plain
51
52 Index: mozilla-firefox-bin-3.0.10.ebuild
53 ===================================================================
54 # Copyright 1999-2009 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox-bin/mozilla-firefox-bin-3.0.10.ebuild,v 1.1 2009/04/28 14:17:10 armin76 Exp $
57 EAPI="2"
58
59 inherit eutils mozilla-launcher multilib mozextension
60
61 LANGS="af ar be bg bn-IN ca cs cy da de el en-GB en-US eo es-AR es-ES et eu fi fr fy-NL ga-IE gl gu-IN he hi-IN hu id is it ja ka kn ko ku lt lv mk mn mr nb-NO nl nn-NO oc pa-IN pl pt-BR pt-PT ro ru si sk sl sq sr sv-SE te th tr uk zh-CN zh-TW"
62 NOSHORTLANGS="en-GB es-AR pt-BR zh-CN"
63
64 DESCRIPTION="Firefox Web Browser"
65 REL_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/"
66 SRC_URI="${REL_URI}/${PV}/linux-i686/en-US/firefox-${PV}.tar.bz2"
67 HOMEPAGE="http://www.mozilla.com/firefox"
68 RESTRICT="strip"
69
70 KEYWORDS="-* ~amd64 ~x86"
71 SLOT="0"
72 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
73 IUSE="restrict-javascript"
74
75 for X in ${LANGS} ; do
76 if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
77 SRC_URI="${SRC_URI}
78 linguas_${X/-/_}? ( ${REL_URI}/${PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin/}-${X}.xpi )"
79 fi
80 IUSE="${IUSE} linguas_${X/-/_}"
81 # english is handled internally
82 if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
83 if [ "${X}" != "en-US" ]; then
84 SRC_URI="${SRC_URI}
85 linguas_${X%%-*}? ( ${REL_URI}/${PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin/}-${X}.xpi )"
86 fi
87 IUSE="${IUSE} linguas_${X%%-*}"
88 fi
89 done
90
91 DEPEND="app-arch/unzip"
92 RDEPEND="x11-libs/libXrender
93 x11-libs/libXt
94 x11-libs/libXmu
95 x86? (
96 >=x11-libs/gtk+-2.2
97 )
98 amd64? (
99 >=app-emulation/emul-linux-x86-baselibs-1.0
100 >=app-emulation/emul-linux-x86-gtklibs-1.0
101 app-emulation/emul-linux-x86-compat
102 )"
103
104 PDEPEND="restrict-javascript? ( x11-plugins/noscript )"
105
106 S="${WORKDIR}/firefox"
107
108 pkg_setup() {
109 # This is a binary x86 package => ABI=x86
110 # Please keep this in future versions
111 # Danny van Dyk <kugelfang@g.o> 2005/03/26
112 has_multilib_profile && ABI="x86"
113 }
114
115 linguas() {
116 local LANG SLANG
117 for LANG in ${LINGUAS}; do
118 if has ${LANG} en en_US; then
119 has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
120 continue
121 elif has ${LANG} ${LANGS//-/_}; then
122 has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
123 continue
124 elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
125 for X in ${LANGS}; do
126 if [[ "${X}" == "${LANG}-"* ]] && \
127 [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
128 has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
129 continue 2
130 fi
131 done
132 fi
133 ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA"
134 done
135 }
136
137 src_unpack() {
138 unpack firefox-${PV}.tar.bz2
139
140 linguas
141 for X in ${linguas}; do
142 [[ ${X} != "en" ]] && xpi_unpack "${P/-bin/}-${X}.xpi"
143 done
144 if [[ ${linguas} != "" && ${linguas} != "en" ]]; then
145 einfo "Selected language packs (first will be default): ${linguas}"
146 fi
147 }
148
149 src_install() {
150 declare MOZILLA_FIVE_HOME=/opt/firefox
151
152 # Install icon and .desktop for menu entry
153 newicon "${S}"/chrome/icons/default/default48.png ${PN}-icon.png
154 domenu "${FILESDIR}"/icon/${PN}.desktop
155
156 # Install firefox in /opt
157 dodir ${MOZILLA_FIVE_HOME%/*}
158 mv "${S}" "${D}"${MOZILLA_FIVE_HOME}
159
160 linguas
161 for X in ${linguas}; do
162 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P/-bin/}-${X}"
163 done
164
165 local LANG=${linguas%% *}
166 if [[ -n ${LANG} && ${LANG} != "en" ]]; then
167 elog "Setting default locale to ${LANG}"
168 dosed -e "s:general.useragent.locale\", \"en-US\":general.useragent.locale\", \"${LANG}\":" \
169 "${MOZILLA_FIVE_HOME}"/defaults/pref/firefox.js \
170 "${MOZILLA_FIVE_HOME}"/defaults/pref/firefox-l10n.js || \
171 die "sed failed to change locale"
172 fi
173
174 # Create /usr/bin/firefox-bin
175 dodir /usr/bin/
176 cat <<EOF >"${D}"/usr/bin/firefox-bin
177 #!/bin/sh
178 unset LD_PRELOAD
179 exec /opt/firefox/firefox "\$@"
180 EOF
181 fperms 0755 /usr/bin/firefox-bin
182
183 # revdep-rebuild entry
184 insinto /etc/revdep-rebuild
185 doins "${FILESDIR}"/10firefox-bin
186
187 # install ldpath env.d
188 doenvd "${FILESDIR}"/71firefox-bin
189
190 rm -rf "${D}"${MOZILLA_FIVE_HOME}/plugins
191 dosym /usr/"$(get_libdir)"/nsbrowser/plugins ${MOZILLA_FIVE_HOME}/plugins
192 }
193
194 pkg_preinst() {
195 declare MOZILLA_FIVE_HOME=/opt/firefox
196
197 # Remove entire installed instance to prevent all kinds of
198 # problems... see bug 44772 for example
199 rm -rf "${ROOT}"${MOZILLA_FIVE_HOME}
200 }
201
202 pkg_postinst() {
203 if use x86; then
204 if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \
205 || ! has_version 'net-misc/curl'; then
206 einfo
207 einfo "For using the crashreporter, you need gnome-base/gconf,"
208 einfo "gnome-base/orbit and net-misc/curl emerged."
209 einfo
210 fi
211 if has_version 'net-misc/curl' && built_with_use --missing \
212 true 'net-misc/curl' nss; then
213 einfo
214 einfo "Crashreporter won't be able to send reports"
215 einfo "if you have curl emerged with the nss USE-flag"
216 einfo
217 fi
218 else
219 einfo
220 einfo "NB: You just installed a 32-bit firefox"
221 einfo
222 einfo "Crashreporter won't work on amd64"
223 einfo
224 fi
225 update_mozilla_launcher_symlinks
226 }
227
228 pkg_postrm() {
229 update_mozilla_launcher_symlinks
230 }
231
232
233
234 1.1 www-client/mozilla-firefox-bin/mozilla-firefox-bin-3.5_beta4.ebuild
235
236 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox-bin/mozilla-firefox-bin-3.5_beta4.ebuild?rev=1.1&view=markup
237 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox-bin/mozilla-firefox-bin-3.5_beta4.ebuild?rev=1.1&content-type=text/plain
238
239 Index: mozilla-firefox-bin-3.5_beta4.ebuild
240 ===================================================================
241 # Copyright 1999-2009 Gentoo Foundation
242 # Distributed under the terms of the GNU General Public License v2
243 # $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox-bin/mozilla-firefox-bin-3.5_beta4.ebuild,v 1.1 2009/04/28 14:17:10 armin76 Exp $
244 EAPI="2"
245
246 inherit eutils mozilla-launcher multilib mozextension
247
248 LANGS="af ar be bg bn-IN ca cs cy da de el en-GB en-US eo es-AR es-ES et eu fa fi fr fy-NL ga-IE gl gu-IN he hi-IN hu id is it ja ka kk kn ko ku lt lv mk mn mr nb-NO nl nn-NO oc pa-IN pl pt-BR pt-PT ro ru si sk sl sq sr sv-SE ta te th tr uk vi zh-CN zh-TW"
249 NOSHORTLANGS="en-GB es-AR pt-BR zh-CN"
250
251 MY_PV="${PV/_beta/b}"
252 MY_P="${PN/-bin/}-${MY_PV}"
253
254 DESCRIPTION="Firefox Web Browser"
255 REL_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/"
256 SRC_URI="${REL_URI}/${MY_PV}/linux-i686/en-US/firefox-${MY_PV}.tar.bz2"
257 HOMEPAGE="http://www.mozilla.com/firefox"
258 RESTRICT="strip"
259
260 KEYWORDS="-* ~amd64 ~x86"
261 SLOT="0"
262 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
263 IUSE="restrict-javascript"
264
265 for X in ${LANGS} ; do
266 if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
267 SRC_URI="${SRC_URI}
268 linguas_${X/-/_}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin/}-${X}.xpi )"
269 fi
270 IUSE="${IUSE} linguas_${X/-/_}"
271 # english is handled internally
272 if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
273 if [ "${X}" != "en-US" ]; then
274 SRC_URI="${SRC_URI}
275 linguas_${X%%-*}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin/}-${X}.xpi )"
276 fi
277 IUSE="${IUSE} linguas_${X%%-*}"
278 fi
279 done
280
281 DEPEND="app-arch/unzip"
282 RDEPEND="dev-libs/dbus-glib
283 x11-libs/libXrender
284 x11-libs/libXt
285 x11-libs/libXmu
286 x86? (
287 >=x11-libs/gtk+-2.2
288 >=media-libs/alsa-lib-1.0.16
289 )
290 amd64? (
291 >=app-emulation/emul-linux-x86-baselibs-1.0
292 >=app-emulation/emul-linux-x86-gtklibs-1.0
293 >=app-emulation/emul-linux-x86-soundlibs-20080418
294 app-emulation/emul-linux-x86-compat
295 )"
296
297 PDEPEND="restrict-javascript? ( x11-plugins/noscript )"
298
299 S="${WORKDIR}/firefox"
300
301 pkg_setup() {
302 # This is a binary x86 package => ABI=x86
303 # Please keep this in future versions
304 # Danny van Dyk <kugelfang@g.o> 2005/03/26
305 has_multilib_profile && ABI="x86"
306 }
307
308 linguas() {
309 local LANG SLANG
310 for LANG in ${LINGUAS}; do
311 if has ${LANG} en en_US; then
312 has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
313 continue
314 elif has ${LANG} ${LANGS//-/_}; then
315 has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
316 continue
317 elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
318 for X in ${LANGS}; do
319 if [[ "${X}" == "${LANG}-"* ]] && \
320 [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
321 has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
322 continue 2
323 fi
324 done
325 fi
326 ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA"
327 done
328 }
329
330 src_unpack() {
331 unpack firefox-${MY_PV}.tar.bz2
332
333 linguas
334 for X in ${linguas}; do
335 [[ ${X} != "en" ]] && xpi_unpack "${P/-bin/}-${X}.xpi"
336 done
337 if [[ ${linguas} != "" && ${linguas} != "en" ]]; then
338 einfo "Selected language packs (first will be default): ${linguas}"
339 fi
340 }
341
342 src_install() {
343 declare MOZILLA_FIVE_HOME=/opt/firefox
344
345 # Install icon and .desktop for menu entry
346 newicon "${S}"/chrome/icons/default/default48.png ${PN}-icon.png
347 domenu "${FILESDIR}"/icon/${PN}.desktop
348
349 # Install firefox in /opt
350 dodir ${MOZILLA_FIVE_HOME%/*}
351 mv "${S}" "${D}"${MOZILLA_FIVE_HOME}
352
353 linguas
354 for X in ${linguas}; do
355 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P/-bin/}-${X}"
356 done
357
358 local LANG=${linguas%% *}
359 if [[ -n ${LANG} && ${LANG} != "en" ]]; then
360 elog "Setting default locale to ${LANG}"
361 dosed -e "s:general.useragent.locale\", \"en-US\":general.useragent.locale\", \"${LANG}\":" \
362 "${MOZILLA_FIVE_HOME}"/defaults/pref/firefox.js \
363 "${MOZILLA_FIVE_HOME}"/defaults/pref/firefox-l10n.js || \
364 die "sed failed to change locale"
365 fi
366
367 # Create /usr/bin/firefox-bin
368 dodir /usr/bin/
369 cat <<EOF >"${D}"/usr/bin/firefox-bin
370 #!/bin/sh
371 unset LD_PRELOAD
372 exec /opt/firefox/firefox "\$@"
373 EOF
374 fperms 0755 /usr/bin/firefox-bin
375
376 # revdep-rebuild entry
377 insinto /etc/revdep-rebuild
378 doins "${FILESDIR}"/10firefox-bin
379
380 # install ldpath env.d
381 doenvd "${FILESDIR}"/71firefox-bin
382
383 rm -rf "${D}"${MOZILLA_FIVE_HOME}/plugins
384 dosym /usr/"$(get_libdir)"/nsbrowser/plugins ${MOZILLA_FIVE_HOME}/plugins
385 }
386
387 pkg_preinst() {
388 declare MOZILLA_FIVE_HOME=/opt/firefox
389
390 # Remove entire installed instance to prevent all kinds of
391 # problems... see bug 44772 for example
392 rm -rf "${ROOT}"${MOZILLA_FIVE_HOME}
393 }
394
395 pkg_postinst() {
396 if use x86; then
397 if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \
398 || ! has_version 'net-misc/curl'; then
399 einfo
400 einfo "For using the crashreporter, you need gnome-base/gconf,"
401 einfo "gnome-base/orbit and net-misc/curl emerged."
402 einfo
403 fi
404 if has_version 'net-misc/curl' && built_with_use --missing \
405 true 'net-misc/curl' nss; then
406 einfo
407 einfo "Crashreporter won't be able to send reports"
408 einfo "if you have curl emerged with the nss USE-flag"
409 einfo
410 fi
411 else
412 einfo
413 einfo "NB: You just installed a 32-bit firefox"
414 einfo
415 einfo "Crashreporter won't work on amd64"
416 einfo
417 fi
418 update_mozilla_launcher_symlinks
419 }
420
421 pkg_postrm() {
422 update_mozilla_launcher_symlinks
423 }