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