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-r1.ebuild thunderbird-3.1.ebuild thunderbird-3.0.4-r1.ebuild
Date: Sat, 31 Jul 2010 22:02:16
Message-Id: 20100731214221.4A0192CE15@corvid.gentoo.org
1 anarchy 10/07/31 21:42:20
2
3 Modified: ChangeLog
4 Added: thunderbird-3.1.1-r1.ebuild
5 Removed: thunderbird-3.1.ebuild thunderbird-3.0.4-r1.ebuild
6 Log:
7 Fix build for sparc, update patchset, install to /usr/$(get_libdir)/${PN}
8 (Portage version: 2.1.8.3/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.21 mail-client/thunderbird/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.21&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.21&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?r1=1.20&r2=1.21
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v
20 retrieving revision 1.20
21 retrieving revision 1.21
22 diff -u -r1.20 -r1.21
23 --- ChangeLog 26 Jul 2010 19:27:00 -0000 1.20
24 +++ ChangeLog 31 Jul 2010 21:42:20 -0000 1.21
25 @@ -1,6 +1,13 @@
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.20 2010/07/26 19:27:00 maekke Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.21 2010/07/31 21:42:20 anarchy Exp $
30 +
31 +*thunderbird-3.1.1-r1 (31 Jul 2010)
32 +
33 + 31 Jul 2010; Jory A. Pratt <anarchy@g.o>
34 + -thunderbird-3.0.4-r1.ebuild, -thunderbird-3.1.ebuild,
35 + +thunderbird-3.1.1-r1.ebuild:
36 + Fix build for sparc, update patchset, install to /usr/$(get_libdir)/${PN}
37
38 26 Jul 2010; Markus Meier <maekke@g.o> thunderbird-3.1.1.ebuild:
39 amd64 stable, bug #329279
40
41
42
43 1.1 mail-client/thunderbird/thunderbird-3.1.1-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-3.1.1-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-3.1.1-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: thunderbird-3.1.1-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2010 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-3.1.1-r1.ebuild,v 1.1 2010/07/31 21:42:20 anarchy Exp $
53
54 EAPI="3"
55 WANT_AUTOCONF="2.1"
56
57 inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib mozextension autotools
58
59 # This list can be updated using get_langs.sh from the mozilla overlay
60 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 \
61 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 \
62 sk sl sq sv-SE tr uk zh-CN zh-TW"
63 NOSHORTLANGS="en-GB es-AR pt-BR zh-TW"
64
65 MY_PV="${PV/_rc/rc}"
66 MY_P="${P/_rc/rc}"
67
68 DESCRIPTION="Thunderbird Mail Client"
69 HOMEPAGE="http://www.mozilla.com/en-US/thunderbird/"
70
71 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
72 SLOT="0"
73 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
74 IUSE="alsa ldap crypt bindist libnotify lightning mozdom system-sqlite wifi"
75 PATCH="${PN}-3.1-patches-0.2"
76
77 REL_URI="http://releases.mozilla.org/pub/mozilla.org/${PN}/releases"
78 SRC_URI="${REL_URI}/${MY_PV}/source/${MY_P}.source.tar.bz2
79 http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.bz2"
80
81 for X in ${LANGS} ; do
82 if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then
83 SRC_URI="${SRC_URI}
84 linguas_${X/-/_}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )"
85 fi
86 IUSE="${IUSE} linguas_${X/-/_}"
87 # english is handled internally
88 if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then
89 if [ "${X}" != "en-US" ]; then
90 SRC_URI="${SRC_URI}
91 linguas_${X%%-*}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )"
92 fi
93 IUSE="${IUSE} linguas_${X%%-*}"
94 fi
95 done
96
97 RDEPEND=">=sys-devel/binutils-2.16.1
98 >=dev-libs/nss-3.12.3
99 >=dev-libs/nspr-4.8
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 eautoreconf
169
170 cd mozilla
171 eautoreconf
172 cd js/src
173 eautoreconf
174 }
175
176 src_configure() {
177 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
178 MEXTENSIONS="default"
179
180 ####################################
181 #
182 # mozconfig, CFLAGS and CXXFLAGS setup
183 #
184 ####################################
185
186 touch mail/config/mozconfig
187 mozconfig_init
188 mozconfig_config
189
190 # It doesn't compile on alpha without this LDFLAGS
191 use alpha && append-ldflags "-Wl,--no-relax"
192
193 mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}"
194 mozconfig_annotate '' --enable-application=mail
195 mozconfig_annotate '' --with-default-mozilla-five-home="${EPREFIX}${MOZILLA_FIVE_HOME}"
196 mozconfig_annotate '' --with-user-appdir=.thunderbird
197 mozconfig_annotate '' --with-system-nspr --with-nspr-prefix="${EPREFIX}"/usr
198 mozconfig_annotate '' --with-system-nss --with-nss-prefix="${EPREFIX}"/usr
199 mozconfig_annotate '' --with-sqlite-prefix="${EPREFIX}"/usr
200 mozconfig_annotate '' --x-includes="${EPREFIX}"/usr/include --x-libraries="${EPREFIX}"/usr/$(get_libdir)
201 mozconfig_annotate 'broken' --disable-crashreporter
202 mozconfig_annotate '' --with-system-hunspell
203
204 # Use enable features
205 mozconfig_use_enable ldap
206 mozconfig_use_enable ldap ldap-experimental
207 mozconfig_use_enable libnotify
208 mozconfig_use_enable lightning calendar
209 mozconfig_use_enable wifi necko-wifi
210 mozconfig_use_enable system-sqlite
211 mozconfig_use_enable !bindist official-branding
212 mozconfig_use_enable alsa ogg
213 mozconfig_use_enable alsa wave
214
215 # Bug #72667
216 if use mozdom; then
217 MEXTENSIONS="${MEXTENSIONS},inspector"
218 fi
219
220 # Finalize and report settings
221 mozconfig_final
222
223 ####################################
224 #
225 # Configure and build
226 #
227 ####################################
228
229 # Disable no-print-directory
230 MAKEOPTS=${MAKEOPTS/--no-print-directory/}
231
232 if [[ $(gcc-major-version) -lt 4 ]]; then
233 append-cxxflags -fno-stack-protector
234 fi
235
236 CPPFLAGS="${CPPFLAGS}" \
237 CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \
238 econf || die
239 }
240
241 src_compile() {
242 # Should the build use multiprocessing? Not enabled by default, as it tends to break
243 [ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1"
244 emake ${jobs} || die
245 }
246
247 src_install() {
248 declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}"
249
250 emake DESTDIR="${D}" install || die "emake install failed"
251
252 if use lightning ; then
253 declare emid emd1 emid2
254
255 emid="{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}"
256 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid}
257 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid}
258 unzip "${S}"/mozilla/dist/xpi-stage/gdata-provider.xpi
259
260 emid1="calendar-timezones@×××××××.org"
261 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid1}
262 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid1}
263 unzip "${S}"/mozilla/dist/xpi-stage/calendar-timezones.xpi
264
265 emid2="{e2fda1a4-762b-4020-b5ad-a41df1933103}"
266 dodir ${MOZILLA_FIVE_HOME}/extensions/${emid2}
267 cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid2}
268 unzip "${S}"/mozilla/dist/xpi-stage/lightning.xpi
269 fi
270
271 linguas
272 for X in ${linguas}; do
273 [[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}"
274 done
275
276 if ! use bindist; then
277 newicon "${S}"/other-licenses/branding/thunderbird/content/icon48.png thunderbird-icon.png
278 domenu "${FILESDIR}"/icon/${PN}.desktop
279 else
280 newicon "${S}"/mail/branding/unofficial/content/icon48.png thunderbird-icon-unbranded.png
281 newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \
282 ${PN}.desktop
283 fi
284
285 # Warn user that remerging enigmail is neccessary on USE=crypt
286 use crypt && ewarn "Please remerge x11-plugins/enigmail after updating ${PN}."
287
288 # Enable very specific settings for thunderbird-3
289 cp "${FILESDIR}"/thunderbird-gentoo-default-prefs-1.js \
290 "${ED}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \
291 die "failed to cp thunderbird-gentoo-default-prefs.js"
292 }