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