Gentoo Archives: gentoo-commits

From: "Samuli Suominen (ssuominen)" <ssuominen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-client/thunderbird: ChangeLog thunderbird-3.1.9-r1.ebuild
Date: Tue, 26 Apr 2011 18:10:26
Message-Id: 20110426181015.A1B3720054@flycatcher.gentoo.org
1 ssuominen 11/04/26 18:10:15
2
3 Modified: ChangeLog
4 Added: thunderbird-3.1.9-r1.ebuild
5 Log:
6 Append x-scheme-handler/mailto; to MimeType line of desktop entry. This will be required by glib stabilization.
7
8 (Portage version: 2.2.0_alpha30/cvs/Linux x86_64, RepoMan options: --force)
9
10 Revision Changes Path
11 1.73 mail-client/thunderbird/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.73&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.73&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?r1=1.72&r2=1.73
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v
20 retrieving revision 1.72
21 retrieving revision 1.73
22 diff -u -r1.72 -r1.73
23 --- ChangeLog 17 Apr 2011 23:59:02 -0000 1.72
24 +++ ChangeLog 26 Apr 2011 18:10:15 -0000 1.73
25 @@ -1,6 +1,14 @@
26 # ChangeLog for mail-client/thunderbird
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.72 2011/04/17 23:59:02 anarchy Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.73 2011/04/26 18:10:15 ssuominen Exp $
30 +
31 +*thunderbird-3.1.9-r1 (26 Apr 2011)
32 +
33 + 26 Apr 2011; Samuli Suominen <ssuominen@g.o>
34 + +thunderbird-3.1.9-r1.ebuild, files/icon/thunderbird.desktop,
35 + files/icon/thunderbird-unbranded.desktop:
36 + Append x-scheme-handler/mailto; to MimeType line of desktop entry. This will
37 + be required by glib stabilization.
38
39 17 Apr 2011; Jory A. Pratt <anarchy@g.o>
40 thunderbird-3.3_alpha3-r1.ebuild:
41
42
43
44 1.1 mail-client/thunderbird/thunderbird-3.1.9-r1.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-3.1.9-r1.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-3.1.9-r1.ebuild?rev=1.1&content-type=text/plain
48
49 Index: thunderbird-3.1.9-r1.ebuild
50 ===================================================================
51 # Copyright 1999-2011 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-3.1.9-r1.ebuild,v 1.1 2011/04/26 18:10:15 ssuominen Exp $
54
55 EAPI="3"
56 WANT_AUTOCONF="2.1"
57
58 inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib mozextension autotools python pax-utils
59
60 # This list can be updated using get_langs.sh from the mozilla overlay
61 LANGS="af ar be bg bn-BD ca cs da de el en en-GB en-US es-AR es-ES et eu fi fr \
62 fy-NL ga-IE he hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR pt-PT ro ru si \
63 sk sl sq sv-SE tr uk zh-CN zh-TW"
64 NOSHORTLANGS="en-GB es-AR pt-BR zh-TW"
65
66 MY_PV="${PV/_rc/rc}"
67 MY_P="${P/_rc/rc}"
68
69 DESCRIPTION="Thunderbird Mail Client"
70 HOMEPAGE="http://www.mozilla.com/en-US/thunderbird/"
71
72 KEYWORDS="alpha amd64 ~arm ia64 ppc ppc64 sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux"
73 SLOT="0"
74 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
75 IUSE="+alsa ldap +crypt bindist gnome libnotify +lightning mozdom system-sqlite wifi"
76 PATCH="${PN}-3.1-patches-1.2"
77
78 REL_URI="http://releases.mozilla.org/pub/mozilla.org/${PN}/releases"
79 SRC_URI="${REL_URI}/${MY_PV}/source/${MY_P}.source.tar.bz2
80 http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.bz2"
81
82 for X in ${LANGS} ; do
83 if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
84 SRC_URI="${SRC_URI}
85 linguas_${X/-/_}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )"
86 fi
87 IUSE="${IUSE} linguas_${X/-/_}"
88 # english is handled internally
89 if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
90 if [ "${X}" != "en-US" ]; then
91 SRC_URI="${SRC_URI}
92 linguas_${X%%-*}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )"
93 fi
94 IUSE="${IUSE} linguas_${X%%-*}"
95 fi
96 done
97
98 RDEPEND=">=sys-devel/binutils-2.16.1
99 >=dev-libs/nss-3.12.8
100 >=dev-libs/nspr-4.8.6
101 >=app-text/hunspell-1.2
102 x11-libs/cairo[X]
103 x11-libs/pango[X]
104 alsa? ( media-libs/alsa-lib )
105 gnome? ( >=gnome-base/gnome-vfs-2.16.3
106 >=gnome-base/libgnomeui-2.16.1
107 >=gnome-base/gconf-2.16.0
108 >=gnome-base/libgnome-2.16.0 )
109 libnotify? ( >=x11-libs/libnotify-0.4 )
110 system-sqlite? ( >=dev-db/sqlite-3.7.1[fts3,secure-delete,threadsafe] )
111 wifi? ( net-wireless/wireless-tools )
112 !x11-plugins/lightning"
113
114 DEPEND="${RDEPEND}
115 =dev-lang/python-2*[threads]"
116
117 PDEPEND="crypt? ( >=x11-plugins/enigmail-1.1 )"
118
119 S="${WORKDIR}"/comm-1.9.2
120
121 linguas() {
122 local LANG SLANG
123 for LANG in ${LINGUAS}; do
124 if has ${LANG} en en_US; then
125 has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
126 continue
127 elif has ${LANG} ${LANGS//-/_}; then
128 has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
129 continue
130 elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
131 for X in ${LANGS}; do
132 if [[ "${X}" == "${LANG}-"* ]] && \
133 [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
134 has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
135 continue 2
136 fi
137 done
138 fi
139 ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA"
140 done
141 }
142
143 pkg_setup() {
144 export BUILD_OFFICIAL=1
145 export MOZILLA_OFFICIAL=1
146 export ALDFLAGS=${LDFLAGS}
147
148 if ! use bindist; then
149 elog "You are enabling official branding. You may not redistribute this build"
150 elog "to any users on your network or the internet. Doing so puts yourself into"
151 elog "a legal problem with Mozilla Foundation"
152 elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag"
153 fi
154
155 python_set_active_version 2
156 }
157
158 src_unpack() {
159 unpack ${A}
160
161 linguas
162 for X in ${linguas}; do
163 # FIXME: Add support for unpacking xpis to portage
164 [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi"
165 done
166 if [[ ${linguas} != "" && ${linguas} != "en" ]]; then
167 einfo "Selected language packs (first will be default): ${linguas}"
168 fi
169 }
170
171 src_prepare() {
172 # Apply our patches
173 EPATCH_EXCLUDE="1002-fix_hunspell_double_buffer.patch" \
174 EPATCH_SUFFIX="patch" \
175 EPATCH_FORCE="yes" \
176 epatch "${WORKDIR}"
177
178 epatch "${FILESDIR}/bug-606109.patch"
179 epatch "${FILESDIR}/libnotify-0.7.patch"
180
181 # Allow user to apply any additional patches without modifing ebuild
182 epatch_user
183
184 eautoreconf
185
186 cd mozilla
187 eautoreconf
188 cd js/src
189 eautoreconf
190 }
191
192 src_configure() {
193 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
194 MEXTENSIONS="default"
195
196 ####################################
197 #
198 # mozconfig, CFLAGS and CXXFLAGS setup
199 #
200 ####################################
201
202 touch mail/config/mozconfig
203 mozconfig_init
204 mozconfig_config
205
206 # It doesn't compile on alpha without this LDFLAGS
207 use alpha && append-ldflags "-Wl,--no-relax"
208
209 mozconfig_annotate '' --enable-crypto
210 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
211 mozconfig_annotate '' --enable-application=mail
212 mozconfig_annotate '' --with-default-mozilla-five-home="${EPREFIX}${MOZILLA_FIVE_HOME}"
213 mozconfig_annotate '' --with-user-appdir=.thunderbird
214 mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr
215 mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr
216 mozconfig_annotate '' --with-sqlite-prefix="${EPREFIX}"/usr
217 mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir)
218 mozconfig_annotate 'broken' --disable-crashreporter
219 mozconfig_annotate '' --enable-system-hunspell
220
221 # Use enable features
222 mozconfig_use_enable ldap
223 mozconfig_use_enable ldap ldap-experimental
224 mozconfig_use_enable gnome gnomevfs
225 mozconfig_use_enable gnome gnomeui
226 mozconfig_use_enable libnotify
227 mozconfig_use_enable lightning calendar
228 mozconfig_use_enable wifi necko-wifi
229 mozconfig_use_enable system-sqlite
230 mozconfig_use_enable !bindist official-branding
231 mozconfig_use_enable alsa ogg
232 mozconfig_use_enable alsa wave
233
234 # Bug #72667
235 if use mozdom; then
236 MEXTENSIONS="${MEXTENSIONS},inspector"
237 fi
238
239 # Finalize and report settings
240 mozconfig_final
241
242 ####################################
243 #
244 # Configure and build
245 #
246 ####################################
247
248 # Disable no-print-directory
249 MAKEOPTS=${MAKEOPTS/--no-print-directory/}
250
251 if [[ $(gcc-major-version) -lt 4 ]]; then
252 append-cxxflags -fno-stack-protector
253 fi
254
255 CPPFLAGS="${CPPFLAGS}" \
256 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
257 econf || die
258 }
259
260 src_compile() {
261 # Should the build use multiprocessing? Not enabled by default, as it tends to break
262 [ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1"
263 emake ${jobs} || die
264 }
265
266 src_install() {
267 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
268
269 emake DESTDIR="${D}" install || die "emake install failed"
270
271 if use lightning ; then
272 declare emid emd1 emid2
273
274 emid="{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}"
275 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
276 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid}
277 unzip "${S}"/mozilla/dist/xpi-stage/gdata-provider.xpi
278
279 emid1="calendar-timezones@×××××××.org"
280 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid1}
281 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid1}
282 unzip "${S}"/mozilla/dist/xpi-stage/calendar-timezones.xpi
283
284 emid2="{e2fda1a4-762b-4020-b5ad-a41df1933103}"
285 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid2}
286 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid2}
287 unzip "${S}"/mozilla/dist/xpi-stage/lightning.xpi
288 fi
289
290 linguas
291 for X in ${linguas}; do
292 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}"
293 done
294
295 if ! use bindist; then
296 newicon "${S}"/other-licenses/branding/thunderbird/content/icon48.png thunderbird-icon.png
297 domenu "${FILESDIR}"/icon/${PN}.desktop
298 else
299 newicon "${S}"/mail/branding/unofficial/content/icon48.png thunderbird-icon-unbranded.png
300 newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \
301 ${PN}.desktop
302
303 sed -i -e "s:Mozilla\ Thunderbird:Lanikai:g" \
304 "${D}"/usr/share/applications/${PN}.desktop
305
306 fi
307
308 # Warn user that remerging enigmail is neccessary on USE=crypt
309 use crypt && ewarn "Please remerge x11-plugins/enigmail after updating ${PN}."
310
311 # Enable very specific settings for thunderbird-3
312 cp "${FILESDIR}"/thunderbird-gentoo-default-prefs-1.js \
313 "${ED}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \
314 die "failed to cp thunderbird-gentoo-default-prefs.js"
315
316 pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/thunderbird-bin
317 }