Gentoo Archives: gentoo-commits

From: "Ian Stakenvicius (axs)" <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/firefox-bin: firefox-bin-31.6.0.ebuild firefox-bin-37.0.ebuild ChangeLog firefox-bin-36.0.ebuild firefox-bin-31.5.0.ebuild firefox-bin-34.0.5.ebuild firefox-bin-35.0.ebuild
Date: Wed, 01 Apr 2015 15:49:30
Message-Id: 20150401154925.5444314FF8@oystercatcher.gentoo.org
1 axs 15/04/01 15:49:24
2
3 Modified: ChangeLog
4 Added: firefox-bin-31.6.0.ebuild firefox-bin-37.0.ebuild
5 Removed: firefox-bin-36.0.ebuild firefox-bin-31.5.0.ebuild
6 firefox-bin-34.0.5.ebuild firefox-bin-35.0.ebuild
7 Log:
8 version bump for security bug 545232; remove old
9
10 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)
11
12 Revision Changes Path
13 1.228 www-client/firefox-bin/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?rev=1.228&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?rev=1.228&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?r1=1.227&r2=1.228
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v
22 retrieving revision 1.227
23 retrieving revision 1.228
24 diff -u -r1.227 -r1.228
25 --- ChangeLog 26 Mar 2015 11:36:40 -0000 1.227
26 +++ ChangeLog 1 Apr 2015 15:49:24 -0000 1.228
27 @@ -1,6 +1,15 @@
28 # ChangeLog for www-client/firefox-bin
29 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v 1.227 2015/03/26 11:36:40 ago Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v 1.228 2015/04/01 15:49:24 axs Exp $
32 +
33 +*firefox-bin-31.6.0 (01 Apr 2015)
34 +*firefox-bin-37.0 (01 Apr 2015)
35 +
36 + 01 Apr 2015; Ian Stakenvicius (_AxS_) <axs@g.o>
37 + +firefox-bin-31.6.0.ebuild, +firefox-bin-37.0.ebuild,
38 + -firefox-bin-31.5.0.ebuild, -firefox-bin-34.0.5.ebuild,
39 + -firefox-bin-35.0.ebuild, -firefox-bin-36.0.ebuild:
40 + version bump for security bug 545232; remove old
41
42 26 Mar 2015; Agostino Sarubbo <ago@g.o> firefox-bin-31.5.3.ebuild:
43 Stable for x86, wrt bug #544056
44
45
46
47 1.1 www-client/firefox-bin/firefox-bin-31.6.0.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-31.6.0.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-31.6.0.ebuild?rev=1.1&content-type=text/plain
51
52 Index: firefox-bin-31.6.0.ebuild
53 ===================================================================
54 # Copyright 1999-2015 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/firefox-bin-31.6.0.ebuild,v 1.1 2015/04/01 15:49:24 axs Exp $
57
58 EAPI="5"
59 MOZ_ESR="1"
60
61 # Can be updated using scripts/get_langs.sh from mozilla overlay
62 MOZ_LANGS=(af ar as ast be bg bn-BD bn-IN br bs ca cs csb cy da de el en
63 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
64 gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko ku lt lv mai mk ml mr nb-NO
65 nl nn-NO or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta
66 te tr uk vi zh-CN zh-TW zu)
67
68 # Convert the ebuild version to the upstream mozilla version, used by mozlinguas
69 MOZ_PV="${PV/_beta/b}" # Handle beta for SRC_URI
70 MOZ_PV="${MOZ_PV/_rc/rc}" # Handle rc for SRC_URI
71 MOZ_PN="${PN/-bin}"
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="selinux startup-notification"
96
97 DEPEND="app-arch/unzip"
98 RDEPEND="dev-libs/atk
99 >=dev-libs/dbus-glib-0.72
100 dev-libs/glib:2
101 >=media-libs/alsa-lib-1.0.16
102 media-libs/fontconfig
103 >=media-libs/freetype-2.4.10:2
104 >=sys-apps/dbus-0.60
105 >=x11-libs/cairo-1.10[X]
106 x11-libs/gdk-pixbuf:2
107 >=x11-libs/gtk+-2.14:2
108 x11-libs/libX11
109 x11-libs/libXext
110 x11-libs/libXrender
111 x11-libs/libXt
112 >=x11-libs/pango-1.22.0
113 virtual/freedesktop-icon-theme
114 selinux? ( sec-policy/selinux-mozilla )
115 "
116
117 QA_PREBUILT="
118 opt/${MOZ_PN}/*.so
119 opt/${MOZ_PN}/${MOZ_PN}
120 opt/${MOZ_PN}/${PN}
121 opt/${MOZ_PN}/crashreporter
122 opt/${MOZ_PN}/webapprt-stub
123 opt/${MOZ_PN}/plugin-container
124 opt/${MOZ_PN}/mozilla-xremote-client
125 opt/${MOZ_PN}/updater
126 "
127
128 S="${WORKDIR}/${MOZ_PN}"
129
130 src_unpack() {
131 unpack ${A}
132
133 # Unpack language packs
134 mozlinguas_src_unpack
135 }
136
137 src_install() {
138 declare MOZILLA_FIVE_HOME=/opt/${MOZ_PN}
139
140 local size sizes icon_path icon name
141 sizes="16 32 48"
142 icon_path="${S}/browser/chrome/icons/default"
143 icon="${PN}"
144 name="Mozilla Firefox"
145
146 # Install icons and .desktop for menu entry
147 for size in ${sizes}; do
148 insinto "/usr/share/icons/hicolor/${size}x${size}/apps"
149 newins "${icon_path}/default${size}.png" "${icon}.png" || die
150 done
151 # The 128x128 icon has a different name
152 insinto "/usr/share/icons/hicolor/128x128/apps"
153 newins "${icon_path}/../../../icons/mozicon128.png" "${icon}.png" || die
154 # Install a 48x48 icon into /usr/share/pixmaps for legacy DEs
155 newicon "${S}"/browser/chrome/icons/default/default48.png ${PN}.png
156 domenu "${FILESDIR}"/${PN}.desktop
157 sed -i -e "s:@NAME@:${name}:" -e "s:@ICON@:${icon}:" \
158 "${ED}/usr/share/applications/${PN}.desktop" || die
159
160 # Add StartupNotify=true bug 237317
161 if use startup-notification; then
162 echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}.desktop
163 fi
164
165 # Install firefox in /opt
166 dodir ${MOZILLA_FIVE_HOME%/*}
167 mv "${S}" "${D}"${MOZILLA_FIVE_HOME} || die
168
169 # Fix prefs that make no sense for a system-wide install
170 insinto ${MOZILLA_FIVE_HOME}/defaults/pref/
171 doins "${FILESDIR}"/local-settings.js
172 # Copy preferences file so we can do a simple rename.
173 cp "${FILESDIR}"/all-gentoo-1.js "${D}"${MOZILLA_FIVE_HOME}/all-gentoo.js
174
175 # Install language packs
176 mozlinguas_src_install
177
178 local LANG=${linguas%% *}
179 if [[ -n ${LANG} && ${LANG} != "en" ]]; then
180 elog "Setting default locale to ${LANG}"
181 echo "pref(\"general.useragent.locale\", \"${LANG}\");" \
182 >> "${D}${MOZILLA_FIVE_HOME}"/defaults/pref/${PN}-prefs.js || \
183 die "sed failed to change locale"
184 fi
185
186 # Create /usr/bin/firefox-bin
187 dodir /usr/bin/
188 cat <<-EOF >"${D}"/usr/bin/${PN}
189 #!/bin/sh
190 unset LD_PRELOAD
191 LD_LIBRARY_PATH="/opt/firefox/"
192 GTK_PATH=/usr/lib/gtk-2.0/
193 exec /opt/${MOZ_PN}/${MOZ_PN} "\$@"
194 EOF
195 fperms 0755 /usr/bin/${PN}
196
197 # revdep-rebuild entry
198 insinto /etc/revdep-rebuild
199 echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}" >> ${T}/10${PN}
200 doins "${T}"/10${PN} || die
201
202 # Plugins dir
203 share_plugins_dir
204
205 # Required in order to use plugins and even run firefox on hardened.
206 pax-mark mr "${ED}"/${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container}
207 }
208
209 pkg_preinst() {
210 gnome2_icon_savelist
211 }
212
213 pkg_postinst() {
214 if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \
215 || ! has_version 'net-misc/curl'; then
216 einfo
217 einfo "For using the crashreporter, you need gnome-base/gconf,"
218 einfo "gnome-base/orbit and net-misc/curl emerged."
219 einfo
220 fi
221 # Drop requirement of curl not built with nss as it's not necessary anymore
222 #if has_version 'net-misc/curl[nss]'; then
223 # einfo
224 # einfo "Crashreporter won't be able to send reports"
225 # einfo "if you have curl emerged with the nss USE-flag"
226 # einfo
227 #fi
228
229 # Update mimedb for the new .desktop file
230 fdo-mime_desktop_database_update
231 gnome2_icon_cache_update
232 }
233
234 pkg_postrm() {
235 gnome2_icon_cache_update
236 }
237
238
239
240 1.1 www-client/firefox-bin/firefox-bin-37.0.ebuild
241
242 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-37.0.ebuild?rev=1.1&view=markup
243 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-37.0.ebuild?rev=1.1&content-type=text/plain
244
245 Index: firefox-bin-37.0.ebuild
246 ===================================================================
247 # Copyright 1999-2015 Gentoo Foundation
248 # Distributed under the terms of the GNU General Public License v2
249 # $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/firefox-bin-37.0.ebuild,v 1.1 2015/04/01 15:49:24 axs Exp $
250
251 EAPI="5"
252
253 # Can be updated using scripts/get_langs.sh from mozilla overlay
254 # Not officially supported as of yet
255 # csb
256 MOZ_LANGS=(af ar as ast be bg bn-BD bn-IN br bs ca cs cy da de el en
257 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
258 gu-IN he hi-IN hr hu hy-AM id is it ja kk kn ko lt lv mai mk ml mr nb-NO
259 nl nn-NO or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta
260 te tr uk vi zh-CN zh-TW)
261
262 # Convert the ebuild version to the upstream mozilla version, used by mozlinguas
263 MOZ_PV="${PV/_beta/b}" # Handle beta for SRC_URI
264 MOZ_PV="${MOZ_PV/_rc/rc}" # Handle rc for SRC_URI
265 MOZ_PN="${PN/-bin}"
266 MOZ_P="${MOZ_PN}-${MOZ_PV}"
267
268 # Upstream ftp release URI that's used by mozlinguas.eclass
269 # We don't use the http mirror because it deletes old tarballs.
270 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/"
271
272 inherit eutils multilib pax-utils fdo-mime gnome2-utils mozlinguas nsplugins
273
274 DESCRIPTION="Firefox Web Browser"
275 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases"
276 SRC_URI="${SRC_URI}
277 amd64? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 )
278 x86? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )"
279 HOMEPAGE="http://www.mozilla.com/firefox"
280 RESTRICT="strip mirror"
281
282 KEYWORDS="-* ~amd64 ~x86"
283 SLOT="0"
284 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
285 IUSE="selinux startup-notification"
286
287 DEPEND="app-arch/unzip"
288 RDEPEND="dev-libs/atk
289 >=sys-apps/dbus-0.60
290 >=dev-libs/dbus-glib-0.72
291 >=dev-libs/glib-2.26:2
292 >=media-libs/alsa-lib-1.0.16
293 media-libs/fontconfig
294 >=media-libs/freetype-2.4.10
295 >=x11-libs/cairo-1.10[X]
296 x11-libs/gdk-pixbuf
297 >=x11-libs/gtk+-2.14:2
298 x11-libs/libX11
299 x11-libs/libXcomposite
300 x11-libs/libXdamage
301 x11-libs/libXext
302 x11-libs/libXfixes
303 x11-libs/libXrender
304 x11-libs/libXt
305 >=x11-libs/pango-1.22.0
306 virtual/freedesktop-icon-theme
307 selinux? ( sec-policy/selinux-mozilla )
308 "
309
310 QA_PREBUILT="
311 opt/${MOZ_PN}/*.so
312 opt/${MOZ_PN}/${MOZ_PN}
313 opt/${MOZ_PN}/${PN}
314 opt/${MOZ_PN}/crashreporter
315 opt/${MOZ_PN}/webapprt-stub
316 opt/${MOZ_PN}/plugin-container
317 opt/${MOZ_PN}/mozilla-xremote-client
318 opt/${MOZ_PN}/updater
319 "
320
321 S="${WORKDIR}/${MOZ_PN}"
322
323 src_unpack() {
324 unpack ${A}
325
326 # Unpack language packs
327 mozlinguas_src_unpack
328 }
329
330 src_install() {
331 declare MOZILLA_FIVE_HOME=/opt/${MOZ_PN}
332
333 local size sizes icon_path icon name
334 sizes="16 32 48"
335 icon_path="${S}/browser/chrome/icons/default"
336 icon="${PN}"
337 name="Mozilla Firefox"
338
339 # Install icons and .desktop for menu entry
340 for size in ${sizes}; do
341 insinto "/usr/share/icons/hicolor/${size}x${size}/apps"
342 newins "${icon_path}/default${size}.png" "${icon}.png" || die
343 done
344 # The 128x128 icon has a different name
345 insinto "/usr/share/icons/hicolor/128x128/apps"
346 newins "${icon_path}/../../../icons/mozicon128.png" "${icon}.png" || die
347 # Install a 48x48 icon into /usr/share/pixmaps for legacy DEs
348 newicon "${S}"/browser/chrome/icons/default/default48.png ${PN}.png
349 domenu "${FILESDIR}"/${PN}.desktop
350 sed -i -e "s:@NAME@:${name}:" -e "s:@ICON@:${icon}:" \
351 "${ED}/usr/share/applications/${PN}.desktop" || die
352
353 # Add StartupNotify=true bug 237317
354 if use startup-notification; then
355 echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}.desktop
356 fi
357
358 # Install firefox in /opt
359 dodir ${MOZILLA_FIVE_HOME%/*}
360 mv "${S}" "${D}"${MOZILLA_FIVE_HOME} || die
361
362 # Fix prefs that make no sense for a system-wide install
363 insinto ${MOZILLA_FIVE_HOME}/defaults/pref/
364 doins "${FILESDIR}"/local-settings.js
365 # Copy preferences file so we can do a simple rename.
366 cp "${FILESDIR}"/all-gentoo-1.js "${D}"${MOZILLA_FIVE_HOME}/all-gentoo.js
367
368 # Install language packs
369 mozlinguas_src_install
370
371 local LANG=${linguas%% *}
372 if [[ -n ${LANG} && ${LANG} != "en" ]]; then
373 elog "Setting default locale to ${LANG}"
374 echo "pref(\"general.useragent.locale\", \"${LANG}\");" \
375 >> "${D}${MOZILLA_FIVE_HOME}"/defaults/pref/${PN}-prefs.js || \
376 die "sed failed to change locale"
377 fi
378
379 # Create /usr/bin/firefox-bin
380 dodir /usr/bin/
381 cat <<-EOF >"${D}"/usr/bin/${PN}
382 #!/bin/sh
383 unset LD_PRELOAD
384 LD_LIBRARY_PATH="/opt/firefox/"
385 GTK_PATH=/usr/lib/gtk-2.0/
386 exec /opt/${MOZ_PN}/${MOZ_PN} "\$@"
387 EOF
388 fperms 0755 /usr/bin/${PN}
389
390 # revdep-rebuild entry
391 insinto /etc/revdep-rebuild
392 echo "SEARCH_DIRS_MASK=${MOZILLA_FIVE_HOME}" >> ${T}/10${PN}
393 doins "${T}"/10${PN} || die
394
395 # Plugins dir
396 share_plugins_dir
397
398 # Required in order to use plugins and even run firefox on hardened.
399 pax-mark mr "${ED}"/${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container}
400 }
401
402 pkg_preinst() {
403 gnome2_icon_savelist
404 }
405
406 pkg_postinst() {
407 if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \
408 || ! has_version 'net-misc/curl'; then
409 einfo
410 einfo "For using the crashreporter, you need gnome-base/gconf,"
411 einfo "gnome-base/orbit and net-misc/curl emerged."
412 einfo
413 fi
414 # Drop requirement of curl not built with nss as it's not necessary anymore
415 #if has_version 'net-misc/curl[nss]'; then
416 # einfo
417 # einfo "Crashreporter won't be able to send reports"
418 # einfo "if you have curl emerged with the nss USE-flag"
419 # einfo
420 #fi
421
422 # Update mimedb for the new .desktop file
423 fdo-mime_desktop_database_update
424 gnome2_icon_cache_update
425 }
426
427 pkg_postrm() {
428 gnome2_icon_cache_update
429 }