Gentoo Archives: gentoo-commits

From: "Jory Pratt (anarchy)" <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/firefox-bin: firefox-bin-3.5.8.ebuild ChangeLog firefox-bin-3.5.7.ebuild
Date: Thu, 18 Feb 2010 02:43:41
Message-Id: E1NhwMY-0002Mk-Sj@stork.gentoo.org
1 anarchy 10/02/18 02:43:34
2
3 Modified: ChangeLog
4 Added: firefox-bin-3.5.8.ebuild
5 Removed: firefox-bin-3.5.7.ebuild
6 Log:
7 Security Bump
8 (Portage version: 2.1.7.17/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.8 www-client/firefox-bin/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/firefox-bin/ChangeLog?rev=1.8&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/firefox-bin/ChangeLog?rev=1.8&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/firefox-bin/ChangeLog?r1=1.7&r2=1.8
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v
20 retrieving revision 1.7
21 retrieving revision 1.8
22 diff -u -r1.7 -r1.8
23 --- ChangeLog 14 Feb 2010 23:38:45 -0000 1.7
24 +++ ChangeLog 18 Feb 2010 02:43:34 -0000 1.8
25 @@ -1,6 +1,12 @@
26 # ChangeLog for www-client/firefox-bin
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v 1.7 2010/02/14 23:38:45 anarchy Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/ChangeLog,v 1.8 2010/02/18 02:43:34 anarchy Exp $
30 +
31 +*firefox-bin-3.5.8 (18 Feb 2010)
32 +
33 + 18 Feb 2010; <anarchy@g.o> -firefox-bin-3.5.7.ebuild,
34 + +firefox-bin-3.5.8.ebuild:
35 + Security bump
36
37 *firefox-bin-3.6-r1 (14 Feb 2010)
38
39
40
41
42 1.1 www-client/firefox-bin/firefox-bin-3.5.8.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/firefox-bin/firefox-bin-3.5.8.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/firefox-bin/firefox-bin-3.5.8.ebuild?rev=1.1&content-type=text/plain
46
47 Index: firefox-bin-3.5.8.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/www-client/firefox-bin/firefox-bin-3.5.8.ebuild,v 1.1 2010/02/18 02:43:34 anarchy Exp $
52 EAPI="2"
53
54 inherit eutils mozilla-launcher multilib mozextension
55
56 LANGS="af ar be bg bn-IN ca cs cy da de el en-GB en-US eo es-AR es-ES et eu fa fi fr fy-NL ga-IE gl gu-IN he hi-IN hu id is it ja ka kk kn ko ku lt lv mk mr nb-NO nl nn-NO oc pa-IN pl pt-BR pt-PT ro ru si sk sl sq sr sv-SE ta te th uk vi zh-CN zh-TW"
57 NOSHORTLANGS="en-GB es-AR pt-BR zh-CN"
58
59 MY_PV="${PV/_rc/rc}"
60 MY_PN="${PN/-bin}"
61 MY_P="${MY_PN}-${MY_PV}"
62
63 DESCRIPTION="Firefox Web Browser"
64 REL_URI="http://releases.mozilla.org/pub/mozilla.org/${MY_PN}/releases/"
65 SRC_URI="${REL_URI}/${MY_PV}/linux-i686/en-US/${MY_P}.tar.bz2"
66 HOMEPAGE="http://www.mozilla.com/firefox"
67 RESTRICT="strip mirror"
68
69 KEYWORDS="-* ~amd64 ~x86"
70 SLOT="0"
71 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
72 IUSE="restrict-javascript startup-notification"
73
74 for X in ${LANGS} ; do
75 if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
76 SRC_URI="${SRC_URI}
77 linguas_${X/-/_}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${MY_P}-${X}.xpi )"
78 fi
79 IUSE="${IUSE} linguas_${X/-/_}"
80 # english is handled internally
81 if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
82 if [ "${X}" != "en-US" ]; then
83 SRC_URI="${SRC_URI}
84 linguas_${X%%-*}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${MY_P}-${X}.xpi )"
85 fi
86 IUSE="${IUSE} linguas_${X%%-*}"
87 fi
88 done
89
90 DEPEND="app-arch/unzip"
91 RDEPEND="dev-libs/dbus-glib
92 x11-libs/libXrender
93 x11-libs/libXt
94 x11-libs/libXmu
95 x86? (
96 >=x11-libs/gtk+-2.2
97 >=media-libs/alsa-lib-1.0.16
98 )
99 amd64? (
100 >=app-emulation/emul-linux-x86-baselibs-20081109
101 >=app-emulation/emul-linux-x86-gtklibs-20081109
102 >=app-emulation/emul-linux-x86-soundlibs-20081109
103 )"
104
105 PDEPEND="restrict-javascript? ( www-plugins/noscript )"
106
107 S="${WORKDIR}/${MY_PN}"
108
109 pkg_setup() {
110 # This is a binary x86 package => ABI=x86
111 # Please keep this in future versions
112 # Danny van Dyk <kugelfang@g.o> 2005/03/26
113 has_multilib_profile && ABI="x86"
114 }
115
116 linguas() {
117 local LANG SLANG
118 for LANG in ${LINGUAS}; do
119 if has ${LANG} en en_US; then
120 has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
121 continue
122 elif has ${LANG} ${LANGS//-/_}; then
123 has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
124 continue
125 elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
126 for X in ${LANGS}; do
127 if [[ "${X}" == "${LANG}-"* ]] && \
128 [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
129 has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
130 continue 2
131 fi
132 done
133 fi
134 ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA"
135 done
136 }
137
138 src_unpack() {
139 unpack ${MY_P}.tar.bz2
140
141 linguas
142 for X in ${linguas}; do
143 [[ ${X} != "en" ]] && xpi_unpack "${MY_P}-${X}.xpi"
144 done
145 if [[ ${linguas} != "" && ${linguas} != "en" ]]; then
146 einfo "Selected language packs (first will be default): ${linguas}"
147 fi
148 }
149
150 src_install() {
151 declare MOZILLA_FIVE_HOME=/opt/${MY_PN}
152
153 # Install icon and .desktop for menu entry
154 newicon "${S}"/chrome/icons/default/default48.png ${PN}-icon.png
155 domenu "${FILESDIR}"/${PN}.desktop
156
157 # Add StartupNotify=true bug 237317
158 if use startup-notification; then
159 echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}.desktop
160 fi
161
162 # Install firefox in /opt
163 dodir ${MOZILLA_FIVE_HOME%/*}
164 mv "${S}" "${D}"${MOZILLA_FIVE_HOME}
165
166 linguas
167 for X in ${linguas}; do
168 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P/-bin/}-${X}"
169 done
170
171 local LANG=${linguas%% *}
172 if [[ -n ${LANG} && ${LANG} != "en" ]]; then
173 elog "Setting default locale to ${LANG}"
174 sed -e "s:general.useragent.locale\", \"en-US\":general.useragent.locale\", \"${LANG}\":" \
175 -i "${D}${MOZILLA_FIVE_HOME}"/defaults/pref/${MY_PN}.js \
176 -i "${D}${MOZILLA_FIVE_HOME}"/defaults/pref/${MY_PN}-l10n.js || \
177 die "sed failed to change locale"
178 fi
179
180 # Create /usr/bin/firefox-bin
181 dodir /usr/bin/
182 cat <<EOF >"${D}"/usr/bin/${PN}
183 #!/bin/sh
184 unset LD_PRELOAD
185 LD_LIBRARY_PATH="/opt/firefox/"
186 exec /opt/${MY_PN}/${MY_PN} "\$@"
187 EOF
188 fperms 0755 /usr/bin/${PN}
189
190 # revdep-rebuild entry
191 insinto /etc/revdep-rebuild
192 doins "${FILESDIR}"/10${PN} || die
193
194 rm -rf "${D}"${MOZILLA_FIVE_HOME}/plugins
195 dosym /usr/"$(get_libdir)"/nsbrowser/plugins ${MOZILLA_FIVE_HOME}/plugins || die
196 }
197
198 pkg_postinst() {
199 if use x86; then
200 if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \
201 || ! has_version 'net-misc/curl'; then
202 einfo
203 einfo "For using the crashreporter, you need gnome-base/gconf,"
204 einfo "gnome-base/orbit and net-misc/curl emerged."
205 einfo
206 fi
207 if has_version 'net-misc/curl' && built_with_use --missing \
208 true 'net-misc/curl' nss; then
209 einfo
210 einfo "Crashreporter won't be able to send reports"
211 einfo "if you have curl emerged with the nss USE-flag"
212 einfo
213 fi
214 else
215 einfo
216 einfo "NB: You just installed a 32-bit ${MY_P}"
217 einfo
218 einfo "Crashreporter won't work on amd64"
219 einfo
220 fi
221 update_mozilla_launcher_symlinks
222 }
223
224 pkg_postrm() {
225 update_mozilla_launcher_symlinks
226 }