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