Gentoo Archives: gentoo-commits

From: "Jory Pratt (anarchy)" <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-client/thunderbird: ChangeLog thunderbird-7.0.1.ebuild thunderbird-6.0.ebuild thunderbird-6.0.2.ebuild
Date: Sat, 01 Oct 2011 01:45:41
Message-Id: 20111001014531.7072920036@flycatcher.gentoo.org
1 anarchy 11/10/01 01:45:31
2
3 Modified: ChangeLog
4 Added: thunderbird-7.0.1.ebuild
5 Removed: thunderbird-6.0.ebuild thunderbird-6.0.2.ebuild
6 Log:
7 Security bump with addon updater fixed
8
9 (Portage version: 2.1.10.20/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.96 mail-client/thunderbird/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.96&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.96&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?r1=1.95&r2=1.96
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v
21 retrieving revision 1.95
22 retrieving revision 1.96
23 diff -u -r1.95 -r1.96
24 --- ChangeLog 26 Sep 2011 15:50:46 -0000 1.95
25 +++ ChangeLog 1 Oct 2011 01:45:31 -0000 1.96
26 @@ -1,6 +1,14 @@
27 # ChangeLog for mail-client/thunderbird
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.95 2011/09/26 15:50:46 polynomial-c Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.96 2011/10/01 01:45:31 anarchy Exp $
31 +
32 +*thunderbird-7.0.1 (01 Oct 2011)
33 +
34 + 01 Oct 2011; Jory A. Pratt <anarchy@g.o> -thunderbird-6.0.ebuild,
35 + -thunderbird-6.0.2.ebuild, +thunderbird-7.0.1.ebuild,
36 + +files/Copy_xpcshell_only_if_tests_are_enabled.patch,
37 + -files/fix-thunderbird-calender-support.patch:
38 + Security bump with addon updater fixed
39
40 *thunderbird-6.0.2 (26 Sep 2011)
41 *thunderbird-3.1.14 (26 Sep 2011)
42
43
44
45 1.1 mail-client/thunderbird/thunderbird-7.0.1.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-7.0.1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-7.0.1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: thunderbird-7.0.1.ebuild
51 ===================================================================
52 # Copyright 1999-2011 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-7.0.1.ebuild,v 1.1 2011/10/01 01:45:31 anarchy Exp $
55
56 EAPI="3"
57 WANT_AUTOCONF="2.1"
58
59 inherit flag-o-matic toolchain-funcs mozconfig-3 makeedit multilib mozextension autotools pax-utils python check-reqs
60
61 TB_PV="${PV/_beta/b}"
62 TB_P="${PN}-${TB_PV}"
63 EMVER="1.3.2"
64
65 DESCRIPTION="Thunderbird Mail Client"
66 HOMEPAGE="http://www.mozilla.com/en-US/thunderbird/"
67
68 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
69 SLOT="0"
70 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
71 IUSE="bindist gconf +crashreporter +crypt +ipc +lightning mozdom"
72 PATCH="${PN}-7.0-patches-0.1"
73
74 FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/"
75 SRC_URI="${FTP_URI}/${TB_PV}/source/${TB_P}.source.tar.bz2
76 crypt? ( http://www.mozilla-enigmail.org/download/source/enigmail-${EMVER}.tar.gz )
77 http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.bz2"
78
79 if ! [[ ${PV} =~ alpha|beta ]]; then
80 # This list can be updated using get_langs.sh from the mozilla overlay
81 # Not supported yet bn-BD ro id zh-CN be af el pa-IN bg
82 LANGS="ar ca cs da de en en-GB en-US es-AR es-ES et eu fi fr \
83 fy-NL ga-IE he hu is it ja ko lt nb-NO nl nn-NO pl pt-BR pt-PT ru si \
84 sk sl sq sv-SE tr uk zh-TW"
85 NOSHORTLANGS="en-GB es-AR pt-BR zh-TW"
86
87 for X in ${LANGS} ; do
88 if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
89 SRC_URI="${SRC_URI}
90 linguas_${X/-/_}? ( ${FTP_URI}/${TB_PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )"
91 fi
92 IUSE="${IUSE} linguas_${X/-/_}"
93 # english is handled internally
94 if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
95 if [ "${X}" != "en-US" ]; then
96 SRC_URI="${SRC_URI}
97 linguas_${X%%-*}? ( ${FTP_URI}/${TB_PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )"
98 fi
99 IUSE="${IUSE} linguas_${X%%-*}"
100 fi
101 done
102 fi
103
104 RDEPEND=">=sys-devel/binutils-2.16.1
105 >=dev-libs/nss-3.12.10
106 >=dev-libs/nspr-4.8.8
107 gconf? ( >=gnome-base/gconf-1.2.1:2 )
108 media-libs/libpng[apng]
109 !x11-plugins/lightning
110 !x11-plugins/enigmail
111 system-sqlite? ( >=dev-db/sqlite-3.7.5[fts3,secure-delete,unlock-notify,debug=] )
112 crypt? ( || (
113 ( >=app-crypt/gnupg-2.0
114 || (
115 app-crypt/pinentry[gtk]
116 app-crypt/pinentry[qt4]
117 )
118 )
119 =app-crypt/gnupg-1.4*
120 ) )"
121
122 DEPEND="${RDEPEND}"
123
124 S="${WORKDIR}"/comm-release
125
126 linguas() {
127 local LANG SLANG
128 for LANG in ${LINGUAS}; do
129 if has ${LANG} en en_US; then
130 has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
131 continue
132 elif has ${LANG} ${LANGS//-/_}; then
133 has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
134 continue
135 elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
136 for X in ${LANGS}; do
137 if [[ "${X}" == "${LANG}-"* ]] && \
138 [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
139 has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
140 continue 2
141 fi
142 done
143 fi
144 ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA"
145 done
146 }
147
148 pkg_setup() {
149 moz_pkgsetup
150
151 if ! use bindist; then
152 elog "You are enabling official branding. You may not redistribute this build"
153 elog "to any users on your network or the internet. Doing so puts yourself into"
154 elog "a legal problem with Mozilla Foundation"
155 elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag"
156 fi
157
158 # Ensure we have enough disk space to compile
159 CHECKREQS_DISK_BUILD="4G"
160 check-reqs_pkg_setup
161 }
162
163 src_unpack() {
164 unpack ${A}
165
166 if ! [[ ${PV} =~ alpha|beta ]]; then
167 linguas
168 for X in ${linguas}; do
169 # FIXME: Add support for unpacking xpis to portage
170 [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi"
171 done
172 if [[ ${linguas} != "" && ${linguas} != "en" ]]; then
173 einfo "Selected language packs (first will be default): ${linguas}"
174 fi
175 fi
176 }
177
178 src_prepare() {
179 # Apply our patches
180 EPATCH_SUFFIX="patch" \
181 EPATCH_FORCE="yes" \
182 epatch "${WORKDIR}"
183
184 epatch "${FILESDIR}/Copy_xpcshell_only_if_tests_are_enabled.patch"
185
186 if use crypt ; then
187 mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail
188 cd "${S}"/mailnews/extensions/enigmail || die
189 ./makemake -r 2&> /dev/null
190 sed -i -e 's:@srcdir@:${S}/mailnews/extensions/enigmail:' Makefile.in
191 cd "${S}"
192 fi
193
194 #Fix compilation with curl-7.21.7 bug 376027
195 sed -e '/#include <curl\/types.h>/d' \
196 -i "${S}"/mozilla/toolkit/crashreporter/google-breakpad/src/common/linux/http_upload.cc \
197 -i "${S}"/mozilla/toolkit/crashreporter/google-breakpad/src/common/linux/libcurl_wrapper.cc \
198 -i "${S}"/mozilla/config/system-headers \
199 -i "${S}"/mozilla/js/src/config/system-headers || die "Sed failed"
200
201 # Allow user to apply any additional patches without modifing ebuild
202 epatch_user
203
204 eautoreconf
205
206 cd mozilla
207 eautoreconf
208 cd js/src
209 eautoreconf
210 }
211
212 src_configure() {
213 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
214 MEXTENSIONS="default"
215
216 ####################################
217 #
218 # mozconfig, CFLAGS and CXXFLAGS setup
219 #
220 ####################################
221
222 mozconfig_init
223 mozconfig_config
224
225 # It doesn't compile on alpha without this LDFLAGS
226 use alpha && append-ldflags "-Wl,--no-relax"
227
228 if use crypt ; then
229 # omni.jar breaks enigmail
230 mozconfig_annotate '' --enable-chrome-format=jar
231 fi
232 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
233 mozconfig_annotate '' --with-default-mozilla-five-home="${EPREFIX}${MOZILLA_FIVE_HOME}"
234 mozconfig_annotate '' --with-user-appdir=.thunderbird
235 mozconfig_annotate '' --with-system-png
236
237 # Use enable features
238 mozconfig_use_enable lightning calendar
239 mozconfig_use_enable gconf
240
241 # Bug #72667
242 if use mozdom; then
243 MEXTENSIONS="${MEXTENSIONS},inspector"
244 fi
245
246 # Finalize and report settings
247 mozconfig_final
248
249 ####################################
250 #
251 # Configure and build
252 #
253 ####################################
254
255 # Disable no-print-directory
256 MAKEOPTS=${MAKEOPTS/--no-print-directory/}
257
258 if [[ $(gcc-major-version) -lt 4 ]]; then
259 append-cxxflags -fno-stack-protector
260 elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]]; then
261 if use amd64 || use x86; then
262 append-flags -mno-avx
263 fi
264 fi
265
266 CPPFLAGS="${CPPFLAGS}" \
267 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
268 econf || die
269 }
270
271 src_compile() {
272 emake || die
273
274 # Only build enigmail extension if crypt enabled.
275 if use crypt ; then
276 emake -C "${S}"/mailnews/extensions/enigmail || die "make enigmail failed"
277 emake -C "${S}"/mailnews/extensions/enigmail xpi || die "make enigmail xpi failed"
278 fi
279 }
280
281 src_install() {
282 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
283
284 emake DESTDIR="${D}" install || die "emake install failed"
285
286 if use crypt ; then
287 cd "${T}" || die
288 unzip "${S}"/mozilla/dist/bin/enigmail*.xpi install.rdf || die
289 emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf)
290
291 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} || die
292 cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die
293 unzip "${S}"/mozilla/dist/bin/enigmail*.xpi || die
294 fi
295
296 if use lightning ; then
297 declare emid emd1 emid2
298
299 emid="{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}"
300 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
301 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid}
302 unzip "${S}"/mozilla/dist/xpi-stage/gdata-provider.xpi
303
304 emid1="calendar-timezones@×××××××.org"
305 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid1}
306 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid1}
307 unzip "${S}"/mozilla/dist/xpi-stage/calendar-timezones.xpi
308
309 emid2="{e2fda1a4-762b-4020-b5ad-a41df1933103}"
310 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid2}
311 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid2}
312 unzip "${S}"/mozilla/dist/xpi-stage/lightning.xpi
313 fi
314
315 if ! [[ ${PV} =~ alpha|beta ]]; then
316 linguas
317 for X in ${linguas}; do
318 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}"
319 done
320 fi
321
322 if ! use bindist; then
323 newicon "${S}"/other-licenses/branding/thunderbird/content/icon48.png thunderbird-icon.png
324 domenu "${FILESDIR}"/icon/${PN}.desktop
325 else
326 newicon "${S}"/mail/branding/unofficial/content/icon48.png thunderbird-icon-unbranded.png
327 newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \
328 ${PN}.desktop
329
330 sed -i -e "s:Mozilla\ Thunderbird:Lanikai:g" \
331 "${D}"/usr/share/applications/${PN}.desktop
332
333 fi
334
335 pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/thunderbird-bin
336
337 # Enable very specific settings for thunderbird-3
338 cp "${FILESDIR}"/thunderbird-gentoo-default-prefs-1.js \
339 "${ED}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \
340 die "failed to cp thunderbird-gentoo-default-prefs.js"
341 }