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