1 |
anarchy 14/03/29 03:04:03 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: firefox-bin-28.0-r1.ebuild |
5 |
Removed: firefox-bin-28.0.ebuild |
6 |
Log: |
7 |
Allow user to modify a few settings locally, bug #465802 |
8 |
|
9 |
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xB4D088B4) |
10 |
|
11 |
Revision Changes Path |
12 |
1.183 www-client/firefox-bin/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?rev=1.183&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?rev=1.183&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?r1=1.182&r2=1.183 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v |
21 |
retrieving revision 1.182 |
22 |
retrieving revision 1.183 |
23 |
diff -u -r1.182 -r1.183 |
24 |
--- ChangeLog 22 Mar 2014 20:17:28 -0000 1.182 |
25 |
+++ ChangeLog 29 Mar 2014 03:04:03 -0000 1.183 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for www-client/firefox-bin |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v 1.182 2014/03/22 20:17:28 ago Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v 1.183 2014/03/29 03:04:03 anarchy Exp $ |
31 |
+ |
32 |
+*firefox-bin-28.0-r1 (29 Mar 2014) |
33 |
+ |
34 |
+ 29 Mar 2014; <anarchy@g.o> +files/all-gentoo-1.js, |
35 |
+ +firefox-bin-28.0-r1.ebuild, -firefox-bin-28.0.ebuild: |
36 |
+ Allow user to modify a few settings locally, bug #465802 |
37 |
|
38 |
22 Mar 2014; Agostino Sarubbo <ago@g.o> firefox-bin-24.4.0.ebuild: |
39 |
Stable for x86, wrt bug #505072 |
40 |
|
41 |
|
42 |
|
43 |
1.1 www-client/firefox-bin/firefox-bin-28.0-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-28.0-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-28.0-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: firefox-bin-28.0-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/firefox-bin-28.0-r1.ebuild,v 1.1 2014/03/29 03:04:03 anarchy Exp $ |
53 |
|
54 |
EAPI="5" |
55 |
|
56 |
# Can be updated using scripts/get_langs.sh from mozilla overlay |
57 |
MOZ_LANGS=(af ar as ast be bg bn-BD bn-IN br bs ca cs csb cy da de el en |
58 |
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 |
59 |
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 |
60 |
nl nn-NO or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta |
61 |
te tr uk vi zh-CN zh-TW zu) |
62 |
|
63 |
# Convert the ebuild version to the upstream mozilla version, used by mozlinguas |
64 |
MOZ_PV="${PV/_beta/b}" # Handle beta for SRC_URI |
65 |
MOZ_PV="${MOZ_PV/_rc/rc}" # Handle rc for SRC_URI |
66 |
MOZ_PN="${PN/-bin}" |
67 |
MOZ_P="${MOZ_PN}-${MOZ_PV}" |
68 |
|
69 |
# Upstream ftp release URI that's used by mozlinguas.eclass |
70 |
# We don't use the http mirror because it deletes old tarballs. |
71 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/" |
72 |
|
73 |
inherit eutils multilib pax-utils fdo-mime gnome2-utils mozlinguas nsplugins |
74 |
|
75 |
DESCRIPTION="Firefox Web Browser" |
76 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases" |
77 |
SRC_URI="${SRC_URI} |
78 |
amd64? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 ) |
79 |
x86? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )" |
80 |
HOMEPAGE="http://www.mozilla.com/firefox" |
81 |
RESTRICT="strip mirror" |
82 |
|
83 |
KEYWORDS="-* ~amd64 ~x86" |
84 |
SLOT="0" |
85 |
LICENSE="MPL-2.0 GPL-2 LGPL-2.1" |
86 |
IUSE="startup-notification" |
87 |
|
88 |
DEPEND="app-arch/unzip" |
89 |
RDEPEND="dev-libs/dbus-glib |
90 |
virtual/freedesktop-icon-theme |
91 |
x11-libs/libXrender |
92 |
x11-libs/libXt |
93 |
x11-libs/libXmu |
94 |
|
95 |
>=x11-libs/gtk+-2.2:2 |
96 |
>=media-libs/alsa-lib-1.0.16 |
97 |
|
98 |
!net-libs/libproxy[spidermonkey] |
99 |
" |
100 |
|
101 |
QA_PREBUILT=" |
102 |
opt/${MOZ_PN}/*.so |
103 |
opt/${MOZ_PN}/${MOZ_PN} |
104 |
opt/${MOZ_PN}/${PN} |
105 |
opt/${MOZ_PN}/crashreporter |
106 |
opt/${MOZ_PN}/webapprt-stub |
107 |
opt/${MOZ_PN}/plugin-container |
108 |
opt/${MOZ_PN}/mozilla-xremote-client |
109 |
opt/${MOZ_PN}/updater |
110 |
" |
111 |
|
112 |
S="${WORKDIR}/${MOZ_PN}" |
113 |
|
114 |
src_unpack() { |
115 |
unpack ${A} |
116 |
|
117 |
# Unpack language packs |
118 |
mozlinguas_src_unpack |
119 |
} |
120 |
|
121 |
src_install() { |
122 |
declare MOZILLA_FIVE_HOME=/opt/${MOZ_PN} |
123 |
|
124 |
local size sizes icon_path icon name |
125 |
sizes="16 32 48" |
126 |
icon_path="${S}/browser/chrome/icons/default" |
127 |
icon="${PN}" |
128 |
name="Mozilla Firefox" |
129 |
|
130 |
# Install icons and .desktop for menu entry |
131 |
for size in ${sizes}; do |
132 |
insinto "/usr/share/icons/hicolor/${size}x${size}/apps" |
133 |
newins "${icon_path}/default${size}.png" "${icon}.png" || die |
134 |
done |
135 |
# The 128x128 icon has a different name |
136 |
insinto "/usr/share/icons/hicolor/128x128/apps" |
137 |
newins "${icon_path}/../../../icons/mozicon128.png" "${icon}.png" || die |
138 |
# Install a 48x48 icon into /usr/share/pixmaps for legacy DEs |
139 |
newicon "${S}"/browser/chrome/icons/default/default48.png ${PN}-icon.png |
140 |
domenu "${FILESDIR}"/${PN}.desktop |
141 |
sed -i -e "s:@NAME@:${name}:" -e "s:@ICON@:${icon}:" \ |
142 |
"${ED}/usr/share/applications/${PN}.desktop" || die |
143 |
|
144 |
# Add StartupNotify=true bug 237317 |
145 |
if use startup-notification; then |
146 |
echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}.desktop |
147 |
fi |
148 |
|
149 |
# Install firefox in /opt |
150 |
dodir ${MOZILLA_FIVE_HOME%/*} |
151 |
mv "${S}" "${D}"${MOZILLA_FIVE_HOME} || die |
152 |
|
153 |
# Fix prefs that make no sense for a system-wide install |
154 |
insinto ${MOZILLA_FIVE_HOME}/defaults/pref/ |
155 |
doins "${FILESDIR}"/local-settings.js |
156 |
# Copy preferences file so we can do a simple rename. |
157 |
cp "${FILESDIR}"/all-gentoo-1.js "${D}"${MOZILLA_FIVE_HOME}/all-gentoo.js |
158 |
|
159 |
# Install language packs |
160 |
mozlinguas_src_install |
161 |
|
162 |
local LANG=${linguas%% *} |
163 |
if [[ -n ${LANG} && ${LANG} != "en" ]]; then |
164 |
elog "Setting default locale to ${LANG}" |
165 |
echo "pref(\"general.useragent.locale\", \"${LANG}\");" \ |
166 |
>> "${D}${MOZILLA_FIVE_HOME}"/defaults/pref/${PN}-prefs.js || \ |
167 |
die "sed failed to change locale" |
168 |
fi |
169 |
|
170 |
# Create /usr/bin/firefox-bin |
171 |
dodir /usr/bin/ |
172 |
cat <<-EOF >"${D}"/usr/bin/${PN} |
173 |
#!/bin/sh |
174 |
unset LD_PRELOAD |
175 |
LD_LIBRARY_PATH="/opt/firefox/" |
176 |
GTK_PATH=/usr/lib/gtk-2.0/ |
177 |
exec /opt/${MOZ_PN}/${MOZ_PN} "\$@" |
178 |
EOF |
179 |
fperms 0755 /usr/bin/${PN} |
180 |
|
181 |
# revdep-rebuild entry |
182 |
insinto /etc/revdep-rebuild |
183 |
doins "${FILESDIR}"/10${PN} || die |
184 |
|
185 |
# Plugins dir |
186 |
share_plugins_dir |
187 |
|
188 |
# Required in order to use plugins and even run firefox on hardened. |
189 |
pax-mark mr "${ED}"/${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container} |
190 |
} |
191 |
|
192 |
pkg_preinst() { |
193 |
gnome2_icon_savelist |
194 |
} |
195 |
|
196 |
pkg_postinst() { |
197 |
if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \ |
198 |
|| ! has_version 'net-misc/curl'; then |
199 |
einfo |
200 |
einfo "For using the crashreporter, you need gnome-base/gconf," |
201 |
einfo "gnome-base/orbit and net-misc/curl emerged." |
202 |
einfo |
203 |
fi |
204 |
# Drop requirement of curl not built with nss as it's not necessary anymore |
205 |
#if has_version 'net-misc/curl[nss]'; then |
206 |
# einfo |
207 |
# einfo "Crashreporter won't be able to send reports" |
208 |
# einfo "if you have curl emerged with the nss USE-flag" |
209 |
# einfo |
210 |
#fi |
211 |
|
212 |
# Update mimedb for the new .desktop file |
213 |
fdo-mime_desktop_database_update |
214 |
gnome2_icon_cache_update |
215 |
} |
216 |
|
217 |
pkg_postrm() { |
218 |
gnome2_icon_cache_update |
219 |
} |