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-3.1.7-r2.ebuild thunderbird-3.1.7-r1.ebuild
Date: Sun, 02 Jan 2011 21:13:59
Message-Id: 20110102211349.F14EC20054@flycatcher.gentoo.org
1 anarchy 11/01/02 21:13:49
2
3 Modified: ChangeLog
4 Added: thunderbird-3.1.7-r2.ebuild
5 Removed: thunderbird-3.1.7-r1.ebuild
6 Log:
7 Fix segfault when attempting to dlclose cups, bug 325469
8
9 (Portage version: 2.1.9.27/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.60 mail-client/thunderbird/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.60&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.60&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?r1=1.59&r2=1.60
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v
21 retrieving revision 1.59
22 retrieving revision 1.60
23 diff -u -r1.59 -r1.60
24 --- ChangeLog 1 Jan 2011 19:51:39 -0000 1.59
25 +++ ChangeLog 2 Jan 2011 21:13:49 -0000 1.60
26 @@ -1,6 +1,13 @@
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.59 2011/01/01 19:51:39 armin76 Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.60 2011/01/02 21:13:49 anarchy Exp $
31 +
32 +*thunderbird-3.1.7-r2 (02 Jan 2011)
33 +
34 + 02 Jan 2011; Jory A. Pratt <anarchy@g.o>
35 + +files/cups-1.4.4-fixup.patch, -thunderbird-3.1.7-r1.ebuild,
36 + +thunderbird-3.1.7-r2.ebuild:
37 + Fix segfault when attempting to dlclose cups, bug 325469
38
39 01 Jan 2011; Raúl Porcel <armin76@g.o> thunderbird-3.1.7.ebuild:
40 alpha/ia64/sparc stable wrt #348316
41
42
43
44 1.1 mail-client/thunderbird/thunderbird-3.1.7-r2.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-3.1.7-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-3.1.7-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: thunderbird-3.1.7-r2.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.7-r2.ebuild,v 1.1 2011/01/02 21:13:49 anarchy 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
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 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 libnotify? ( >=x11-libs/libnotify-0.4 )
106 system-sqlite? ( >=dev-db/sqlite-3.7.1[fts3,secure-delete,threadsafe] )
107 wifi? ( net-wireless/wireless-tools )
108 !x11-plugins/lightning"
109
110 PDEPEND="crypt? ( >=x11-plugins/enigmail-1.1 )"
111
112 S="${WORKDIR}"/comm-1.9.2
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 export BUILD_OFFICIAL=1
138 export MOZILLA_OFFICIAL=1
139
140 if ! use bindist; then
141 elog "You are enabling official branding. You may not redistribute this build"
142 elog "to any users on your network or the internet. Doing so puts yourself into"
143 elog "a legal problem with Mozilla Foundation"
144 elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag"
145 fi
146 }
147
148 src_unpack() {
149 unpack ${A}
150
151 linguas
152 for X in ${linguas}; do
153 # FIXME: Add support for unpacking xpis to portage
154 [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi"
155 done
156 if [[ ${linguas} != "" && ${linguas} != "en" ]]; then
157 einfo "Selected language packs (first will be default): ${linguas}"
158 fi
159 }
160
161 src_prepare() {
162 # Apply our patches
163 EPATCH_SUFFIX="patch" \
164 EPATCH_FORCE="yes" \
165 epatch "${WORKDIR}"
166
167 epatch "${FILESDIR}/bug-606109.patch"
168 epatch "${FILESDIR}/cups-1.4.4-fixup.patch"
169 # Respect users ldflags when building ldap support
170 epatch "${FILESDIR}/${PN}-respect-ldflags.patch"
171
172 # Allow user to apply any additional patches without modifing ebuild
173 epatch_user
174
175 eautoreconf
176
177 cd mozilla
178 eautoreconf
179 cd js/src
180 eautoreconf
181 }
182
183 src_configure() {
184 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
185 MEXTENSIONS="default"
186
187 ####################################
188 #
189 # mozconfig, CFLAGS and CXXFLAGS setup
190 #
191 ####################################
192
193 touch mail/config/mozconfig
194 mozconfig_init
195 mozconfig_config
196
197 # It doesn't compile on alpha without this LDFLAGS
198 use alpha && append-ldflags "-Wl,--no-relax"
199
200 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
201 mozconfig_annotate '' --enable-application=mail
202 mozconfig_annotate '' --with-default-mozilla-five-home="${EPREFIX}${MOZILLA_FIVE_HOME}"
203 mozconfig_annotate '' --with-user-appdir=.thunderbird
204 mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr
205 mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr
206 mozconfig_annotate '' --with-sqlite-prefix="${EPREFIX}"/usr
207 mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir)
208 mozconfig_annotate 'broken' --disable-crashreporter
209 mozconfig_annotate '' --enable-system-hunspell
210
211 # Use enable features
212 mozconfig_use_enable ldap
213 mozconfig_use_enable ldap ldap-experimental
214 mozconfig_use_enable libnotify
215 mozconfig_use_enable lightning calendar
216 mozconfig_use_enable wifi necko-wifi
217 mozconfig_use_enable system-sqlite
218 mozconfig_use_enable !bindist official-branding
219 mozconfig_use_enable alsa ogg
220 mozconfig_use_enable alsa wave
221
222 # Bug #72667
223 if use mozdom; then
224 MEXTENSIONS="${MEXTENSIONS},inspector"
225 fi
226
227 # Finalize and report settings
228 mozconfig_final
229
230 ####################################
231 #
232 # Configure and build
233 #
234 ####################################
235
236 # Disable no-print-directory
237 MAKEOPTS=${MAKEOPTS/--no-print-directory/}
238
239 if [[ $(gcc-major-version) -lt 4 ]]; then
240 append-cxxflags -fno-stack-protector
241 fi
242
243 CPPFLAGS="${CPPFLAGS}" \
244 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
245 econf || die
246 }
247
248 src_compile() {
249 # Should the build use multiprocessing? Not enabled by default, as it tends to break
250 [ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1"
251 emake ${jobs} || die
252 }
253
254 src_install() {
255 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
256
257 emake DESTDIR="${D}" install || die "emake install failed"
258
259 if use lightning ; then
260 declare emid emd1 emid2
261
262 emid="{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}"
263 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
264 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid}
265 unzip "${S}"/mozilla/dist/xpi-stage/gdata-provider.xpi
266
267 emid1="calendar-timezones@×××××××.org"
268 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid1}
269 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid1}
270 unzip "${S}"/mozilla/dist/xpi-stage/calendar-timezones.xpi
271
272 emid2="{e2fda1a4-762b-4020-b5ad-a41df1933103}"
273 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid2}
274 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid2}
275 unzip "${S}"/mozilla/dist/xpi-stage/lightning.xpi
276 fi
277
278 linguas
279 for X in ${linguas}; do
280 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}"
281 done
282
283 if ! use bindist; then
284 newicon "${S}"/other-licenses/branding/thunderbird/content/icon48.png thunderbird-icon.png
285 domenu "${FILESDIR}"/icon/${PN}.desktop
286 else
287 newicon "${S}"/mail/branding/unofficial/content/icon48.png thunderbird-icon-unbranded.png
288 newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \
289 ${PN}.desktop
290
291 sed -i -e "s:Mozilla\ Thunderbird:Lanikai:g" \
292 "${D}"/usr/share/applications/${PN}.desktop
293
294 fi
295
296 # Warn user that remerging enigmail is neccessary on USE=crypt
297 use crypt && ewarn "Please remerge x11-plugins/enigmail after updating ${PN}."
298
299 # Enable very specific settings for thunderbird-3
300 cp "${FILESDIR}"/thunderbird-gentoo-default-prefs-1.js \
301 "${ED}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \
302 die "failed to cp thunderbird-gentoo-default-prefs.js"
303 }