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-3.0_beta4.ebuild mozilla-thunderbird-bin-3.0_beta2.ebuild mozilla-thunderbird-bin-3.0_beta3.ebuild
Date: Sat, 31 Oct 2009 14:53:49
Message-Id: E1N4FKt-0006w8-Dk@stork.gentoo.org
1 armin76 09/10/31 14:53:47
2
3 Modified: ChangeLog
4 Added: mozilla-thunderbird-bin-3.0_beta4.ebuild
5 Removed: mozilla-thunderbird-bin-3.0_beta2.ebuild
6 mozilla-thunderbird-bin-3.0_beta3.ebuild
7 Log:
8 Version bump wrt #287881
9 (Portage version: 2.1.6.13/cvs/Linux i686)
10
11 Revision Changes Path
12 1.133 mail-client/mozilla-thunderbird-bin/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird-bin/ChangeLog?rev=1.133&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird-bin/ChangeLog?rev=1.133&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird-bin/ChangeLog?r1=1.132&r2=1.133
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird-bin/ChangeLog,v
21 retrieving revision 1.132
22 retrieving revision 1.133
23 diff -u -r1.132 -r1.133
24 --- ChangeLog 26 Aug 2009 13:43:04 -0000 1.132
25 +++ ChangeLog 31 Oct 2009 14:53:46 -0000 1.133
26 @@ -1,6 +1,14 @@
27 # ChangeLog for mail-client/mozilla-thunderbird-bin
28 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird-bin/ChangeLog,v 1.132 2009/08/26 13:43:04 armin76 Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird-bin/ChangeLog,v 1.133 2009/10/31 14:53:46 armin76 Exp $
31 +
32 +*mozilla-thunderbird-bin-3.0_beta4 (31 Oct 2009)
33 +
34 + 31 Oct 2009; Raúl Porcel <armin76@g.o>
35 + -mozilla-thunderbird-bin-3.0_beta2.ebuild,
36 + -mozilla-thunderbird-bin-3.0_beta3.ebuild,
37 + +mozilla-thunderbird-bin-3.0_beta4.ebuild:
38 + Version bump wrt #287881
39
40 *mozilla-thunderbird-bin-3.0_beta3 (26 Aug 2009)
41 *mozilla-thunderbird-bin-2.0.0.23 (26 Aug 2009)
42
43
44
45 1.1 mail-client/mozilla-thunderbird-bin/mozilla-thunderbird-bin-3.0_beta4.ebuild
46
47 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird-bin/mozilla-thunderbird-bin-3.0_beta4.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird-bin/mozilla-thunderbird-bin-3.0_beta4.ebuild?rev=1.1&content-type=text/plain
49
50 Index: mozilla-thunderbird-bin-3.0_beta4.ebuild
51 ===================================================================
52 # Copyright 1999-2009 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird-bin/mozilla-thunderbird-bin-3.0_beta4.ebuild,v 1.1 2009/10/31 14:53:46 armin76 Exp $
55 EAPI="2"
56
57 inherit eutils mozilla-launcher multilib mozextension
58
59 LANGS="af ar be ca cs de el en-US es-AR es-ES et eu fi fr fy-NL ga-IE hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR ro ru si sk sv-SE uk"
60 NOSHORTLANGS="es-AR"
61
62 MY_PV="${PV/_beta/b}"
63 MY_P="${PN}-${MY_PV}"
64
65 DESCRIPTION="Thunderbird Mail Client"
66 REL_URI="http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/"
67 SRC_URI="${REL_URI}/${MY_PV}/linux-i686/en-US/thunderbird-${MY_PV}.tar.bz2"
68 HOMEPAGE="http://www.mozilla.com/thunderbird"
69 RESTRICT="strip"
70
71 KEYWORDS="-* ~amd64 ~x86"
72 SLOT="0"
73 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
74 IUSE=""
75
76 for X in ${LANGS} ; do
77 if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
78 SRC_URI="${SRC_URI}
79 linguas_${X/-/_}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin/}-${X}.xpi )"
80 fi
81 IUSE="${IUSE} linguas_${X/-/_}"
82 # english is handled internally
83 if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
84 if [ "${X}" != "en-US" ]; then
85 SRC_URI="${SRC_URI}
86 linguas_${X%%-*}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin/}-${X}.xpi )"
87 fi
88 IUSE="${IUSE} linguas_${X%%-*}"
89 fi
90 done
91
92
93 DEPEND="app-arch/unzip"
94 RDEPEND="x11-libs/libXrender
95 x11-libs/libXt
96 x11-libs/libXmu
97 x86? (
98 >=x11-libs/gtk+-2.2
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-compat
104 )"
105
106 S="${WORKDIR}/thunderbird"
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 ${A}
139
140 linguas
141 for X in ${linguas}; do
142 [[ ${X} != en ]] && xpi_unpack ${MY_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/thunderbird"
151
152 # Install thunderbird in /opt
153 dodir ${MOZILLA_FIVE_HOME%/*}
154 mv "${S}" "${D}"${MOZILLA_FIVE_HOME}
155
156 linguas
157 for X in ${linguas}; do
158 [[ ${X} != en ]] && xpi_install ${WORKDIR}/${MY_P/-bin}-${X}
159 done
160
161 local LANG=${linguas%% *}
162 if [[ ${LANG} != "" && ${LANG} != "en" ]]; then
163 ebegin "Setting default locale to ${LANG}"
164 sed -i "s:pref(\"general.useragent.locale\", \"en-US\"):pref(\"general.useragent.locale\", \"${LANG}\"):" \
165 "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/all-thunderbird.js \
166 "${D}"${MOZILLA_FIVE_HOME}/defaults/pref/all-l10n.js
167 eend $? || die "sed failed to change locale"
168 fi
169
170 # Install /usr/bin/thunderbird-bin
171 make_wrapper thunderbird-bin "${MOZILLA_FIVE_HOME}/thunderbird"
172
173 # Install icon and .desktop for menu entry
174 doicon "${FILESDIR}"/icon/${PN}-icon.png
175 domenu "${FILESDIR}"/icon/${PN}.desktop
176
177 # revdep-rebuild entry
178 insinto /etc/revdep-rebuild
179 doins "${FILESDIR}"/10thunderbird-bin
180
181 # install ldpath env.d
182 doenvd "${FILESDIR}"/71thunderbird-bin
183 }
184
185 pkg_postinst() {
186 #elog "For enigmail, please see instructions at"
187 #elog " http://enigmail.mozdev.org/"
188
189 ewarn "Enigmail or probably any other extension won't work"
190 ewarn "with Thunderbird 3.0."
191
192 if use x86; then
193 if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' \
194 || ! has_version 'net-misc/curl'; then
195 einfo
196 einfo "For using the crashreporter, you need gnome-base/gconf,"
197 einfo "gnome-base/orbit and net-misc/curl emerged."
198 einfo
199 fi
200 if has_version 'net-misc/curl' && built_with_use --missing \
201 true 'net-misc/curl' nss; then
202 einfo
203 einfo "Crashreporter won't be able to send reports"
204 einfo "if you have curl emerged with the nss USE-flag"
205 einfo
206 fi
207 else
208 einfo
209 einfo "NB: You just installed a 32-bit thunderbird"
210 einfo
211 einfo "Crashreporter won't work on amd64"
212 einfo
213 fi
214 update_mozilla_launcher_symlinks
215 }
216
217 pkg_postrm() {
218 update_mozilla_launcher_symlinks
219 }