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