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