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