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