Gentoo Archives: gentoo-commits

From: "Raul Porcel (armin76)" <armin76@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-client/mozilla-firefox-bin: mozilla-firefox-bin-3.5.4.ebuild ChangeLog mozilla-firefox-bin-3.0.11.ebuild mozilla-firefox-bin-2.0.0.19.ebuild mozilla-firefox-bin-3.0.13.ebuild mozilla-firefox-bin-3.5.2.ebuild
Date: Wed, 28 Oct 2009 17:51:14
Message-Id: E1N3Cfv-0001hv-Nk@stork.gentoo.org
1 armin76 09/10/28 17:51:11
2
3 Modified: ChangeLog
4 Added: mozilla-firefox-bin-3.5.4.ebuild
5 Removed: mozilla-firefox-bin-3.0.11.ebuild
6 mozilla-firefox-bin-2.0.0.19.ebuild
7 mozilla-firefox-bin-3.0.13.ebuild
8 mozilla-firefox-bin-3.5.2.ebuild
9 Log:
10 Version bump, remove old
11 (Portage version: 2.1.6.13/cvs/Linux ia64)
12
13 Revision Changes Path
14 1.210 www-client/mozilla-firefox-bin/ChangeLog
15
16 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox-bin/ChangeLog?rev=1.210&view=markup
17 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox-bin/ChangeLog?rev=1.210&content-type=text/plain
18 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox-bin/ChangeLog?r1=1.209&r2=1.210
19
20 Index: ChangeLog
21 ===================================================================
22 RCS file: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox-bin/ChangeLog,v
23 retrieving revision 1.209
24 retrieving revision 1.210
25 diff -u -r1.209 -r1.210
26 --- ChangeLog 25 Oct 2009 20:12:54 -0000 1.209
27 +++ ChangeLog 28 Oct 2009 17:51:11 -0000 1.210
28 @@ -1,6 +1,14 @@
29 # ChangeLog for www-client/mozilla-firefox-bin
30 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
31 -# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox-bin/ChangeLog,v 1.209 2009/10/25 20:12:54 ssuominen Exp $
32 +# $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox-bin/ChangeLog,v 1.210 2009/10/28 17:51:11 armin76 Exp $
33 +
34 +*mozilla-firefox-bin-3.5.4 (28 Oct 2009)
35 +
36 + 28 Oct 2009; Raúl Porcel <armin76@g.o>
37 + -mozilla-firefox-bin-2.0.0.19.ebuild, -mozilla-firefox-bin-3.0.11.ebuild,
38 + -mozilla-firefox-bin-3.0.13.ebuild, -mozilla-firefox-bin-3.5.2.ebuild,
39 + +mozilla-firefox-bin-3.5.4.ebuild:
40 + Version bump, remove old
41
42 25 Oct 2009; Samuli Suominen <ssuominen@g.o>
43 mozilla-firefox-bin-3.5.3.ebuild:
44
45
46
47 1.1 www-client/mozilla-firefox-bin/mozilla-firefox-bin-3.5.4.ebuild
48
49 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox-bin/mozilla-firefox-bin-3.5.4.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-client/mozilla-firefox-bin/mozilla-firefox-bin-3.5.4.ebuild?rev=1.1&content-type=text/plain
51
52 Index: mozilla-firefox-bin-3.5.4.ebuild
53 ===================================================================
54 # Copyright 1999-2009 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/www-client/mozilla-firefox-bin/mozilla-firefox-bin-3.5.4.ebuild,v 1.1 2009/10/28 17:51:11 armin76 Exp $
57 EAPI="2"
58
59 inherit eutils mozilla-launcher multilib mozextension
60
61 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"
62 NOSHORTLANGS="en-GB es-AR pt-BR zh-CN"
63
64 MY_PV="${PV/_rc/rc}"
65 MY_P="${PN/-bin/}-${MY_PV}"
66
67 DESCRIPTION="Firefox Web Browser"
68 REL_URI="http://releases.mozilla.org/pub/mozilla.org/firefox/releases/"
69 SRC_URI="${REL_URI}/${MY_PV}/linux-i686/en-US/firefox-${MY_PV}.tar.bz2"
70 HOMEPAGE="http://www.mozilla.com/firefox"
71 RESTRICT="strip"
72
73 KEYWORDS="-* ~amd64 ~x86"
74 SLOT="0"
75 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
76 IUSE="restrict-javascript"
77
78 for X in ${LANGS} ; do
79 if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
80 SRC_URI="${SRC_URI}
81 linguas_${X/-/_}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin/}-${X}.xpi )"
82 fi
83 IUSE="${IUSE} linguas_${X/-/_}"
84 # english is handled internally
85 if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
86 if [ "${X}" != "en-US" ]; then
87 SRC_URI="${SRC_URI}
88 linguas_${X%%-*}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin/}-${X}.xpi )"
89 fi
90 IUSE="${IUSE} linguas_${X%%-*}"
91 fi
92 done
93
94 DEPEND="app-arch/unzip"
95 RDEPEND="dev-libs/dbus-glib
96 x11-libs/libXrender
97 x11-libs/libXt
98 x11-libs/libXmu
99 x86? (
100 >=x11-libs/gtk+-2.2
101 >=media-libs/alsa-lib-1.0.16
102 )
103 amd64? (
104 >=app-emulation/emul-linux-x86-baselibs-1.0
105 >=app-emulation/emul-linux-x86-gtklibs-1.0
106 >=app-emulation/emul-linux-x86-soundlibs-20080418
107 app-emulation/emul-linux-x86-compat
108 )"
109
110 PDEPEND="restrict-javascript? ( www-plugins/noscript )"
111
112 S="${WORKDIR}/firefox"
113
114 pkg_setup() {
115 # This is a binary x86 package => ABI=x86
116 # Please keep this in future versions
117 # Danny van Dyk <kugelfang@g.o> 2005/03/26
118 has_multilib_profile && ABI="x86"
119 }
120
121 linguas() {
122 local LANG SLANG
123 for LANG in ${LINGUAS}; do
124 if has ${LANG} en en_US; then
125 has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
126 continue
127 elif has ${LANG} ${LANGS//-/_}; then
128 has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
129 continue
130 elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
131 for X in ${LANGS}; do
132 if [[ "${X}" == "${LANG}-"* ]] && \
133 [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
134 has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
135 continue 2
136 fi
137 done
138 fi
139 ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA"
140 done
141 }
142
143 src_unpack() {
144 unpack firefox-${MY_PV}.tar.bz2
145
146 linguas
147 for X in ${linguas}; do
148 [[ ${X} != "en" ]] && xpi_unpack "${P/-bin/}-${X}.xpi"
149 done
150 if [[ ${linguas} != "" && ${linguas} != "en" ]]; then
151 einfo "Selected language packs (first will be default): ${linguas}"
152 fi
153 }
154
155 src_install() {
156 declare MOZILLA_FIVE_HOME=/opt/firefox
157
158 # Install icon and .desktop for menu entry
159 newicon "${S}"/chrome/icons/default/default48.png ${PN}-icon.png
160 domenu "${FILESDIR}"/icon/${PN}.desktop
161
162 # Add StartupNotify=true bug 237317
163 if use startup-notification; then
164 echo "StartupNotify=true" >> "${D}"/usr/share/applications/${PN}.desktop
165 fi
166
167 # Install firefox in /opt
168 dodir ${MOZILLA_FIVE_HOME%/*}
169 mv "${S}" "${D}"${MOZILLA_FIVE_HOME}
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 dosed -e "s:general.useragent.locale\", \"en-US\":general.useragent.locale\", \"${LANG}\":" \
180 "${MOZILLA_FIVE_HOME}"/defaults/pref/firefox.js \
181 "${MOZILLA_FIVE_HOME}"/defaults/pref/firefox-l10n.js || \
182 die "sed failed to change locale"
183 fi
184
185 # Create /usr/bin/firefox-bin
186 dodir /usr/bin/
187 cat <<EOF >"${D}"/usr/bin/firefox-bin
188 #!/bin/sh
189 unset LD_PRELOAD
190 exec /opt/firefox/firefox "\$@"
191 EOF
192 fperms 0755 /usr/bin/firefox-bin
193
194 # revdep-rebuild entry
195 insinto /etc/revdep-rebuild
196 doins "${FILESDIR}"/10firefox-bin
197
198 # install ldpath env.d
199 doenvd "${FILESDIR}"/71firefox-bin
200
201 rm -rf "${D}"${MOZILLA_FIVE_HOME}/plugins
202 dosym /usr/"$(get_libdir)"/nsbrowser/plugins ${MOZILLA_FIVE_HOME}/plugins
203 }
204
205 pkg_postinst() {
206 if use x86; then
207 if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \
208 || ! has_version 'net-misc/curl'; then
209 einfo
210 einfo "For using the crashreporter, you need gnome-base/gconf,"
211 einfo "gnome-base/orbit and net-misc/curl emerged."
212 einfo
213 fi
214 if has_version 'net-misc/curl' && built_with_use --missing \
215 true 'net-misc/curl' nss; then
216 einfo
217 einfo "Crashreporter won't be able to send reports"
218 einfo "if you have curl emerged with the nss USE-flag"
219 einfo
220 fi
221 else
222 einfo
223 einfo "NB: You just installed a 32-bit firefox"
224 einfo
225 einfo "Crashreporter won't work on amd64"
226 einfo
227 fi
228 update_mozilla_launcher_symlinks
229 }
230
231 pkg_postrm() {
232 update_mozilla_launcher_symlinks
233 }