Gentoo Archives: gentoo-commits

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