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