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/mozilla-thunderbird: ChangeLog mozilla-thunderbird-3.0-r1.ebuild mozilla-thunderbird-3.0.ebuild
Date: Tue, 29 Dec 2009 02:29:35
Message-Id: E1NPRq0-0005Jj-Br@stork.gentoo.org
1 anarchy 09/12/29 02:29:32
2
3 Modified: ChangeLog
4 Added: mozilla-thunderbird-3.0-r1.ebuild
5 Removed: mozilla-thunderbird-3.0.ebuild
6 Log:
7 Update prefs to fix imap issues marking mail, bug #298044
8 (Portage version: 2.1.7.16/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.311 mail-client/mozilla-thunderbird/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog?rev=1.311&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog?rev=1.311&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog?r1=1.310&r2=1.311
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v
20 retrieving revision 1.310
21 retrieving revision 1.311
22 diff -u -r1.310 -r1.311
23 --- ChangeLog 20 Dec 2009 18:32:11 -0000 1.310
24 +++ ChangeLog 29 Dec 2009 02:29:31 -0000 1.311
25 @@ -1,6 +1,13 @@
26 # ChangeLog for mail-client/mozilla-thunderbird
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.310 2009/12/20 18:32:11 anarchy Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.311 2009/12/29 02:29:31 anarchy Exp $
30 +
31 +*mozilla-thunderbird-3.0-r1 (29 Dec 2009)
32 +
33 + 29 Dec 2009; Jory A. Pratt <anarchy@g.o>
34 + +mozilla-thunderbird-3.0-r1.ebuild,
35 + files/thunderbird-gentoo-default-prefs.js:
36 + Update prefs to fix imap issues marking mail, bug #298044
37
38 20 Dec 2009; Jory A. Pratt <anarchy@g.o>
39 mozilla-thunderbird-3.0.ebuild:
40
41
42
43 1.1 mail-client/mozilla-thunderbird/mozilla-thunderbird-3.0-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/mozilla-thunderbird-3.0-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/mozilla-thunderbird-3.0-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: mozilla-thunderbird-3.0-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2009 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/mozilla-thunderbird-3.0-r1.ebuild,v 1.1 2009/12/29 02:29:31 anarchy Exp $
53 EAPI="2"
54 WANT_AUTOCONF="2.1"
55
56 inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib mozextension autotools
57
58 LANGS="af ar be ca cs de el en-US en-GB 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 ta-LK uk"
59 # Languages not rebuilt for beta3 "pt-PT he sr bg gl zn-CN vi"
60 NOSHORTLANGS="es-AR en-GB pt-BR"
61
62 MY_PV2="${PV/_rc/rc}"
63 MY_P="${P/_rc/rc}"
64
65 DESCRIPTION="Thunderbird Mail Client"
66 HOMEPAGE="http://www.mozilla.com/en-US/thunderbird/"
67
68 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
69 SLOT="0"
70 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
71 IUSE="ldap crypt bindist mozdom replytolist lightning"
72 PATCH="${PN}-3.0-patches-0.3"
73
74 REL_URI="http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases"
75 SRC_URI="${REL_URI}/${MY_PV2}/source/thunderbird-${MY_PV2}.source.tar.bz2
76 http://dev.gentoo.org/~anarchy/dist/${PATCH}.tar.bz2"
77
78 for X in ${LANGS} ; do
79 if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
80 SRC_URI="${SRC_URI}
81 linguas_${X/-/_}? ( ${REL_URI}/${MY_PV2}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )"
82 fi
83 IUSE="${IUSE} linguas_${X/-/_}"
84 # english is handled internally
85 if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
86 if [ "${X}" != "en-US" ]; then
87 SRC_URI="${SRC_URI}
88 linguas_${X%%-*}? ( ${REL_URI}/${PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )"
89 fi
90 IUSE="${IUSE} linguas_${X%%-*}"
91 fi
92 done
93
94 RDEPEND=">=sys-devel/binutils-2.16.1
95 >=dev-libs/nss-3.12.3
96 >=dev-libs/nspr-4.8
97 >=dev-db/sqlite-3.6.10
98 >=media-libs/lcms-1.17
99 >=app-text/hunspell-1.2
100 x11-libs/cairo[X]
101 x11-libs/pango[X]
102 !x11-plugins/lightning"
103
104 PDEPEND="crypt? ( >=x11-plugins/enigmail-1.0 )"
105
106 S="${WORKDIR}"/comm-1.9.1
107
108 # Needed by src_compile() and src_install().
109 # Would do in pkg_setup but that loses the export attribute, they
110 # become pure shell variables.
111 export BUILD_OFFICIAL=1
112 export MOZILLA_OFFICIAL=1
113
114 linguas() {
115 local LANG SLANG
116 for LANG in ${LINGUAS}; do
117 if has ${LANG} en en_US; then
118 has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
119 continue
120 elif has ${LANG} ${LANGS//-/_}; then
121 has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
122 continue
123 elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
124 for X in ${LANGS}; do
125 if [[ "${X}" == "${LANG}-"* ]] && \
126 [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
127 has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
128 continue 2
129 fi
130 done
131 fi
132 ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA"
133 done
134 }
135
136 pkg_setup(){
137 if ! use bindist; then
138 elog "You are enabling official branding. You may not redistribute this build"
139 elog "to any users on your network or the internet. Doing so puts yourself into"
140 elog "a legal problem with Mozilla Foundation"
141 elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag"
142 fi
143 }
144
145 src_unpack() {
146 unpack ${A}
147
148 linguas
149 for X in ${linguas}; do
150 # FIXME: Add support for unpacking xpis to portage
151 [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi"
152 done
153 if [[ ${linguas} != "" && ${linguas} != "en" ]]; then
154 einfo "Selected language packs (first will be default): ${linguas}"
155 fi
156 }
157
158 src_prepare() {
159 # Apply our patches
160 EPATCH_SUFFIX="patch" \
161 EPATCH_FORCE="yes" \
162 epatch "${WORKDIR}"
163
164 # Fix menus
165 epatch "${FILESDIR}/1000_fix-menus-gentoo.patch"
166
167 eautoreconf
168
169 cd mozilla
170 eautoreconf
171 cd js/src
172 eautoreconf
173 }
174
175 src_configure() {
176 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
177 MEXTENSIONS="default"
178
179 ####################################
180 #
181 # mozconfig, CFLAGS and CXXFLAGS setup
182 #
183 ####################################
184
185 touch mail/config/mozconfig
186 mozconfig_init
187 mozconfig_config
188
189 # It doesn't compile on alpha without this LDFLAGS
190 use alpha && append-ldflags "-Wl,--no-relax"
191
192 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
193 mozconfig_annotate '' --enable-application=mail
194 mozconfig_use_enable ldap
195 mozconfig_use_enable ldap ldap-experimental
196 mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME}
197 mozconfig_annotate '' --with-user-appdir=.thunderbird
198 mozconfig_annotate '' --with-system-nspr
199 mozconfig_annotate '' --with-system-nss
200 mozconfig_annotate 'broken' --disable-crashreporter
201
202 # Use enable features
203 mozconfig_use_enable lightning calendar
204
205 # Bug #72667
206 if use mozdom; then
207 MEXTENSIONS="${MEXTENSIONS},inspector"
208 fi
209
210 if ! use bindist; then
211 mozconfig_annotate '' --enable-official-branding
212 fi
213
214 # Finalize and report settings
215 mozconfig_final
216
217 ####################################
218 #
219 # Configure and build
220 #
221 ####################################
222
223 # Disable no-print-directory
224 MAKEOPTS=${MAKEOPTS/--no-print-directory/}
225
226 if [[ $(gcc-major-version) -lt 4 ]]; then
227 append-cxxflags -fno-stack-protector
228 fi
229
230 CPPFLAGS="${CPPFLAGS}" \
231 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
232 econf || die
233 }
234
235 src_compile() {
236 # Should the build use multiprocessing? Not enabled by default, as it tends to break
237 [ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1"
238 emake ${jobs} || die
239 }
240
241 src_install() {
242 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
243
244 emake DESTDIR="${D}" install || die "emake install failed"
245
246 if use lightning ; then
247 declare emid
248
249 cd "${T}"
250 unzip "${S}"/mozilla/dist/xpi-stage/gdata-provider.xpi install.rdf
251 emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf)
252
253 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
254 cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid}
255 unzip "${S}"/mozilla/dist/xpi-stage/gdata-provider.xpi
256 fi
257
258 linguas
259 for X in ${linguas}; do
260 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}"
261 done
262
263 if ! use bindist; then
264 newicon "${S}"/other-licenses/branding/thunderbird/content/icon48.png thunderbird-icon.png
265 domenu "${FILESDIR}"/icon/${PN}.desktop
266 else
267 newicon "${S}"/mail/base/content/icon48.png thunderbird-icon-unbranded.png
268 newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \
269 ${PN}.desktop
270 fi
271
272 # Warn user that remerging enigmail is neccessary on USE=crypt
273 use crypt && ewarn "Please remerge x11-plugins/enigmail after updating ${PN}."
274
275 # Enable very specific settings for thunderbird-3
276 cp "${FILESDIR}"/thunderbird-gentoo-default-prefs.js \
277 "${D}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \
278 die "failed to cp thunderbird-gentoo-default-prefs.js"
279 }