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: thunderbird-11.0.1.ebuild ChangeLog thunderbird-11.0-r1.ebuild
Date: Fri, 30 Mar 2012 00:26:36
Message-Id: 20120330002626.03E9B2004B@flycatcher.gentoo.org
1 anarchy 12/03/30 00:26:25
2
3 Modified: ChangeLog
4 Added: thunderbird-11.0.1.ebuild
5 Removed: thunderbird-11.0-r1.ebuild
6 Log:
7 Fix possible imap issues, fix issue where mail rules might be erronously changed
8
9 (Portage version: 2.1.10.52/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.134 mail-client/thunderbird/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.134&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.134&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?r1=1.133&r2=1.134
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v
21 retrieving revision 1.133
22 retrieving revision 1.134
23 diff -u -r1.133 -r1.134
24 --- ChangeLog 28 Mar 2012 01:01:40 -0000 1.133
25 +++ ChangeLog 30 Mar 2012 00:26:25 -0000 1.134
26 @@ -1,6 +1,13 @@
27 # ChangeLog for mail-client/thunderbird
28 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.133 2012/03/28 01:01:40 anarchy Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.134 2012/03/30 00:26:25 anarchy Exp $
31 +
32 +*thunderbird-11.0.1 (30 Mar 2012)
33 +
34 + 30 Mar 2012; Jory A. Pratt <anarchy@g.o> -thunderbird-11.0-r1.ebuild,
35 + +thunderbird-11.0.1.ebuild:
36 + Fix possible imap issues, fix issue where mail rules might be erronously
37 + changed
38
39 28 Mar 2012; Jory A. Pratt <anarchy@g.o> -thunderbird-11.0.ebuild,
40 thunderbird-11.0-r1.ebuild:
41
42
43
44 1.1 mail-client/thunderbird/thunderbird-11.0.1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-11.0.1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-11.0.1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: thunderbird-11.0.1.ebuild
50 ===================================================================
51 # Copyright 1999-2012 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-11.0.1.ebuild,v 1.1 2012/03/30 00:26:25 anarchy Exp $
54
55 EAPI="3"
56 WANT_AUTOCONF="2.1"
57 MOZ_ESR=""
58
59 # This list can be updated using scripts/get_langs.sh from the mozilla overlay
60 MOZ_LANGS=(ar ast be bg bn-BD br ca cs da de el en en-GB en-US es-AR es-ES et eu fi
61 fr fy-NL ga-IE gd gl he hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR pt-PT
62 rm ro ru si sk sl sq sr sv-SE ta-LK tr uk vi zh-CN zh-TW)
63
64 # Convert the ebuild version to the upstream mozilla version, used by mozlinguas
65 MOZ_PV="${PV/_beta/b}"
66 # ESR releases have slightly version numbers
67 if [[ ${MOZ_ESR} == 1 ]]; then
68 MOZ_PV="${MOZ_PV}esr"
69 fi
70 MOZ_P="${PN}-${MOZ_PV}"
71
72 # Enigmail version
73 EMVER="1.4"
74 # Upstream ftp release URI that's used by mozlinguas.eclass
75 # We don't use the http mirror because it deletes old tarballs.
76 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/"
77
78 inherit flag-o-matic toolchain-funcs mozconfig-3 makeedit multilib autotools pax-utils python check-reqs nsplugins mozlinguas
79
80 DESCRIPTION="Thunderbird Mail Client"
81 HOMEPAGE="http://www.mozilla.com/en-US/thunderbird/"
82
83 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
84 SLOT="0"
85 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
86 IUSE="bindist gconf +crashreporter +crypt +ipc +lightning +minimal mozdom +webm"
87
88 PATCH="thunderbird-10.0-patches-0.1"
89 PATCHFF="firefox-11.0-patches-0.4"
90
91 SRC_URI="${SRC_URI}
92 ${MOZ_FTP_URI}${MOZ_PV}/source/${MOZ_P}.source.tar.bz2
93 crypt? ( http://www.mozilla-enigmail.org/download/source/enigmail-${EMVER}.tar.gz )
94 http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.xz
95 http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz"
96
97 ASM_DEPEND=">=dev-lang/yasm-1.1"
98
99 RDEPEND=">=sys-devel/binutils-2.16.1
100 >=dev-libs/nss-3.13.3
101 >=dev-libs/nspr-4.9
102 >=dev-libs/glib-2.26
103 crashreporter? ( net-misc/curl )
104 gconf? ( >=gnome-base/gconf-1.2.1:2 )
105 media-libs/libpng[apng]
106 >=x11-libs/cairo-1.10
107 >=x11-libs/pango-1.14.0
108 >=x11-libs/gtk+-2.14
109 webm? ( >=media-libs/libvpx-1.0.0
110 media-libs/alsa-lib )
111 virtual/libffi
112 !x11-plugins/enigmail
113 system-sqlite? ( >=dev-db/sqlite-3.7.7.1[fts3,secure-delete,unlock-notify,debug=] )
114 crypt? ( || (
115 ( >=app-crypt/gnupg-2.0
116 || (
117 app-crypt/pinentry[gtk]
118 app-crypt/pinentry[qt4]
119 )
120 )
121 =app-crypt/gnupg-1.4*
122 ) )"
123
124 DEPEND="${RDEPEND}
125 dev-util/pkgconfig
126 webm? ( x86? ( ${ASM_DEPEND} )
127 amd64? ( ${ASM_DEPEND} )
128 virtual/opengl )"
129
130 if [[ ${PV} =~ beta ]]; then
131 S="${WORKDIR}/comm-beta"
132 elif [[ ${MOZ_ESR} == 1 ]]; then
133 S="${WORKDIR}/comm-esr${PV%%.*}"
134 else
135 S="${WORKDIR}/comm-release"
136 fi
137
138 pkg_setup() {
139 moz_pkgsetup
140
141 export MOZILLA_DIR="${S}/mozilla"
142
143 if ! use bindist ; then
144 elog "You are enabling official branding. You may not redistribute this build"
145 elog "to any users on your network or the internet. Doing so puts yourself into"
146 elog "a legal problem with Mozilla Foundation"
147 elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag"
148 elog
149 fi
150
151 # Ensure we have enough disk space to compile
152 CHECKREQS_DISK_BUILD="4G"
153 check-reqs_pkg_setup
154 }
155
156 src_unpack() {
157 unpack ${A}
158
159 # Unpack language packs
160 mozlinguas_src_unpack
161 }
162
163 src_prepare() {
164 # Apply our Thunderbird patchset
165 EPATCH_SUFFIX="patch" \
166 EPATCH_FORCE="yes" \
167 epatch "${WORKDIR}/thunderbird"
168
169 # Apply our patchset from firefox to thunderbird as well
170 pushd "${S}"/mozilla &>/dev/null || die
171 EPATCH_SUFFIX="patch" \
172 EPATCH_FORCE="yes" \
173 epatch "${WORKDIR}/firefox"
174 popd &>/dev/null || die
175
176 if use crypt ; then
177 mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail
178 cd "${S}"
179 fi
180
181 #Fix compilation with curl-7.21.7 bug 376027
182 sed -e '/#include <curl\/types.h>/d' \
183 -i "${S}"/mozilla/toolkit/crashreporter/google-breakpad/src/common/linux/http_upload.cc \
184 -i "${S}"/mozilla/toolkit/crashreporter/google-breakpad/src/common/linux/libcurl_wrapper.cc \
185 -i "${S}"/mozilla/config/system-headers \
186 -i "${S}"/mozilla/js/src/config/system-headers || die "Sed failed"
187
188 # Allow user to apply any additional patches without modifing ebuild
189 epatch_user
190
191 eautoreconf
192 # Ensure we run eautoreconf in mozilla to regenerate configure
193 cd "${S}"/mozilla
194 eautoconf
195 }
196
197 src_configure() {
198 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
199 MEXTENSIONS="default"
200
201 ####################################
202 #
203 # mozconfig, CFLAGS and CXXFLAGS setup
204 #
205 ####################################
206
207 mozconfig_init
208 mozconfig_config
209
210 # It doesn't compile on alpha without this LDFLAGS
211 use alpha && append-ldflags "-Wl,--no-relax"
212
213 mozconfig_annotate '' --prefix="${EPREFIX}"/usr
214 mozconfig_annotate '' --libdir="${EPREFIX}"/usr/$(get_libdir)
215 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
216 mozconfig_annotate '' --with-default-mozilla-five-home="${EPREFIX}${MOZILLA_FIVE_HOME}"
217 mozconfig_annotate '' --with-user-appdir=.thunderbird
218 mozconfig_annotate '' --with-system-png
219 mozconfig_annotate '' --enable-system-ffi
220 mozconfig_annotate '' --target="${CTARGET:-${CHOST}}"
221
222 # Use enable features
223 mozconfig_use_enable lightning calendar
224 mozconfig_use_enable gconf
225
226 # Bug #72667
227 if use mozdom; then
228 MEXTENSIONS="${MEXTENSIONS},inspector"
229 fi
230
231 # Use an objdir to keep things organized.
232 echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/tbird" >> "${S}"/.mozconfig
233
234 # Finalize and report settings
235 mozconfig_final
236
237 ####################################
238 #
239 # Configure and build
240 #
241 ####################################
242
243 # Disable no-print-directory
244 MAKEOPTS=${MAKEOPTS/--no-print-directory/}
245
246 if [[ $(gcc-major-version) -lt 4 ]]; then
247 append-cxxflags -fno-stack-protector
248 elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]]; then
249 if use amd64 || use x86; then
250 append-flags -mno-avx
251 fi
252 fi
253 }
254
255 src_compile() {
256 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
257 MOZ_MAKE_FLAGS="${MAKEOPTS}" \
258 emake -f client.mk || die
259
260 # Only build enigmail extension if crypt enabled.
261 if use crypt ; then
262 cd "${S}"/mailnews/extensions/enigmail || die
263 ./makemake -r 2&> /dev/null
264 cd "${S}"/tbird/mailnews/extensions/enigmail
265 emake || die "make enigmail failed"
266 emake xpi || die "make enigmail xpi failed"
267 fi
268 }
269
270 src_install() {
271 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
272 declare emid
273 local obj_dir="tbird"
274 cd "${S}/${obj_dir}"
275
276 # Copy our preference before omnijar is created.
277 cp "${FILESDIR}"/thunderbird-gentoo-default-prefs-1.js-1 \
278 "${S}/${obj_dir}/mozilla/dist/bin/defaults/pref/all-gentoo.js" || die
279
280 # Pax mark xpcshell for hardened support, only used for startupcache creation.
281 pax-mark m "${S}"/${obj_dir}/mozilla/dist/bin/xpcshell
282
283 emake DESTDIR="${D}" install || die "emake install failed"
284
285 # Install language packs
286 mozlinguas_src_install
287
288 if ! use bindist; then
289 newicon "${S}"/other-licenses/branding/thunderbird/content/icon48.png thunderbird-icon.png
290 domenu "${FILESDIR}"/icon/${PN}.desktop
291 else
292 newicon "${S}"/mail/branding/aurora/content/icon48.png thunderbird-icon-unbranded.png
293 newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \
294 ${PN}.desktop
295
296 sed -i -e "s:Mozilla\ Thunderbird:EarlyBird:g" \
297 "${ED}"/usr/share/applications/${PN}.desktop
298 fi
299
300 if use crypt ; then
301 cd "${T}" || die
302 unzip "${S}"/${obj_dir}/mozilla/dist/bin/enigmail*.xpi install.rdf || die
303 emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf)
304
305 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} || die
306 cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die
307 unzip "${S}"/${obj_dir}/mozilla/dist/bin/enigmail*.xpi || die
308 fi
309
310 if use lightning ; then
311 emid="{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}"
312 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
313 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid}
314 unzip "${S}"/${obj_dir}/mozilla/dist/xpi-stage/gdata-provider.xpi
315
316 emid="calendar-timezones@×××××××.org"
317 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
318 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid}
319 unzip "${S}"/${obj_dir}/mozilla/dist/xpi-stage/calendar-timezones.xpi
320
321 emid="{e2fda1a4-762b-4020-b5ad-a41df1933103}"
322 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
323 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid}
324 unzip "${S}"/${obj_dir}/mozilla/dist/xpi-stage/lightning.xpi
325
326 # Fix mimetype so it shows up as a calendar application in GNOME 3
327 # This requires that the .desktop file was already installed earlier
328 sed -e "s:^\(MimeType=\):\1text/calendar;:" \
329 -e "s:^\(Categories=\):\1Calendar;:" \
330 -i "${ED}"/usr/share/applications/${PN}.desktop
331 fi
332
333 pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/thunderbird-bin
334
335 share_plugins_dir
336
337 if use minimal; then
338 rm -rf "${ED}"/usr/include "${ED}${MOZILLA_FIVE_HOME}"/{idl,include,lib,sdk} || \
339 die "Failed to remove sdk and headers"
340 fi
341 }
342
343 pkg_postinst() {
344 elog
345 elog "If you are experience problems with plugins please issue the"
346 elog "following command : rm \${HOME}/.thunderbird/*/extensions.sqlite ,"
347 elog "then restart thunderbird"
348 }