1 |
anarchy 11/07/01 12:51:21 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: thunderbird-5.0.ebuild |
5 |
Log: |
6 |
Version Bump |
7 |
|
8 |
(Portage version: 2.1.10.3/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.83 mail-client/thunderbird/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.83&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?rev=1.83&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/ChangeLog?r1=1.82&r2=1.83 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v |
20 |
retrieving revision 1.82 |
21 |
retrieving revision 1.83 |
22 |
diff -u -r1.82 -r1.83 |
23 |
--- ChangeLog 23 Jun 2011 14:08:54 -0000 1.82 |
24 |
+++ ChangeLog 1 Jul 2011 12:51:21 -0000 1.83 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for mail-client/thunderbird |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.82 2011/06/23 14:08:54 polynomial-c Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/ChangeLog,v 1.83 2011/07/01 12:51:21 anarchy Exp $ |
30 |
+ |
31 |
+*thunderbird-5.0 (01 Jul 2011) |
32 |
+ |
33 |
+ 01 Jul 2011; Jory A. Pratt <anarchy@g.o> +thunderbird-5.0.ebuild: |
34 |
+ Version bump |
35 |
|
36 |
*thunderbird-3.1.11 (23 Jun 2011) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 mail-client/thunderbird/thunderbird-5.0.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-5.0.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird/thunderbird-5.0.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: thunderbird-5.0.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2011 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird/thunderbird-5.0.ebuild,v 1.1 2011/07/01 12:51:21 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 pax-utils python |
56 |
|
57 |
TB_PV="${PV/_beta/b}" |
58 |
TB_P="${PN}-${TB_PV}" |
59 |
EMVER="1.2" |
60 |
|
61 |
DESCRIPTION="Thunderbird Mail Client" |
62 |
HOMEPAGE="http://www.mozilla.com/en-US/thunderbird/" |
63 |
|
64 |
KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
65 |
SLOT="0" |
66 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
67 |
IUSE="bindist gconf +crashreporter +crypt +ipc +lightning mozdom" |
68 |
PATCH="${PN}-5.0-patches-0.1" |
69 |
|
70 |
REL_URI="http://releases.mozilla.org/pub/mozilla.org/${PN}/releases" |
71 |
SRC_URI="${REL_URI}/${TB_PV}/source/${TB_P}.source.tar.bz2 |
72 |
crypt? ( http://www.mozilla-enigmail.org/download/source/enigmail-${EMVER}.tar.gz ) |
73 |
http://dev.gentoo.org/~anarchy/mozilla/patchsets/${PATCH}.tar.bz2" |
74 |
|
75 |
if ! [[ ${PV} =~ alpha|beta ]]; then |
76 |
# This list can be updated using get_langs.sh from the mozilla overlay |
77 |
# Not supported yet bn-BD ro id zh-CN be af el |
78 |
LANGS="ar bg ca cs da de en en-GB en-US es-AR es-ES et eu fi fr \ |
79 |
fy-NL ga-IE he hu is it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR pt-PT ru si \ |
80 |
sk sl sq sv-SE tr uk zh-TW" |
81 |
NOSHORTLANGS="en-GB es-AR pt-BR zh-TW" |
82 |
|
83 |
for X in ${LANGS} ; do |
84 |
if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then |
85 |
SRC_URI="${SRC_URI} |
86 |
linguas_${X/-/_}? ( ${REL_URI}/${TB_PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )" |
87 |
fi |
88 |
IUSE="${IUSE} linguas_${X/-/_}" |
89 |
# english is handled internally |
90 |
if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then |
91 |
if [ "${X}" != "en-US" ]; then |
92 |
SRC_URI="${SRC_URI} |
93 |
linguas_${X%%-*}? ( ${REL_URI}/${TB_PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )" |
94 |
fi |
95 |
IUSE="${IUSE} linguas_${X%%-*}" |
96 |
fi |
97 |
done |
98 |
fi |
99 |
|
100 |
RDEPEND=">=sys-devel/binutils-2.16.1 |
101 |
>=dev-libs/nss-3.12.9 |
102 |
>=dev-libs/nspr-4.8.7 |
103 |
gconf? ( >=gnome-base/gconf-1.2.1:2 ) |
104 |
media-libs/libpng[apng] |
105 |
!x11-plugins/lightning |
106 |
!x11-plugins/enigmail |
107 |
crypt? ( || ( |
108 |
( >=app-crypt/gnupg-2.0 |
109 |
|| ( |
110 |
app-crypt/pinentry[gtk] |
111 |
app-crypt/pinentry[qt4] |
112 |
) |
113 |
) |
114 |
=app-crypt/gnupg-1.4* |
115 |
) )" |
116 |
|
117 |
DEPEND="${RDEPEND}" |
118 |
|
119 |
S="${WORKDIR}"/comm-miramar |
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 |
moz_pkgsetup |
145 |
|
146 |
if ! use bindist; then |
147 |
elog "You are enabling official branding. You may not redistribute this build" |
148 |
elog "to any users on your network or the internet. Doing so puts yourself into" |
149 |
elog "a legal problem with Mozilla Foundation" |
150 |
elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag" |
151 |
fi |
152 |
} |
153 |
|
154 |
src_unpack() { |
155 |
unpack ${A} |
156 |
|
157 |
if ! [[ ${PV} =~ alpha|beta ]]; then |
158 |
linguas |
159 |
for X in ${linguas}; do |
160 |
# FIXME: Add support for unpacking xpis to portage |
161 |
[[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi" |
162 |
done |
163 |
if [[ ${linguas} != "" && ${linguas} != "en" ]]; then |
164 |
einfo "Selected language packs (first will be default): ${linguas}" |
165 |
fi |
166 |
fi |
167 |
} |
168 |
|
169 |
src_prepare() { |
170 |
# Apply our patches |
171 |
EPATCH_SUFFIX="patch" \ |
172 |
EPATCH_FORCE="yes" \ |
173 |
epatch "${WORKDIR}" |
174 |
|
175 |
if use crypt ; then |
176 |
mv "${WORKDIR}"/enigmail "${S}"/mailnews/extensions/enigmail |
177 |
cd "${S}"/mailnews/extensions/enigmail || die |
178 |
./makemake -r 2&> /dev/null |
179 |
sed -i -e 's:@srcdir@:${S}/mailnews/extensions/enigmail:' Makefile.in |
180 |
cd "${S}" |
181 |
fi |
182 |
|
183 |
# Allow user to apply any additional patches without modifing ebuild |
184 |
epatch_user |
185 |
|
186 |
eautoreconf |
187 |
|
188 |
cd mozilla |
189 |
eautoreconf |
190 |
cd js/src |
191 |
eautoreconf |
192 |
} |
193 |
|
194 |
src_configure() { |
195 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
196 |
MEXTENSIONS="default" |
197 |
|
198 |
#################################### |
199 |
# |
200 |
# mozconfig, CFLAGS and CXXFLAGS setup |
201 |
# |
202 |
#################################### |
203 |
|
204 |
mozconfig_init |
205 |
mozconfig_config |
206 |
|
207 |
# It doesn't compile on alpha without this LDFLAGS |
208 |
use alpha && append-ldflags "-Wl,--no-relax" |
209 |
|
210 |
if use crypt ; then |
211 |
# omni.jar breaks enigmail |
212 |
mozconfig_annotate '' --enable-chrome-format=jar |
213 |
fi |
214 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
215 |
mozconfig_annotate '' --with-default-mozilla-five-home="${EPREFIX}${MOZILLA_FIVE_HOME}" |
216 |
mozconfig_annotate '' --with-user-appdir=.thunderbird |
217 |
mozconfig_annotate '' --with-system-png |
218 |
|
219 |
# Use enable features |
220 |
mozconfig_use_enable lightning calendar |
221 |
mozconfig_use_enable gconf |
222 |
|
223 |
# Bug #72667 |
224 |
if use mozdom; then |
225 |
MEXTENSIONS="${MEXTENSIONS},inspector" |
226 |
fi |
227 |
|
228 |
# Finalize and report settings |
229 |
mozconfig_final |
230 |
|
231 |
#################################### |
232 |
# |
233 |
# Configure and build |
234 |
# |
235 |
#################################### |
236 |
|
237 |
# Disable no-print-directory |
238 |
MAKEOPTS=${MAKEOPTS/--no-print-directory/} |
239 |
|
240 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
241 |
append-cxxflags -fno-stack-protector |
242 |
fi |
243 |
|
244 |
# Ensure we do not fail on i{3,5,7} processors that support -mavx |
245 |
if use amd64 || use x86; then |
246 |
append-flags -mno-avx |
247 |
fi |
248 |
|
249 |
CPPFLAGS="${CPPFLAGS}" \ |
250 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
251 |
econf || die |
252 |
} |
253 |
|
254 |
src_compile() { |
255 |
emake || die |
256 |
|
257 |
# Only build enigmail extension if crypt enabled. |
258 |
if use crypt ; then |
259 |
emake -C "${S}"/mailnews/extensions/enigmail || die "make enigmail failed" |
260 |
emake -C "${S}"/mailnews/extensions/enigmail xpi || die "make enigmail xpi failed" |
261 |
fi |
262 |
} |
263 |
|
264 |
src_install() { |
265 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
266 |
|
267 |
emake DESTDIR="${D}" install || die "emake install failed" |
268 |
|
269 |
if use crypt ; then |
270 |
cd "${T}" || die |
271 |
unzip "${S}"/mozilla/dist/bin/enigmail*.xpi install.rdf || die |
272 |
emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf) |
273 |
|
274 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
275 |
cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} || die |
276 |
unzip "${S}"/mozilla/dist/bin/enigmail*.xpi || die |
277 |
fi |
278 |
|
279 |
if use lightning ; then |
280 |
declare emid emd1 emid2 |
281 |
|
282 |
emid="{a62ef8ec-5fdc-40c2-873c-223b8a6925cc}" |
283 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} |
284 |
cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid} |
285 |
unzip "${S}"/mozilla/dist/xpi-stage/gdata-provider.xpi |
286 |
|
287 |
emid1="calendar-timezones@×××××××.org" |
288 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid1} |
289 |
cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid1} |
290 |
unzip "${S}"/mozilla/dist/xpi-stage/calendar-timezones.xpi |
291 |
|
292 |
emid2="{e2fda1a4-762b-4020-b5ad-a41df1933103}" |
293 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid2} |
294 |
cd "${ED}"${MOZILLA_FIVE_HOME}/extensions/${emid2} |
295 |
unzip "${S}"/mozilla/dist/xpi-stage/lightning.xpi |
296 |
fi |
297 |
|
298 |
if ! [[ ${PV} =~ alpha|beta ]]; then |
299 |
linguas |
300 |
for X in ${linguas}; do |
301 |
[[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}" |
302 |
done |
303 |
fi |
304 |
|
305 |
if ! use bindist; then |
306 |
newicon "${S}"/other-licenses/branding/thunderbird/content/icon48.png thunderbird-icon.png |
307 |
domenu "${FILESDIR}"/icon/${PN}.desktop |
308 |
else |
309 |
newicon "${S}"/mail/branding/unofficial/content/icon48.png thunderbird-icon-unbranded.png |
310 |
newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \ |
311 |
${PN}.desktop |
312 |
|
313 |
sed -i -e "s:Mozilla\ Thunderbird:Lanikai:g" \ |
314 |
"${D}"/usr/share/applications/${PN}.desktop |
315 |
|
316 |
fi |
317 |
|
318 |
pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/thunderbird-bin |
319 |
|
320 |
# Enable very specific settings for thunderbird-3 |
321 |
cp "${FILESDIR}"/thunderbird-gentoo-default-prefs-1.js \ |
322 |
"${ED}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \ |
323 |
die "failed to cp thunderbird-gentoo-default-prefs.js" |
324 |
} |