1 |
nirbheek 12/02/06 13:41:02 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: thunderbird-10.0.ebuild |
5 |
Log: |
6 |
Bump to 10.0, from overlay |
7 |
|
8 |
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.121 mail-client/thunderbird/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.121&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.121&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?r1=1.120&r2=1.121 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v |
20 |
retrieving revision 1.120 |
21 |
retrieving revision 1.121 |
22 |
diff -u -r1.120 -r1.121 |
23 |
--- ChangeLog 28 Jan 2012 06:14:07 -0000 1.120 |
24 |
+++ ChangeLog 6 Feb 2012 13:41:02 -0000 1.121 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for mail-client/thunderbird |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.120 2012/01/28 06:14:07 nirbheek Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.121 2012/02/06 13:41:02 nirbheek Exp $ |
30 |
+ |
31 |
+*thunderbird-10.0 (06 Feb 2012) |
32 |
+ |
33 |
+ 06 Feb 2012; Nirbheek Chauhan <nirbheek@g.o> +thunderbird-10.0.ebuild: |
34 |
+ Bump to 10.0, from overlay |
35 |
|
36 |
28 Jan 2012; Nirbheek Chauhan <nirbheek@g.o> metadata.xml: |
37 |
Add USE=bindist description, bug 369247 |
38 |
|
39 |
|
40 |
|
41 |
1.1 mail-client/thunderbird/thunderbird-10.0.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-10.0.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-10.0.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: thunderbird-10.0.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2012 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-10.0.ebuild,v 1.1 2012/02/06 13:41:02 nirbheek Exp $ |
51 |
|
52 |
EAPI="3" |
53 |
WANT_AUTOCONF="2.1" |
54 |
|
55 |
# This list can be updated using scripts/get_langs.sh from the mozilla overlay |
56 |
# Add 'ast sr' soon as mirrors finish syncing. |
57 |
MOZ_LANGS=(ar be bg bn-BD br ca cs da de el en en-GB en-US es-AR es-ES et eu fi |
58 |
fr fy-NL ga-IE gd gl he hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR pt-PT |
59 |
rm ro ru si sk sl sq sv-SE ta-LK tr uk vi zh-CN zh-TW) |
60 |
|
61 |
# Convert the ebuild version to the upstream mozilla version, used by mozlinguas |
62 |
MOZ_PV="${PV/_beta/b}" |
63 |
MOZ_P="${PN}-${MOZ_PV}" |
64 |
|
65 |
# Upstream fail... |
66 |
MY_TEN_PV="10.0-real" |
67 |
MOZ_LANGPACK_PREFIX="${MY_TEN_PV}/linux-i686/xpi/" |
68 |
|
69 |
# Enigmail version |
70 |
EMVER="1.3.5" |
71 |
# Upstream ftp release URI that's used by mozlinguas.eclass |
72 |
# We don't use the http mirror because it deletes old tarballs. |
73 |
MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/${PN}/releases/" |
74 |
|
75 |
inherit flag-o-matic toolchain-funcs mozconfig-3 makeedit multilib autotools pax-utils python check-reqs nsplugins mozlinguas |
76 |
|
77 |
DESCRIPTION="Thunderbird Mail Client" |
78 |
HOMEPAGE="http://www.mozilla.com/en-US/thunderbird/" |
79 |
|
80 |
KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
81 |
SLOT="0" |
82 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
83 |
IUSE="bindist gconf +crashreporter +crypt +ipc +lightning mozdom +webm" |
84 |
|
85 |
PATCH="thunderbird-9.0-patches-0.1" |
86 |
PATCHFF="firefox-${PV}-patches-0.4" |
87 |
|
88 |
SRC_URI="${SRC_URI} |
89 |
${MOZ_FTP_URI}/${MY_TEN_PV}/source/${MOZ_P}.source.tar.bz2 |
90 |
crypt? ( http://www.mozilla-enigmail.org/download/source/enigmail-${EMVER}.tar.gz ) |
91 |
http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.xz |
92 |
http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCHFF}.tar.xz" |
93 |
|
94 |
ASM_DEPEND=">=dev-lang/yasm-1.1" |
95 |
|
96 |
RDEPEND=">=sys-devel/binutils-2.16.1 |
97 |
>=dev-libs/nss-3.13.1 |
98 |
>=dev-libs/nspr-4.8.8 |
99 |
>=dev-libs/glib-2.26 |
100 |
crashreporter? ( net-misc/curl ) |
101 |
gconf? ( >=gnome-base/gconf-1.2.1:2 ) |
102 |
media-libs/libpng[apng] |
103 |
>=x11-libs/cairo-1.10 |
104 |
>=x11-libs/pango-1.14.0 |
105 |
>=x11-libs/gtk+-2.14 |
106 |
webm? ( >=media-libs/libvpx-0.9.7 |
107 |
media-libs/alsa-lib ) |
108 |
virtual/libffi |
109 |
!x11-plugins/enigmail |
110 |
system-sqlite? ( >=dev-db/sqlite-3.7.7.1[fts3,secure-delete,unlock-notify,debug=] ) |
111 |
crypt? ( || ( |
112 |
( >=app-crypt/gnupg-2.0 |
113 |
|| ( |
114 |
app-crypt/pinentry[gtk] |
115 |
app-crypt/pinentry[qt4] |
116 |
) |
117 |
) |
118 |
=app-crypt/gnupg-1.4* |
119 |
) )" |
120 |
|
121 |
DEPEND="${RDEPEND} |
122 |
dev-util/pkgconfig |
123 |
webm? ( x86? ( ${ASM_DEPEND} ) |
124 |
amd64? ( ${ASM_DEPEND} ) )" |
125 |
|
126 |
S="${WORKDIR}"/comm-release |
127 |
|
128 |
pkg_setup() { |
129 |
moz_pkgsetup |
130 |
|
131 |
export MOZILLA_DIR="${S}/mozilla" |
132 |
|
133 |
if ! use bindist ; then |
134 |
elog "You are enabling official branding. You may not redistribute this build" |
135 |
elog "to any users on your network or the internet. Doing so puts yourself into" |
136 |
elog "a legal problem with Mozilla Foundation" |
137 |
elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag" |
138 |
elog |
139 |
fi |
140 |
|
141 |
# Ensure we have enough disk space to compile |
142 |
CHECKREQS_DISK_BUILD="4G" |
143 |
check-reqs_pkg_setup |
144 |
} |
145 |
|
146 |
src_unpack() { |
147 |
unpack ${A} |
148 |
|
149 |
# Unpack language packs |
150 |
mozlinguas_src_unpack |
151 |
} |
152 |
|
153 |
src_prepare() { |
154 |
# Apply our Thunderbird patchset |
155 |
EPATCH_SUFFIX="patch" \ |
156 |
EPATCH_FORCE="yes" \ |
157 |
epatch "${WORKDIR}/thunderbird" |
158 |
|
159 |
# Apply our patchset from firefox to thunderbird as well |
160 |
pushd "${S}"/mozilla &>/dev/null || die |
161 |
EPATCH_SUFFIX="patch" \ |
162 |
EPATCH_FORCE="yes" \ |
163 |
epatch "${WORKDIR}/firefox" |
164 |
popd &>/dev/null || die |
165 |
|
166 |
if use crypt ; then |
167 |
mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail |
168 |
cd "${S}"/mailnews/extensions/enigmail || die |
169 |
./makemake -r 2&> /dev/null |
170 |
sed -i -e 's:@srcdir@:${S}/mailnews/extensions/enigmail:' Makefile.in |
171 |
cd "${S}" |
172 |
fi |
173 |
|
174 |
#Fix compilation with curl-7.21.7 bug 376027 |
175 |
sed -e '/#include <curl\/types.h>/d' \ |
176 |
-i "${S}"/mozilla/toolkit/crashreporter/google-breakpad/src/common/linux/http_upload.cc \ |
177 |
-i "${S}"/mozilla/toolkit/crashreporter/google-breakpad/src/common/linux/libcurl_wrapper.cc \ |
178 |
-i "${S}"/mozilla/config/system-headers \ |
179 |
-i "${S}"/mozilla/js/src/config/system-headers || die "Sed failed" |
180 |
|
181 |
# Allow user to apply any additional patches without modifing ebuild |
182 |
epatch_user |
183 |
|
184 |
eautoreconf |
185 |
} |
186 |
|
187 |
src_configure() { |
188 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
189 |
MEXTENSIONS="default" |
190 |
|
191 |
#################################### |
192 |
# |
193 |
# mozconfig, CFLAGS and CXXFLAGS setup |
194 |
# |
195 |
#################################### |
196 |
|
197 |
mozconfig_init |
198 |
mozconfig_config |
199 |
|
200 |
# It doesn't compile on alpha without this LDFLAGS |
201 |
use alpha && append-ldflags "-Wl,--no-relax" |
202 |
|
203 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
204 |
mozconfig_annotate '' --with-default-mozilla-five-home="${EPREFIX}${MOZILLA_FIVE_HOME}" |
205 |
mozconfig_annotate '' --with-user-appdir=.thunderbird |
206 |
mozconfig_annotate '' --with-system-png |
207 |
mozconfig_annotate '' --enable-system-ffi |
208 |
|
209 |
# Use enable features |
210 |
mozconfig_use_enable lightning calendar |
211 |
mozconfig_use_enable gconf |
212 |
|
213 |
# Bug #72667 |
214 |
if use mozdom; then |
215 |
MEXTENSIONS="${MEXTENSIONS},inspector" |
216 |
fi |
217 |
|
218 |
# Finalize and report settings |
219 |
mozconfig_final |
220 |
|
221 |
#################################### |
222 |
# |
223 |
# Configure and build |
224 |
# |
225 |
#################################### |
226 |
|
227 |
# Disable no-print-directory |
228 |
MAKEOPTS=${MAKEOPTS/--no-print-directory/} |
229 |
|
230 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
231 |
append-cxxflags -fno-stack-protector |
232 |
elif [[ $(gcc-major-version) -gt 4 || $(gcc-minor-version) -gt 3 ]]; then |
233 |
if use amd64 || use x86; then |
234 |
append-flags -mno-avx |
235 |
fi |
236 |
fi |
237 |
|
238 |
CPPFLAGS="${CPPFLAGS}" \ |
239 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
240 |
econf || die |
241 |
} |
242 |
|
243 |
src_compile() { |
244 |
emake || die |
245 |
|
246 |
# Only build enigmail extension if crypt enabled. |
247 |
if use crypt ; then |
248 |
emake -C "${S}"/mailnews/extensions/enigmail || die "make enigmail failed" |
249 |
emake -C "${S}"/mailnews/extensions/enigmail xpi || die "make enigmail xpi failed" |
250 |
fi |
251 |
} |
252 |
|
253 |
src_install() { |
254 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
255 |
declare emid |
256 |
|
257 |
# Pax mark xpcshell for hardened support, only used for startupcache creation. |
258 |
pax-mark m "${S}"/mozilla/dist/bin/xpcshell |
259 |
|
260 |
emake DESTDIR="${D}" install || die "emake install failed" |
261 |
|
262 |
# Install language packs |
263 |
mozlinguas_src_install |
264 |
|
265 |
if ! use bindist; then |
266 |
newicon "${S}"/other-licenses/branding/thunderbird/content/icon48.png thunderbird-icon.png |
267 |
domenu "${FILESDIR}"/icon/${PN}.desktop |
268 |
else |
269 |
newicon "${S}"/mail/branding/aurora/content/icon48.png thunderbird-icon-unbranded.png |
270 |
newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \ |
271 |
${PN}.desktop |
272 |
|
273 |
sed -i -e "s:Mozilla\ Thunderbird:Lanikai:g" \ |
274 |
"${ED}"/usr/share/applications/${PN}.desktop |
275 |
fi |
276 |
|
277 |
if use crypt ; then |
278 |
cd "${T}" || die |
279 |
unzip "${S}"/mozilla/dist/bin/enigmail*.xpi install.rdf || die |
280 |
emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf) |
281 |
|
282 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
283 |
cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
284 |
unzip "${S}"/mozilla/dist/bin/enigmail*.xpi || die |
285 |
fi |
286 |
|
287 |
if use lightning ; then |
288 |
emid="{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}" |
289 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} |
290 |
cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid} |
291 |
unzip "${S}"/mozilla/dist/xpi-stage/gdata-provider.xpi |
292 |
|
293 |
emid="calendar-timezones@×××××××.org" |
294 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} |
295 |
cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid} |
296 |
unzip "${S}"/mozilla/dist/xpi-stage/calendar-timezones.xpi |
297 |
|
298 |
emid="{e2fda1a4-762b-4020-b5ad-a41df1933103}" |
299 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} |
300 |
cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid} |
301 |
unzip "${S}"/mozilla/dist/xpi-stage/lightning.xpi |
302 |
|
303 |
# Fix mimetype so it shows up as a calendar application in GNOME 3 |
304 |
# This requires that the .desktop file was already installed earlier |
305 |
sed -e "s:^\(MimeType=\):\1text/calendar;:" \ |
306 |
-e "s:^\(Categories=\):\1Calendar;:" \ |
307 |
-i "${ED}"/usr/share/applications/${PN}.desktop |
308 |
fi |
309 |
|
310 |
pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/thunderbird-bin |
311 |
|
312 |
# Enable very specific settings for thunderbird-3 |
313 |
cp "${FILESDIR}"/thunderbird-gentoo-default-prefs-1.js-1 \ |
314 |
"${ED}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \ |
315 |
die "failed to cp thunderbird-gentoo-default-prefs.js" |
316 |
|
317 |
share_plugins_dir |
318 |
} |
319 |
|
320 |
pkg_postinst() { |
321 |
elog |
322 |
elog "If you are experience problems with plugins please issue the" |
323 |
elog "following command : rm \${HOME}/.thunderbird/*/extensions.sqlite ," |
324 |
elog "then restart thunderbird" |
325 |
} |