Gentoo Archives: gentoo-commits

From: "Jeff Horelick (jdhore)" <jdhore@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/firefox-bin: firefox-bin-24.1.0.ebuild firefox-bin-25.0.ebuild firefox-bin-17.0.10.ebuild ChangeLog
Date: Thu, 31 Oct 2013 01:02:07
Message-Id: 20131031010159.1739920047@flycatcher.gentoo.org
1 jdhore 13/10/31 01:01:58
2
3 Modified: ChangeLog
4 Added: firefox-bin-24.1.0.ebuild firefox-bin-25.0.ebuild
5 firefox-bin-17.0.10.ebuild
6 Log:
7 Version bump on both ESR branches and mainline branch
8
9 (Portage version: 2.2.7/cvs/Linux i686, signed Manifest commit with key 23E9E900)
10
11 Revision Changes Path
12 1.170 www-client/firefox-bin/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?rev=1.170&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?rev=1.170&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?r1=1.169&r2=1.170
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v
21 retrieving revision 1.169
22 retrieving revision 1.170
23 diff -u -r1.169 -r1.170
24 --- ChangeLog 25 Sep 2013 15:14:27 -0000 1.169
25 +++ ChangeLog 31 Oct 2013 01:01:58 -0000 1.170
26 @@ -1,6 +1,14 @@
27 # ChangeLog for www-client/firefox-bin
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v 1.169 2013/09/25 15:14:27 polynomial-c Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v 1.170 2013/10/31 01:01:58 jdhore Exp $
31 +
32 +*firefox-bin-17.0.10 (31 Oct 2013)
33 +*firefox-bin-25.0 (31 Oct 2013)
34 +*firefox-bin-24.1.0 (31 Oct 2013)
35 +
36 + 31 Oct 2013; Jeff Horelick <jdhore@g.o> +firefox-bin-17.0.10.ebuild,
37 + +firefox-bin-24.1.0.ebuild, +firefox-bin-25.0.ebuild:
38 + Version bump on both ESR branches and mainline branch
39
40 25 Sep 2013; Lars Wendler <polynomial-c@g.o>
41 -firefox-bin-17.0.8.ebuild, -firefox-bin-23.0.ebuild:
42
43
44
45 1.1 www-client/firefox-bin/firefox-bin-24.1.0.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-24.1.0.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-24.1.0.ebuild?rev=1.1&content-type=text/plain
49
50 Index: firefox-bin-24.1.0.ebuild
51 ===================================================================
52 # Copyright 1999-2013 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/firefox-bin-24.1.0.ebuild,v 1.1 2013/10/31 01:01:58 jdhore Exp $
55
56 EAPI="5"
57 MOZ_ESR="1"
58
59 # Can be updated using scripts/get_langs.sh from mozilla overlay
60 MOZ_LANGS=(af ak ar as ast be bg bn-BD bn-IN br bs ca cs csb cy da de el en
61 en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl
62 gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO
63 nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta ta-LK
64 te th tr uk vi zh-CN zh-TW zu)
65
66 # Convert the ebuild version to the upstream mozilla version, used by mozlinguas
67 MOZ_PV="${PV/_beta/b}" # Handle beta for SRC_URI
68 MOZ_PV="${MOZ_PV/_rc/rc}" # Handle rc for SRC_URI
69 MOZ_PN="${PN/-bin}"
70 MOZ_P="${MOZ_PN}-${MOZ_PV}"
71
72 if [[ ${MOZ_ESR} == 1 ]]; then
73 # ESR releases have slightly version numbers
74 MOZ_PV="${MOZ_PV}esr"
75 fi
76 MOZ_P="${MOZ_PN}-${MOZ_PV}"
77
78 # Upstream ftp release URI that's used by mozlinguas.eclass
79 # We don't use the http mirror because it deletes old tarballs.
80 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/"
81
82 inherit eutils multilib pax-utils fdo-mime gnome2-utils mozlinguas nsplugins
83
84 DESCRIPTION="Firefox Web Browser"
85 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases"
86 SRC_URI="${SRC_URI}
87 amd64? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 )
88 x86? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )"
89 HOMEPAGE="http://www.mozilla.com/firefox"
90 RESTRICT="strip mirror"
91
92 KEYWORDS="-* ~amd64 ~x86"
93 SLOT="0"
94 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
95 IUSE="startup-notification"
96
97 DEPEND="app-arch/unzip"
98 RDEPEND="dev-libs/dbus-glib
99 virtual/freedesktop-icon-theme
100 x11-libs/libXrender
101 x11-libs/libXt
102 x11-libs/libXmu
103
104 >=x11-libs/gtk+-2.2:2
105 >=media-libs/alsa-lib-1.0.16
106
107 !net-libs/libproxy[spidermonkey]
108 "
109
110 QA_PREBUILT="
111 opt/${MOZ_PN}/*.so
112 opt/${MOZ_PN}/${MOZ_PN}
113 opt/${MOZ_PN}/${PN}
114 opt/${MOZ_PN}/crashreporter
115 opt/${MOZ_PN}/webapprt-stub
116 opt/${MOZ_PN}/plugin-container
117 opt/${MOZ_PN}/mozilla-xremote-client
118 opt/${MOZ_PN}/updater
119 "
120
121 S="${WORKDIR}/${MOZ_PN}"
122
123 src_unpack() {
124 unpack ${A}
125
126 # Unpack language packs
127 mozlinguas_src_unpack
128 }
129
130 src_install() {
131 declare MOZILLA_FIVE_HOME=/opt/${MOZ_PN}
132
133 local size sizes icon_path icon name
134 sizes="16 32 48"
135 icon_path="${S}/browser/chrome/icons/default"
136 icon="${PN}"
137 name="Mozilla Firefox"
138
139 # Install icons and .desktop for menu entry
140 for size in ${sizes}; do
141 insinto "/usr/share/icons/hicolor/${size}x${size}/apps"
142 newins "${icon_path}/default${size}.png" "${icon}.png" || die
143 done
144 # The 128x128 icon has a different name
145 insinto "/usr/share/icons/hicolor/128x128/apps"
146 newins "${icon_path}/../../../icons/mozicon128.png" "${icon}.png" || die
147 # Install a 48x48 icon into /usr/share/pixmaps for legacy DEs
148 newicon "${S}"/browser/chrome/icons/default/default48.png ${PN}-icon.png
149 domenu "${FILESDIR}"/${PN}.desktop
150 sed -i -e "s:@NAME@:${name}:" -e "s:@ICON@:${icon}:" \
151 "${ED}/usr/share/applications/${PN}.desktop" || die
152
153 # Add StartupNotify=true bug 237317
154 if use startup-notification; then
155 echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}.desktop
156 fi
157
158 # Install firefox in /opt
159 dodir ${MOZILLA_FIVE_HOME%/*}
160 mv "${S}" "${D}"${MOZILLA_FIVE_HOME} || die
161
162 # Fix prefs that make no sense for a system-wide install
163 insinto ${MOZILLA_FIVE_HOME}/defaults/pref/
164 doins "${FILESDIR}"/local-settings.js
165 insinto ${MOZILLA_FIVE_HOME}/
166 doins "${FILESDIR}"/all-gentoo.js
167
168 # Install language packs
169 mozlinguas_src_install
170
171 local LANG=${linguas%% *}
172 if [[ -n ${LANG} && ${LANG} != "en" ]]; then
173 elog "Setting default locale to ${LANG}"
174 echo "pref(\"general.useragent.locale\", \"${LANG}\");" \
175 >> "${D}${MOZILLA_FIVE_HOME}"/defaults/pref/${PN}-prefs.js || \
176 die "sed failed to change locale"
177 fi
178
179 # Create /usr/bin/firefox-bin
180 dodir /usr/bin/
181 cat <<-EOF >"${D}"/usr/bin/${PN}
182 #!/bin/sh
183 unset LD_PRELOAD
184 LD_LIBRARY_PATH="/opt/firefox/"
185 GTK_PATH=/usr/lib/gtk-2.0/
186 exec /opt/${MOZ_PN}/${MOZ_PN} "\$@"
187 EOF
188 fperms 0755 /usr/bin/${PN}
189
190 # revdep-rebuild entry
191 insinto /etc/revdep-rebuild
192 doins "${FILESDIR}"/10${PN} || die
193
194 # Plugins dir
195 share_plugins_dir
196
197 # Required in order to use plugins and even run firefox on hardened.
198 pax-mark mr "${ED}"/${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container}
199 }
200
201 pkg_preinst() {
202 gnome2_icon_savelist
203 }
204
205 pkg_postinst() {
206 if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \
207 || ! has_version 'net-misc/curl'; then
208 einfo
209 einfo "For using the crashreporter, you need gnome-base/gconf,"
210 einfo "gnome-base/orbit and net-misc/curl emerged."
211 einfo
212 fi
213 # Drop requirement of curl not built with nss as it's not necessary anymore
214 #if has_version 'net-misc/curl[nss]'; then
215 # einfo
216 # einfo "Crashreporter won't be able to send reports"
217 # einfo "if you have curl emerged with the nss USE-flag"
218 # einfo
219 #fi
220
221 # Update mimedb for the new .desktop file
222 fdo-mime_desktop_database_update
223 gnome2_icon_cache_update
224 }
225
226 pkg_postrm() {
227 gnome2_icon_cache_update
228 }
229
230
231
232 1.1 www-client/firefox-bin/firefox-bin-25.0.ebuild
233
234 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-25.0.ebuild?rev=1.1&view=markup
235 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-25.0.ebuild?rev=1.1&content-type=text/plain
236
237 Index: firefox-bin-25.0.ebuild
238 ===================================================================
239 # Copyright 1999-2013 Gentoo Foundation
240 # Distributed under the terms of the GNU General Public License v2
241 # $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/firefox-bin-25.0.ebuild,v 1.1 2013/10/31 01:01:58 jdhore Exp $
242
243 EAPI="5"
244
245 # Can be updated using scripts/get_langs.sh from mozilla overlay
246 MOZ_LANGS=(af ak ar as ast be bg bn-BD bn-IN br bs ca cs csb cy da de el en
247 en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl
248 gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO
249 nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta ta-LK
250 te th tr uk vi zh-CN zh-TW zu)
251
252 # Convert the ebuild version to the upstream mozilla version, used by mozlinguas
253 MOZ_PV="${PV/_beta/b}" # Handle beta for SRC_URI
254 MOZ_PV="${MOZ_PV/_rc/rc}" # Handle rc for SRC_URI
255 MOZ_PN="${PN/-bin}"
256 MOZ_P="${MOZ_PN}-${MOZ_PV}"
257
258 # Upstream ftp release URI that's used by mozlinguas.eclass
259 # We don't use the http mirror because it deletes old tarballs.
260 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/"
261
262 inherit eutils multilib pax-utils fdo-mime gnome2-utils mozlinguas nsplugins
263
264 DESCRIPTION="Firefox Web Browser"
265 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases"
266 SRC_URI="${SRC_URI}
267 amd64? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 )
268 x86? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )"
269 HOMEPAGE="http://www.mozilla.com/firefox"
270 RESTRICT="strip mirror"
271
272 KEYWORDS="-* ~amd64 ~x86"
273 SLOT="0"
274 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
275 IUSE="startup-notification"
276
277 DEPEND="app-arch/unzip"
278 RDEPEND="dev-libs/dbus-glib
279 virtual/freedesktop-icon-theme
280 x11-libs/libXrender
281 x11-libs/libXt
282 x11-libs/libXmu
283
284 >=x11-libs/gtk+-2.2:2
285 >=media-libs/alsa-lib-1.0.16
286
287 !net-libs/libproxy[spidermonkey]
288 "
289
290 QA_PREBUILT="
291 opt/${MOZ_PN}/*.so
292 opt/${MOZ_PN}/${MOZ_PN}
293 opt/${MOZ_PN}/${PN}
294 opt/${MOZ_PN}/crashreporter
295 opt/${MOZ_PN}/webapprt-stub
296 opt/${MOZ_PN}/plugin-container
297 opt/${MOZ_PN}/mozilla-xremote-client
298 opt/${MOZ_PN}/updater
299 "
300
301 S="${WORKDIR}/${MOZ_PN}"
302
303 src_unpack() {
304 unpack ${A}
305
306 # Unpack language packs
307 mozlinguas_src_unpack
308 }
309
310 src_install() {
311 declare MOZILLA_FIVE_HOME=/opt/${MOZ_PN}
312
313 local size sizes icon_path icon name
314 sizes="16 32 48"
315 icon_path="${S}/browser/chrome/icons/default"
316 icon="${PN}"
317 name="Mozilla Firefox"
318
319 # Install icons and .desktop for menu entry
320 for size in ${sizes}; do
321 insinto "/usr/share/icons/hicolor/${size}x${size}/apps"
322 newins "${icon_path}/default${size}.png" "${icon}.png" || die
323 done
324 # The 128x128 icon has a different name
325 insinto "/usr/share/icons/hicolor/128x128/apps"
326 newins "${icon_path}/../../../icons/mozicon128.png" "${icon}.png" || die
327 # Install a 48x48 icon into /usr/share/pixmaps for legacy DEs
328 newicon "${S}"/browser/chrome/icons/default/default48.png ${PN}-icon.png
329 domenu "${FILESDIR}"/${PN}.desktop
330 sed -i -e "s:@NAME@:${name}:" -e "s:@ICON@:${icon}:" \
331 "${ED}/usr/share/applications/${PN}.desktop" || die
332
333 # Add StartupNotify=true bug 237317
334 if use startup-notification; then
335 echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}.desktop
336 fi
337
338 # Install firefox in /opt
339 dodir ${MOZILLA_FIVE_HOME%/*}
340 mv "${S}" "${D}"${MOZILLA_FIVE_HOME} || die
341
342 # Fix prefs that make no sense for a system-wide install
343 insinto ${MOZILLA_FIVE_HOME}/defaults/pref/
344 doins "${FILESDIR}"/local-settings.js
345 insinto ${MOZILLA_FIVE_HOME}/
346 doins "${FILESDIR}"/all-gentoo.js
347
348 # Install language packs
349 mozlinguas_src_install
350
351 local LANG=${linguas%% *}
352 if [[ -n ${LANG} && ${LANG} != "en" ]]; then
353 elog "Setting default locale to ${LANG}"
354 echo "pref(\"general.useragent.locale\", \"${LANG}\");" \
355 >> "${D}${MOZILLA_FIVE_HOME}"/defaults/pref/${PN}-prefs.js || \
356 die "sed failed to change locale"
357 fi
358
359 # Create /usr/bin/firefox-bin
360 dodir /usr/bin/
361 cat <<-EOF >"${D}"/usr/bin/${PN}
362 #!/bin/sh
363 unset LD_PRELOAD
364 LD_LIBRARY_PATH="/opt/firefox/"
365 GTK_PATH=/usr/lib/gtk-2.0/
366 exec /opt/${MOZ_PN}/${MOZ_PN} "\$@"
367 EOF
368 fperms 0755 /usr/bin/${PN}
369
370 # revdep-rebuild entry
371 insinto /etc/revdep-rebuild
372 doins "${FILESDIR}"/10${PN} || die
373
374 # Plugins dir
375 share_plugins_dir
376
377 # Required in order to use plugins and even run firefox on hardened.
378 pax-mark mr "${ED}"/${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container}
379 }
380
381 pkg_preinst() {
382 gnome2_icon_savelist
383 }
384
385 pkg_postinst() {
386 if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \
387 || ! has_version 'net-misc/curl'; then
388 einfo
389 einfo "For using the crashreporter, you need gnome-base/gconf,"
390 einfo "gnome-base/orbit and net-misc/curl emerged."
391 einfo
392 fi
393 # Drop requirement of curl not built with nss as it's not necessary anymore
394 #if has_version 'net-misc/curl[nss]'; then
395 # einfo
396 # einfo "Crashreporter won't be able to send reports"
397 # einfo "if you have curl emerged with the nss USE-flag"
398 # einfo
399 #fi
400
401 # Update mimedb for the new .desktop file
402 fdo-mime_desktop_database_update
403 gnome2_icon_cache_update
404 }
405
406 pkg_postrm() {
407 gnome2_icon_cache_update
408 }
409
410
411
412 1.1 www-client/firefox-bin/firefox-bin-17.0.10.ebuild
413
414 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-17.0.10.ebuild?rev=1.1&view=markup
415 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-17.0.10.ebuild?rev=1.1&content-type=text/plain
416
417 Index: firefox-bin-17.0.10.ebuild
418 ===================================================================
419 # Copyright 1999-2013 Gentoo Foundation
420 # Distributed under the terms of the GNU General Public License v2
421 # $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/firefox-bin-17.0.10.ebuild,v 1.1 2013/10/31 01:01:58 jdhore Exp $
422
423 EAPI="4"
424 MOZ_ESR="1"
425
426 # Can be updated using scripts/get_langs.sh from mozilla overlay
427 MOZ_LANGS=(af ak ar as ast be bg bn-BD bn-IN br bs ca cs csb cy da de el en
428 en-GB en-US en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl
429 gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO
430 nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta ta-LK
431 te th tr uk vi zh-CN zh-TW zu)
432
433 # Convert the ebuild version to the upstream mozilla version, used by mozlinguas
434 MOZ_PV="${PV/_beta/b}" # Handle beta for SRC_URI
435 MOZ_PV="${MOZ_PV/_rc/rc}" # Handle rc for SRC_URI
436 MOZ_PN="${PN/-bin}"
437
438 if [[ ${MOZ_ESR} == 1 ]]; then
439 # ESR releases have slightly version numbers
440 MOZ_PV="${MOZ_PV}esr"
441 fi
442
443 MOZ_P="${MOZ_PN}-${MOZ_PV}"
444
445 # Upstream ftp release URI that's used by mozlinguas.eclass
446 # We don't use the http mirror because it deletes old tarballs.
447 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/"
448
449 inherit eutils multilib pax-utils fdo-mime gnome2-utils mozlinguas nsplugins
450
451 DESCRIPTION="Firefox Web Browser"
452 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases"
453 SRC_URI="${SRC_URI}
454 amd64? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 )
455 x86? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )"
456 HOMEPAGE="http://www.mozilla.com/firefox"
457 RESTRICT="strip mirror binchecks"
458
459 KEYWORDS="-* ~amd64 ~x86"
460 SLOT="0"
461 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
462 IUSE="startup-notification"
463
464 DEPEND="app-arch/unzip"
465 RDEPEND="dev-libs/dbus-glib
466 gnome-base/gconf
467 gnome-base/orbit
468 virtual/freedesktop-icon-theme
469 x11-libs/libXrender
470 x11-libs/libXt
471 x11-libs/libXmu
472
473 >=x11-libs/gtk+-2.2:2
474 >=media-libs/alsa-lib-1.0.16
475 !net-libs/libproxy[spidermonkey]
476 "
477
478 S="${WORKDIR}/${MOZ_PN}"
479
480 src_unpack() {
481 unpack ${A}
482
483 # Unpack language packs
484 mozlinguas_src_unpack
485 }
486
487 src_install() {
488 declare MOZILLA_FIVE_HOME=/opt/${MOZ_PN}
489
490 # Install icon and .desktop for menu entry
491 newicon "${S}"/chrome/icons/default/default48.png ${PN}-icon.png
492 domenu "${FILESDIR}"/${PN}.desktop
493
494 # Add StartupNotify=true bug 237317
495 if use startup-notification; then
496 echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}.desktop
497 fi
498
499 # Install firefox in /opt
500 dodir ${MOZILLA_FIVE_HOME%/*}
501 mv "${S}" "${D}"${MOZILLA_FIVE_HOME} || die
502
503 # Fix prefs that make no sense for a system-wide install
504 insinto ${MOZILLA_FIVE_HOME}/defaults/pref/
505 doins "${FILESDIR}"/local-settings.js
506 insinto ${MOZILLA_FIVE_HOME}/
507 doins "${FILESDIR}"/all-gentoo.js
508
509 # Install language packs
510 mozlinguas_src_install
511
512 local LANG=${linguas%% *}
513 if [[ -n ${LANG} && ${LANG} != "en" ]]; then
514 elog "Setting default locale to ${LANG}"
515 echo "pref(\"general.useragent.locale\", \"${LANG}\");" \
516 >> "${D}${MOZILLA_FIVE_HOME}"/defaults/pref/${PN}-prefs.js || \
517 die "sed failed to change locale"
518 fi
519
520 # Create /usr/bin/firefox-bin
521 dodir /usr/bin/
522 cat <<-EOF >"${D}"/usr/bin/${PN}
523 #!/bin/sh
524 unset LD_PRELOAD
525 LD_LIBRARY_PATH="/opt/firefox/"
526 GTK_PATH=/usr/lib/gtk-2.0/
527 exec /opt/${MOZ_PN}/${MOZ_PN} "\$@"
528 EOF
529 fperms 0755 /usr/bin/${PN}
530
531 # revdep-rebuild entry
532 insinto /etc/revdep-rebuild
533 doins "${FILESDIR}"/10${PN} || die
534
535 # Plugins dir
536 share_plugins_dir
537
538 # Required in order to use plugins and even run firefox on hardened.
539 pax-mark mr "${ED}"/${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container}
540 }
541
542 pkg_preinst() {
543 gnome2_icon_savelist
544 }
545
546 pkg_postinst() {
547 if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \
548 || ! has_version 'net-misc/curl'; then
549 einfo
550 einfo "For using the crashreporter, you need gnome-base/gconf,"
551 einfo "gnome-base/orbit and net-misc/curl emerged."
552 einfo
553 fi
554 # Drop requirement of curl not built with nss as it's not necessary anymore
555 #if has_version 'net-misc/curl[nss]'; then
556 # einfo
557 # einfo "Crashreporter won't be able to send reports"
558 # einfo "if you have curl emerged with the nss USE-flag"
559 # einfo
560 #fi
561
562 # Update mimedb for the new .desktop file
563 fdo-mime_desktop_database_update
564 gnome2_icon_cache_update
565 }
566
567 pkg_postrm() {
568 gnome2_icon_cache_update
569 }