1 |
polynomial-c 11/12/23 01:10:17 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: firefox-bin-9.0.1.ebuild |
5 |
Removed: firefox-bin-9.0.ebuild |
6 |
Log: |
7 |
Version bump. Removed old |
8 |
|
9 |
(Portage version: 2.2.0_alpha81/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.77 www-client/firefox-bin/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?rev=1.77&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?rev=1.77&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/ChangeLog?r1=1.76&r2=1.77 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v |
21 |
retrieving revision 1.76 |
22 |
retrieving revision 1.77 |
23 |
diff -u -r1.76 -r1.77 |
24 |
--- ChangeLog 20 Dec 2011 13:49:18 -0000 1.76 |
25 |
+++ ChangeLog 23 Dec 2011 01:10:17 -0000 1.77 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for www-client/firefox-bin |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v 1.76 2011/12/20 13:49:18 polynomial-c Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v 1.77 2011/12/23 01:10:17 polynomial-c Exp $ |
31 |
+ |
32 |
+*firefox-bin-9.0.1 (23 Dec 2011) |
33 |
+ |
34 |
+ 23 Dec 2011; Lars Wendler <polynomial-c@g.o> -firefox-bin-9.0.ebuild, |
35 |
+ +firefox-bin-9.0.1.ebuild: |
36 |
+ Version bump. Removed old. |
37 |
|
38 |
*firefox-bin-9.0 (20 Dec 2011) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 www-client/firefox-bin/firefox-bin-9.0.1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-9.0.1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-client/firefox-bin/firefox-bin-9.0.1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: firefox-bin-9.0.1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 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-9.0.1.ebuild,v 1.1 2011/12/23 01:10:17 polynomial-c Exp $ |
53 |
|
54 |
EAPI="3" |
55 |
|
56 |
inherit eutils mozilla-launcher multilib mozextension pax-utils fdo-mime gnome2-utils |
57 |
|
58 |
# Can be updated using scripts/get_langs.sh from mozilla overlay |
59 |
LANGS=(af ak ar ast be bg bn-BD bn-IN br bs ca cs cy da de el en en-GB en-US |
60 |
en-ZA eo es-AR es-CL es-ES es-MX et eu fa fi fr fy-NL ga-IE gd gl gu-IN he hi-IN |
61 |
hr hu hy-AM id is it ja kk kn ko ku lg lt lv mai mk ml mr nb-NO nl nn-NO nso or |
62 |
pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta ta-LK te th tr uk vi |
63 |
zh-CN zh-TW zu) |
64 |
|
65 |
MY_PV="${PV/_rc/rc}" |
66 |
MY_PN="${PN/-bin}" |
67 |
MY_P="${MY_PN}-${MY_PV}" |
68 |
|
69 |
DESCRIPTION="Firefox Web Browser" |
70 |
FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MY_PN}/releases" |
71 |
SRC_URI=" |
72 |
amd64? ( ${FTP_URI}/${MY_PV}/linux-x86_64/en-US/${MY_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 ) |
73 |
x86? ( ${FTP_URI}/${MY_PV}/linux-i686/en-US/${MY_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )" |
74 |
HOMEPAGE="http://www.mozilla.com/firefox" |
75 |
RESTRICT="strip mirror" |
76 |
|
77 |
KEYWORDS="-* ~amd64 ~x86" |
78 |
SLOT="0" |
79 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
80 |
IUSE="startup-notification" |
81 |
|
82 |
for X in "${LANGS[@]}" ; do |
83 |
# en and en_US are handled internally |
84 |
if [[ ${X} != en ]] && [[ ${X} != en-US ]]; then |
85 |
SRC_URI="${SRC_URI} |
86 |
linguas_${X/-/_}? ( ${FTP_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin/}-${X}.xpi )" |
87 |
fi |
88 |
IUSE="${IUSE} linguas_${X/-/_}" |
89 |
# Install all the specific locale xpis if there's no generic locale xpi |
90 |
# Example: there's no pt.xpi, so install all pt-*.xpi |
91 |
if ! has ${X%%-*} "${LANGS[@]}"; then |
92 |
SRC_URI="${SRC_URI} |
93 |
linguas_${X%%-*}? ( ${FTP_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin/}-${X}.xpi )" |
94 |
IUSE="${IUSE} linguas_${X%%-*}" |
95 |
fi |
96 |
done |
97 |
|
98 |
DEPEND="app-arch/unzip" |
99 |
RDEPEND="dev-libs/dbus-glib |
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 |
|
108 |
S="${WORKDIR}/${MY_PN}" |
109 |
|
110 |
# TODO: Move all the linguas crap to an eclass |
111 |
linguas() { |
112 |
# Generate the list of language packs called "linguas" |
113 |
# This list is used to install the xpi language packs |
114 |
local LINGUA |
115 |
for LINGUA in ${LINGUAS}; do |
116 |
if has ${LINGUA} en en_US; then |
117 |
# For mozilla products, en and en_US are handled internally |
118 |
continue |
119 |
# If this language is supported by ${P}, |
120 |
elif has ${LINGUA} "${LANGS[@]//-/_}"; then |
121 |
# Add the language to linguas, if it isn't already there |
122 |
has ${LINGUA//_/-} "${linguas[@]}" || linguas+=(${LINGUA//_/-}) |
123 |
continue |
124 |
# For each short LINGUA that isn't in LANGS, |
125 |
# add *all* long LANGS to the linguas list |
126 |
elif ! has ${LINGUA%%-*} "${LANGS[@]}"; then |
127 |
for LANG in "${LANGS[@]}"; do |
128 |
if [[ ${LANG} == ${LINGUA}-* ]]; then |
129 |
has ${LANG} "${linguas[@]}" || linguas+=(${LANG}) |
130 |
continue 2 |
131 |
fi |
132 |
done |
133 |
fi |
134 |
ewarn "Sorry, but ${P} does not support the ${LINGUA} locale" |
135 |
done |
136 |
} |
137 |
|
138 |
src_unpack() { |
139 |
unpack ${A} |
140 |
|
141 |
linguas |
142 |
for X in "${linguas[@]}"; do |
143 |
# FIXME: Add support for unpacking xpis to portage |
144 |
[[ ${X} != "en" ]] && xpi_unpack "${P/-bin/}-${X}.xpi" |
145 |
done |
146 |
if [[ "${linguas[*]}" != "" && "${linguas[*]}" != "en" ]]; then |
147 |
einfo "Selected language packs (first will be default): ${linguas[*]}" |
148 |
fi |
149 |
} |
150 |
|
151 |
src_install() { |
152 |
declare MOZILLA_FIVE_HOME=/opt/${MY_PN} |
153 |
|
154 |
# Install icon and .desktop for menu entry |
155 |
newicon "${S}"/chrome/icons/default/default48.png ${PN}-icon.png |
156 |
domenu "${FILESDIR}"/${PN}.desktop |
157 |
|
158 |
# Add StartupNotify=true bug 237317 |
159 |
if use startup-notification; then |
160 |
echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}.desktop |
161 |
fi |
162 |
|
163 |
# Install firefox in /opt |
164 |
dodir ${MOZILLA_FIVE_HOME%/*} |
165 |
mv "${S}" "${D}"${MOZILLA_FIVE_HOME} || die |
166 |
|
167 |
# Fix prefs that make no sense for a system-wide install |
168 |
insinto ${MOZILLA_FIVE_HOME}/defaults/pref/ |
169 |
doins "${FILESDIR}"/${PN}-prefs.js || die |
170 |
|
171 |
linguas |
172 |
for X in "${linguas[@]}"; do |
173 |
[[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P/-bin/}-${X}" |
174 |
done |
175 |
|
176 |
local LANG=${linguas%% *} |
177 |
if [[ -n ${LANG} && ${LANG} != "en" ]]; then |
178 |
elog "Setting default locale to ${LANG}" |
179 |
echo "pref(\"general.useragent.locale\", \"${LANG}\");" \ |
180 |
>> "${D}${MOZILLA_FIVE_HOME}"/defaults/pref/${PN}-prefs.js || \ |
181 |
die "sed failed to change locale" |
182 |
fi |
183 |
|
184 |
# Create /usr/bin/firefox-bin |
185 |
dodir /usr/bin/ |
186 |
cat <<-EOF >"${D}"/usr/bin/${PN} |
187 |
#!/bin/sh |
188 |
unset LD_PRELOAD |
189 |
LD_LIBRARY_PATH="/opt/firefox/" |
190 |
GTK_PATH=/usr/lib/gtk-2.0/ |
191 |
exec /opt/${MY_PN}/${MY_PN} "\$@" |
192 |
EOF |
193 |
fperms 0755 /usr/bin/${PN} |
194 |
|
195 |
# revdep-rebuild entry |
196 |
insinto /etc/revdep-rebuild |
197 |
doins "${FILESDIR}"/10${PN} || die |
198 |
|
199 |
ln -sfn "/usr/$(get_libdir)/nsbrowser/plugins" \ |
200 |
"${D}${MOZILLA_FIVE_HOME}/plugins" || die |
201 |
|
202 |
# Required in order to use plugins and even run firefox on hardened. |
203 |
pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/{firefox,firefox-bin,plugin-container} |
204 |
} |
205 |
|
206 |
pkg_preinst() { |
207 |
gnome2_icon_savelist |
208 |
} |
209 |
|
210 |
pkg_postinst() { |
211 |
if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \ |
212 |
|| ! has_version 'net-misc/curl'; then |
213 |
einfo |
214 |
einfo "For using the crashreporter, you need gnome-base/gconf," |
215 |
einfo "gnome-base/orbit and net-misc/curl emerged." |
216 |
einfo |
217 |
fi |
218 |
if has_version 'net-misc/curl[nss]'; then |
219 |
einfo |
220 |
einfo "Crashreporter won't be able to send reports" |
221 |
einfo "if you have curl emerged with the nss USE-flag" |
222 |
einfo |
223 |
fi |
224 |
|
225 |
# Update mimedb for the new .desktop file |
226 |
fdo-mime_desktop_database_update |
227 |
gnome2_icon_cache_update |
228 |
} |
229 |
|
230 |
pkg_postrm() { |
231 |
update_mozilla_launcher_symlinks |
232 |
gnome2_icon_cache_update |
233 |
} |