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.1-r2.ebuild thunderbird-3.1.1-r1.ebuild
Date: Sun, 01 Aug 2010 17:02:53
Message-Id: 20100801160726.662442CE15@corvid.gentoo.org
1 anarchy 10/08/01 16:07:26
2
3 Modified: ChangeLog
4 Added: thunderbird-3.1.1-r2.ebuild
5 Removed: thunderbird-3.1.1-r1.ebuild
6 Log:
7 Fix bug #325469, new useflag to control printing support
8 (Portage version: 2.1.8.3/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.22 mail-client/thunderbird/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.22&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.22&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?r1=1.21&r2=1.22
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v
20 retrieving revision 1.21
21 retrieving revision 1.22
22 diff -u -r1.21 -r1.22
23 --- ChangeLog 31 Jul 2010 21:42:20 -0000 1.21
24 +++ ChangeLog 1 Aug 2010 16:07:26 -0000 1.22
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.21 2010/07/31 21:42:20 anarchy Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.22 2010/08/01 16:07:26 anarchy Exp $
30 +
31 +*thunderbird-3.1.1-r2 (01 Aug 2010)
32 +
33 + 01 Aug 2010; Jory A. Pratt <anarchy@g.o>
34 + -thunderbird-3.1.1-r1.ebuild, +thunderbird-3.1.1-r2.ebuild:
35 + Fix bug #325469, new useflag to control printing support
36
37 *thunderbird-3.1.1-r1 (31 Jul 2010)
38
39
40
41
42 1.1 mail-client/thunderbird/thunderbird-3.1.1-r2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-3.1.1-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-3.1.1-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: thunderbird-3.1.1-r2.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.1-r2.ebuild,v 1.1 2010/08/01 16:07:26 anarchy 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 ~arm ~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 +cups +crypt bindist libnotify +lightning mozdom system-sqlite wifi"
74 PATCH="${PN}-3.1-patches-0.2"
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/mozilla/patchsets/${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 >=app-text/hunspell-1.2
100 x11-libs/cairo[X]
101 x11-libs/pango[X]
102 alsa? ( media-libs/alsa-lib )
103 libnotify? ( >=x11-libs/libnotify-0.4 )
104 system-sqlite? ( >=dev-db/sqlite-3.6.22-r2[fts3,secure-delete] )
105 wifi? ( net-wireless/wireless-tools )
106 cups? ( net-print/cups[gnutls] )
107 !x11-plugins/lightning"
108
109 PDEPEND="crypt? ( >=x11-plugins/enigmail-1.1 )"
110
111 S="${WORKDIR}"/comm-1.9.2
112
113 linguas() {
114 local LANG SLANG
115 for LANG in ${LINGUAS}; do
116 if has ${LANG} en en_US; then
117 has en ${linguas} || linguas="${linguas:+"${linguas} "}en"
118 continue
119 elif has ${LANG} ${LANGS//-/_}; then
120 has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}"
121 continue
122 elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then
123 for X in ${LANGS}; do
124 if [[ "${X}" == "${LANG}-"* ]] && \
125 [[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then
126 has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}"
127 continue 2
128 fi
129 done
130 fi
131 ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA"
132 done
133 }
134
135 pkg_setup() {
136 export BUILD_OFFICIAL=1
137 export MOZILLA_OFFICIAL=1
138
139 if ! use bindist; then
140 elog "You are enabling official branding. You may not redistribute this build"
141 elog "to any users on your network or the internet. Doing so puts yourself into"
142 elog "a legal problem with Mozilla Foundation"
143 elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag"
144 fi
145 }
146
147 src_unpack() {
148 unpack ${A}
149
150 linguas
151 for X in ${linguas}; do
152 # FIXME: Add support for unpacking xpis to portage
153 [[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi"
154 done
155 if [[ ${linguas} != "" && ${linguas} != "en" ]]; then
156 einfo "Selected language packs (first will be default): ${linguas}"
157 fi
158 }
159
160 src_prepare() {
161 # Apply our patches
162 EPATCH_SUFFIX="patch" \
163 EPATCH_FORCE="yes" \
164 epatch "${WORKDIR}"
165
166 eautoreconf
167
168 cd mozilla
169 eautoreconf
170 cd js/src
171 eautoreconf
172 }
173
174 src_configure() {
175 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
176 MEXTENSIONS="default"
177
178 ####################################
179 #
180 # mozconfig, CFLAGS and CXXFLAGS setup
181 #
182 ####################################
183
184 touch mail/config/mozconfig
185 mozconfig_init
186 mozconfig_config
187
188 # It doesn't compile on alpha without this LDFLAGS
189 use alpha && append-ldflags "-Wl,--no-relax"
190
191 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
192 mozconfig_annotate '' --enable-application=mail
193 mozconfig_annotate '' --with-default-mozilla-five-home="${EPREFIX}${MOZILLA_FIVE_HOME}"
194 mozconfig_annotate '' --with-user-appdir=.thunderbird
195 mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr
196 mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr
197 mozconfig_annotate '' --with-sqlite-prefix="${EPREFIX}"/usr
198 mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir)
199 mozconfig_annotate 'broken' --disable-crashreporter
200 mozconfig_annotate '' --with-system-hunspell
201
202 # Use enable features
203 mozconfig_use_enable ldap
204 mozconfig_use_enable ldap ldap-experimental
205 mozconfig_use_enable libnotify
206 mozconfig_use_enable lightning calendar
207 mozconfig_use_enable wifi necko-wifi
208 mozconfig_use_enable system-sqlite
209 mozconfig_use_enable !bindist official-branding
210 mozconfig_use_enable alsa ogg
211 mozconfig_use_enable alsa wave
212 mozconfig_use_enable cups printing
213
214 # Bug #72667
215 if use mozdom; then
216 MEXTENSIONS="${MEXTENSIONS},inspector"
217 fi
218
219 # Finalize and report settings
220 mozconfig_final
221
222 ####################################
223 #
224 # Configure and build
225 #
226 ####################################
227
228 # Disable no-print-directory
229 MAKEOPTS=${MAKEOPTS/--no-print-directory/}
230
231 if [[ $(gcc-major-version) -lt 4 ]]; then
232 append-cxxflags -fno-stack-protector
233 fi
234
235 CPPFLAGS="${CPPFLAGS}" \
236 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
237 econf || die
238 }
239
240 src_compile() {
241 # Should the build use multiprocessing? Not enabled by default, as it tends to break
242 [ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1"
243 emake ${jobs} || die
244 }
245
246 src_install() {
247 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
248
249 emake DESTDIR="${D}" install || die "emake install failed"
250
251 if use lightning ; then
252 declare emid emd1 emid2
253
254 emid="{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}"
255 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
256 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid}
257 unzip "${S}"/mozilla/dist/xpi-stage/gdata-provider.xpi
258
259 emid1="calendar-timezones@×××××××.org"
260 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid1}
261 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid1}
262 unzip "${S}"/mozilla/dist/xpi-stage/calendar-timezones.xpi
263
264 emid2="{e2fda1a4-762b-4020-b5ad-a41df1933103}"
265 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid2}
266 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid2}
267 unzip "${S}"/mozilla/dist/xpi-stage/lightning.xpi
268 fi
269
270 linguas
271 for X in ${linguas}; do
272 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}"
273 done
274
275 if ! use bindist; then
276 newicon "${S}"/other-licenses/branding/thunderbird/content/icon48.png thunderbird-icon.png
277 domenu "${FILESDIR}"/icon/${PN}.desktop
278 else
279 newicon "${S}"/mail/branding/unofficial/content/icon48.png thunderbird-icon-unbranded.png
280 newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \
281 ${PN}.desktop
282 fi
283
284 # Warn user that remerging enigmail is neccessary on USE=crypt
285 use crypt && ewarn "Please remerge x11-plugins/enigmail after updating ${PN}."
286
287 # Enable very specific settings for thunderbird-3
288 cp "${FILESDIR}"/thunderbird-gentoo-default-prefs-1.js \
289 "${ED}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \
290 die "failed to cp thunderbird-gentoo-default-prefs.js"
291 }