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