Gentoo Archives: gentoo-commits

From: "Raul Porcel (armin76)" <armin76@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-client/mozilla-thunderbird-bin: ChangeLog mozilla-thunderbird-bin-2.0.0.23.ebuild mozilla-thunderbird-bin-3.0_beta3.ebuild
Date: Wed, 26 Aug 2009 20:32:00
Message-Id: E1MgImG-0000Cs-SH@stork.gentoo.org
1 armin76 09/08/26 13:43:04
2
3 Modified: ChangeLog
4 Added: mozilla-thunderbird-bin-2.0.0.23.ebuild
5 mozilla-thunderbird-bin-3.0_beta3.ebuild
6 Log:
7 Version bump
8 (Portage version: 2.1.6.13/cvs/Linux ia64)
9
10 Revision Changes Path
11 1.132 mail-client/mozilla-thunderbird-bin/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird-bin/ChangeLog?rev=1.132&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird-bin/ChangeLog?rev=1.132&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird-bin/ChangeLog?r1=1.131&r2=1.132
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird-bin/ChangeLog,v
20 retrieving revision 1.131
21 retrieving revision 1.132
22 diff -u -r1.131 -r1.132
23 --- ChangeLog 28 Jun 2009 11:53:12 -0000 1.131
24 +++ ChangeLog 26 Aug 2009 13:43:04 -0000 1.132
25 @@ -1,6 +1,14 @@
26 # ChangeLog for mail-client/mozilla-thunderbird-bin
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird-bin/ChangeLog,v 1.131 2009/06/28 11:53:12 maekke Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird-bin/ChangeLog,v 1.132 2009/08/26 13:43:04 armin76 Exp $
30 +
31 +*mozilla-thunderbird-bin-3.0_beta3 (26 Aug 2009)
32 +*mozilla-thunderbird-bin-2.0.0.23 (26 Aug 2009)
33 +
34 + 26 Aug 2009; Raúl Porcel <armin76@g.o>
35 + +mozilla-thunderbird-bin-2.0.0.23.ebuild,
36 + +mozilla-thunderbird-bin-3.0_beta3.ebuild:
37 + Version bump
38
39 28 Jun 2009; Markus Meier <maekke@g.o>
40 mozilla-thunderbird-bin-2.0.0.22.ebuild:
41
42
43
44 1.1 mail-client/mozilla-thunderbird-bin/mozilla-thunderbird-bin-2.0.0.23.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird-bin/mozilla-thunderbird-bin-2.0.0.23.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird-bin/mozilla-thunderbird-bin-2.0.0.23.ebuild?rev=1.1&content-type=text/plain
48
49 Index: mozilla-thunderbird-bin-2.0.0.23.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/mail-client/mozilla-thunderbird-bin/mozilla-thunderbird-bin-2.0.0.23.ebuild,v 1.1 2009/08/26 13:43:04 armin76 Exp $
54
55 inherit eutils mozilla-launcher multilib mozextension
56
57 LANGS="af be bg ca cs da de el en-GB en-US es-AR es-ES eu fi fr ga-IE he hu it ja ko lt mk nb-NO nl nn-NO pa-IN pl pt-BR pt-PT ru sk sl sv-SE tr uk zh-CN zh-TW"
58 NOSHORTLANGS="en-GB es-AR pt-BR zh-TW"
59
60 DESCRIPTION="Thunderbird Mail Client"
61 SRC_URI="http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${PV}/linux-i686/en-US/thunderbird-${PV}.tar.gz"
62 HOMEPAGE="http://www.mozilla.com/thunderbird"
63 RESTRICT="strip"
64
65 KEYWORDS="-* ~amd64 ~x86"
66 SLOT="0"
67 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
68 IUSE=""
69
70 for X in ${LANGS} ; do
71 if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
72 SRC_URI="${SRC_URI}
73 linguas_${X/-/_}? ( http://dev.gentooexperimental.org/~armin76/dist/${P/-bin}-xpi/${P/-bin/}-${X}.xpi )"
74 fi
75 IUSE="${IUSE} linguas_${X/-/_}"
76 # english is handled internally
77 if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
78 if [ "${X}" != "en-US" ]; then
79 SRC_URI="${SRC_URI}
80 linguas_${X%%-*}? ( http://dev.gentooexperimental.org/~armin76/dist/${P/-bin}-xpi/${P/-bin/}-${X}.xpi )"
81 fi
82 IUSE="${IUSE} linguas_${X%%-*}"
83 fi
84 done
85
86 DEPEND="app-arch/unzip"
87 RDEPEND="x11-libs/libXrender
88 x11-libs/libXt
89 x11-libs/libXmu
90 x86? (
91 >=x11-libs/gtk+-2.2
92 =virtual/libstdc++-3.3
93 )
94 amd64? (
95 >=app-emulation/emul-linux-x86-baselibs-1.0
96 >=app-emulation/emul-linux-x86-gtklibs-1.0
97 app-emulation/emul-linux-x86-compat
98 )
99 >=www-client/mozilla-launcher-1.41"
100
101 S="${WORKDIR}/thunderbird"
102
103 pkg_setup() {
104 # This is a binary x86 package => ABI=x86
105 # Please keep this in future versions
106 # Danny van Dyk <kugelfang@g.o> 2005/03/26
107 has_multilib_profile && ABI="x86"
108 }
109
110 linguas() {
111 local LANG SLANG
112 for LANG in ${LINGUAS}; do
113 if has ${LANG} en en_US; then
114 has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
115 continue
116 elif has ${LANG} ${LANGS//-/_}; then
117 has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
118 continue
119 elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
120 for X in ${LANGS}; do
121 if [[ "${X}" == "${LANG}-"* ]] && \
122 [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
123 has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
124 continue 2
125 fi
126 done
127 fi
128 ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA"
129 done
130 }
131
132 src_unpack() {
133 unpack thunderbird-${PV}.tar.gz
134
135 linguas
136 for X in ${linguas}; do
137 [[ ${X} != en ]] && xpi_unpack ${P/-bin}-${X}.xpi
138 done
139 if [[ ${linguas} != "" && ${linguas} != "en" ]]; then
140 einfo "Selected language packs (first will be default): ${linguas}"
141 fi
142 }
143
144 src_install() {
145 declare MOZILLA_FIVE_HOME="/opt/thunderbird"
146
147 # Install thunderbird in /opt
148 dodir ${MOZILLA_FIVE_HOME%/*}
149 mv "${S}" "${D}"${MOZILLA_FIVE_HOME}
150
151 linguas
152 for X in ${linguas}; do
153 [[ ${X} != en ]] && xpi_install ${WORKDIR}/${P/-bin}-${X}
154 done
155
156 local LANG=${linguas%% *}
157 if [[ ${LANG} != "" && ${LANG} != "en" ]]; then
158 ebegin "Setting default locale to ${LANG}"
159 sed -i "s:pref(\"general.useragent.locale\", \"en-US\"):pref(\"general.useragent.locale\", \"${LANG}\"):" \
160 "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/all-thunderbird.js \
161 "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/all-l10n.js
162 eend $? || die "sed failed to change locale"
163 fi
164
165 # Install /usr/bin/thunderbird-bin
166 install_mozilla_launcher_stub thunderbird-bin ${MOZILLA_FIVE_HOME}
167
168 # Install icon and .desktop for menu entry
169 doicon "${FILESDIR}"/icon/${PN}-icon.png
170 domenu "${FILESDIR}"/icon/${PN}.desktop
171
172 # revdep-rebuild entry
173 insinto /etc/revdep-rebuild
174 doins "${FILESDIR}"/10thunderbird-bin
175
176 # install ldpath env.d
177 doenvd "${FILESDIR}"/71thunderbird-bin
178 }
179
180 pkg_postinst() {
181 elog "For enigmail, please see instructions at"
182 elog " http://enigmail.mozdev.org/"
183
184 use amd64 && einfo "NB: You just installed a 32-bit thunderbird"
185 update_mozilla_launcher_symlinks
186 }
187
188 pkg_postrm() {
189 update_mozilla_launcher_symlinks
190 }
191
192
193
194 1.1 mail-client/mozilla-thunderbird-bin/mozilla-thunderbird-bin-3.0_beta3.ebuild
195
196 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird-bin/mozilla-thunderbird-bin-3.0_beta3.ebuild?rev=1.1&view=markup
197 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird-bin/mozilla-thunderbird-bin-3.0_beta3.ebuild?rev=1.1&content-type=text/plain
198
199 Index: mozilla-thunderbird-bin-3.0_beta3.ebuild
200 ===================================================================
201 # Copyright 1999-2009 Gentoo Foundation
202 # Distributed under the terms of the GNU General Public License v2
203 # $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird-bin/mozilla-thunderbird-bin-3.0_beta3.ebuild,v 1.1 2009/08/26 13:43:04 armin76 Exp $
204
205 inherit eutils mozilla-launcher multilib mozextension
206
207 LANGS="af ar be ca cs de el en-US es-AR es-ES et eu fi fr fy-NL ga-IE gl hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR ro ru si sk sv-SE uk vi zh-CN"
208 NOSHORTLANGS="es-AR"
209
210 MY_PV="${PV/_beta/b}"
211 MY_P="${PN}-${MY_PV}"
212
213 DESCRIPTION="Thunderbird Mail Client"
214 SRC_URI="http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${MY_PV}/linux-i686/en-US/thunderbird-${MY_PV}.tar.bz2"
215 HOMEPAGE="http://www.mozilla.com/thunderbird"
216 RESTRICT="strip"
217
218 KEYWORDS="-* ~amd64 ~x86"
219 SLOT="0"
220 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
221 IUSE=""
222
223 for X in ${LANGS} ; do
224 if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
225 SRC_URI="${SRC_URI}
226 linguas_${X/-/_}? ( http://dev.gentooexperimental.org/~armin76/dist/${MY_P/-bin}-xpi/${MY_P/-bin/}-${X}.xpi )"
227 fi
228 IUSE="${IUSE} linguas_${X/-/_}"
229 # english is handled internally
230 if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
231 if [ "${X}" != "en-US" ]; then
232 SRC_URI="${SRC_URI}
233 linguas_${X%%-*}? ( http://dev.gentooexperimental.org/~armin76/dist/${MY_P/-bin}-xpi/${MY_P/-bin/}-${X}.xpi )"
234 fi
235 IUSE="${IUSE} linguas_${X%%-*}"
236 fi
237 done
238
239 DEPEND="app-arch/unzip"
240 RDEPEND="x11-libs/libXrender
241 x11-libs/libXt
242 x11-libs/libXmu
243 x86? (
244 >=x11-libs/gtk+-2.2
245 )
246 amd64? (
247 >=app-emulation/emul-linux-x86-baselibs-1.0
248 >=app-emulation/emul-linux-x86-gtklibs-1.0
249 app-emulation/emul-linux-x86-compat
250 )"
251
252 S="${WORKDIR}/thunderbird"
253
254 pkg_setup() {
255 # This is a binary x86 package => ABI=x86
256 # Please keep this in future versions
257 # Danny van Dyk <kugelfang@g.o> 2005/03/26
258 has_multilib_profile && ABI="x86"
259 }
260
261 linguas() {
262 local LANG SLANG
263 for LANG in ${LINGUAS}; do
264 if has ${LANG} en en_US; then
265 has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
266 continue
267 elif has ${LANG} ${LANGS//-/_}; then
268 has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
269 continue
270 elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
271 for X in ${LANGS}; do
272 if [[ "${X}" == "${LANG}-"* ]] && \
273 [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
274 has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
275 continue 2
276 fi
277 done
278 fi
279 ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA"
280 done
281 }
282
283 src_unpack() {
284 unpack ${A}
285
286 linguas
287 for X in ${linguas}; do
288 [[ ${X} != en ]] && xpi_unpack ${MY_P/-bin}-${X}.xpi
289 done
290 if [[ ${linguas} != "" && ${linguas} != "en" ]]; then
291 einfo "Selected language packs (first will be default): ${linguas}"
292 fi
293 }
294
295 src_install() {
296 declare MOZILLA_FIVE_HOME="/opt/thunderbird"
297
298 # Install thunderbird in /opt
299 dodir ${MOZILLA_FIVE_HOME%/*}
300 mv "${S}" "${D}"${MOZILLA_FIVE_HOME}
301
302 linguas
303 for X in ${linguas}; do
304 [[ ${X} != en ]] && xpi_install ${WORKDIR}/${MY_P/-bin}-${X}
305 done
306
307 local LANG=${linguas%% *}
308 if [[ ${LANG} != "" && ${LANG} != "en" ]]; then
309 ebegin "Setting default locale to ${LANG}"
310 sed -i "s:pref(\"general.useragent.locale\", \"en-US\"):pref(\"general.useragent.locale\", \"${LANG}\"):" \
311 "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/all-thunderbird.js \
312 "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/all-l10n.js
313 eend $? || die "sed failed to change locale"
314 fi
315
316 # Install /usr/bin/thunderbird-bin
317 make_wrapper thunderbird-bin "${MOZILLA_FIVE_HOME}/thunderbird"
318
319 # Install icon and .desktop for menu entry
320 doicon "${FILESDIR}"/icon/${PN}-icon.png
321 domenu "${FILESDIR}"/icon/${PN}.desktop
322
323 # revdep-rebuild entry
324 insinto /etc/revdep-rebuild
325 doins "${FILESDIR}"/10thunderbird-bin
326
327 # install ldpath env.d
328 doenvd "${FILESDIR}"/71thunderbird-bin
329 }
330
331 pkg_postinst() {
332 #elog "For enigmail, please see instructions at"
333 #elog " http://enigmail.mozdev.org/"
334
335 ewarn "Enigmail or probably any other extension won't work"
336 ewarn "with Thunderbird 3.0."
337
338 if use x86; then
339 if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \
340 || ! has_version 'net-misc/curl'; then
341 einfo
342 einfo "For using the crashreporter, you need gnome-base/gconf,"
343 einfo "gnome-base/orbit and net-misc/curl emerged."
344 einfo
345 fi
346 if has_version 'net-misc/curl' && built_with_use --missing \
347 true 'net-misc/curl' nss; then
348 einfo
349 einfo "Crashreporter won't be able to send reports"
350 einfo "if you have curl emerged with the nss USE-flag"
351 einfo
352 fi
353 else
354 einfo
355 einfo "NB: You just installed a 32-bit thunderbird"
356 einfo
357 einfo "Crashreporter won't work on amd64"
358 einfo
359 fi
360 update_mozilla_launcher_symlinks
361 }
362
363 pkg_postrm() {
364 update_mozilla_launcher_symlinks
365 }