1 |
anarchy 10/04/10 01:53:14 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mozilla-thunderbird-3.0.4-r1.ebuild |
5 |
Log: |
6 |
Actually enable system hunspell so dicts. are found |
7 |
(Portage version: 2.1.8.3/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.325 mail-client/mozilla-thunderbird/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog?rev=1.325&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog?rev=1.325&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog?r1=1.324&r2=1.325 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v |
19 |
retrieving revision 1.324 |
20 |
retrieving revision 1.325 |
21 |
diff -u -r1.324 -r1.325 |
22 |
--- ChangeLog 8 Apr 2010 03:47:25 -0000 1.324 |
23 |
+++ ChangeLog 10 Apr 2010 01:53:14 -0000 1.325 |
24 |
@@ -1,6 +1,11 @@ |
25 |
# ChangeLog for mail-client/mozilla-thunderbird |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.324 2010/04/08 03:47:25 anarchy Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.325 2010/04/10 01:53:14 anarchy Exp $ |
29 |
+ |
30 |
+*mozilla-thunderbird-3.0.4-r1 (10 Apr 2010) |
31 |
+ |
32 |
+ 10 Apr 2010; <anarchy@g.o> +mozilla-thunderbird-3.0.4-r1.ebuild: |
33 |
+ actually enable system hunspell support |
34 |
|
35 |
*mozilla-thunderbird-3.0.4 (08 Apr 2010) |
36 |
|
37 |
|
38 |
|
39 |
|
40 |
1.1 mail-client/mozilla-thunderbird/mozilla-thunderbird-3.0.4-r1.ebuild |
41 |
|
42 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/mozilla-thunderbird-3.0.4-r1.ebuild?rev=1.1&view=markup |
43 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/mozilla-thunderbird-3.0.4-r1.ebuild?rev=1.1&content-type=text/plain |
44 |
|
45 |
Index: mozilla-thunderbird-3.0.4-r1.ebuild |
46 |
=================================================================== |
47 |
# Copyright 1999-2010 Gentoo Foundation |
48 |
# Distributed under the terms of the GNU General Public License v2 |
49 |
# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/mozilla-thunderbird-3.0.4-r1.ebuild,v 1.1 2010/04/10 01:53:14 anarchy Exp $ |
50 |
EAPI="2" |
51 |
WANT_AUTOCONF="2.1" |
52 |
|
53 |
inherit flag-o-matic toolchain-funcs eutils mozconfig-3 makeedit multilib mozextension autotools |
54 |
|
55 |
LANGS="af be bg ca cs da de el en-GB en-US es-AR es-ES eu fi fr ga-IE he hu it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR pt-PT ru sk sv-SE tr uk zh-CN zh-TW" |
56 |
# Languages not rebuilt for "sl mk" |
57 |
NOSHORTLANGS="en-GB es-AR pt-BR zh-TW" |
58 |
|
59 |
MY_PV2="${PV/_rc/rc}" |
60 |
MY_P="${P/_rc/rc}" |
61 |
|
62 |
DESCRIPTION="Thunderbird Mail Client" |
63 |
HOMEPAGE="http://www.mozilla.com/en-US/thunderbird/" |
64 |
|
65 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
66 |
SLOT="0" |
67 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
68 |
IUSE="alsa ldap crypt bindist lightning mozdom system-sqlite" |
69 |
PATCH="${PN}-3.0-patches-0.3" |
70 |
|
71 |
REL_URI="http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases" |
72 |
SRC_URI="${REL_URI}/${MY_PV2}/source/thunderbird-${MY_PV2}.source.tar.bz2 |
73 |
http://dev.gentoo.org/~anarchy/dist/${PATCH}.tar.bz2" |
74 |
|
75 |
for X in ${LANGS} ; do |
76 |
if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then |
77 |
SRC_URI="${SRC_URI} |
78 |
linguas_${X/-/_}? ( ${REL_URI}/${MY_PV2}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )" |
79 |
fi |
80 |
IUSE="${IUSE} linguas_${X/-/_}" |
81 |
# english is handled internally |
82 |
if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then |
83 |
if [ "${X}" != "en-US" ]; then |
84 |
SRC_URI="${SRC_URI} |
85 |
linguas_${X%%-*}? ( ${REL_URI}/${PV}/linux-i686/xpi/${X}.xpi -> ${P}-${X}.xpi )" |
86 |
fi |
87 |
IUSE="${IUSE} linguas_${X%%-*}" |
88 |
fi |
89 |
done |
90 |
|
91 |
RDEPEND=">=sys-devel/binutils-2.16.1 |
92 |
>=dev-libs/nss-3.12.3 |
93 |
>=dev-libs/nspr-4.8 |
94 |
alsa? ( media-libs/alsa-lib ) |
95 |
system-sqlite? ( >=dev-db/sqlite-3.6.22-r2[fts3,secure-delete] ) |
96 |
>=media-libs/lcms-1.17 |
97 |
>=app-text/hunspell-1.2 |
98 |
x11-libs/cairo[X] |
99 |
x11-libs/pango[X] |
100 |
!x11-plugins/lightning" |
101 |
|
102 |
PDEPEND="crypt? ( >=x11-plugins/enigmail-1.0 )" |
103 |
|
104 |
S="${WORKDIR}"/comm-1.9.1 |
105 |
|
106 |
linguas() { |
107 |
local LANG SLANG |
108 |
for LANG in ${LINGUAS}; do |
109 |
if has ${LANG} en en_US; then |
110 |
has en ${linguas} || linguas="${linguas:+"${linguas} "}en" |
111 |
continue |
112 |
elif has ${LANG} ${LANGS//-/_}; then |
113 |
has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}" |
114 |
continue |
115 |
elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then |
116 |
for X in ${LANGS}; do |
117 |
if [[ "${X}" == "${LANG}-"* ]] && \ |
118 |
[[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then |
119 |
has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}" |
120 |
continue 2 |
121 |
fi |
122 |
done |
123 |
fi |
124 |
ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA" |
125 |
done |
126 |
} |
127 |
|
128 |
pkg_setup() { |
129 |
export BUILD_OFFICIAL=1 |
130 |
export MOZILLA_OFFICIAL=1 |
131 |
|
132 |
if ! use bindist; then |
133 |
elog "You are enabling official branding. You may not redistribute this build" |
134 |
elog "to any users on your network or the internet. Doing so puts yourself into" |
135 |
elog "a legal problem with Mozilla Foundation" |
136 |
elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag" |
137 |
fi |
138 |
} |
139 |
|
140 |
src_unpack() { |
141 |
unpack ${A} |
142 |
|
143 |
linguas |
144 |
for X in ${linguas}; do |
145 |
# FIXME: Add support for unpacking xpis to portage |
146 |
[[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi" |
147 |
done |
148 |
if [[ ${linguas} != "" && ${linguas} != "en" ]]; then |
149 |
einfo "Selected language packs (first will be default): ${linguas}" |
150 |
fi |
151 |
} |
152 |
|
153 |
src_prepare() { |
154 |
# Apply our patches |
155 |
EPATCH_EXCLUDE="106-bz466250_att349521_fix_ftbfs_with_cairo_fb.patch" |
156 |
EPATCH_SUFFIX="patch" \ |
157 |
EPATCH_FORCE="yes" \ |
158 |
epatch "${WORKDIR}" |
159 |
|
160 |
epatch "${FILESDIR}/1002_fix-system-hunspell-dict-detections.patch" |
161 |
|
162 |
eautoreconf |
163 |
|
164 |
cd mozilla |
165 |
eautoreconf |
166 |
cd js/src |
167 |
eautoreconf |
168 |
} |
169 |
|
170 |
src_configure() { |
171 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
172 |
MEXTENSIONS="default" |
173 |
|
174 |
#################################### |
175 |
# |
176 |
# mozconfig, CFLAGS and CXXFLAGS setup |
177 |
# |
178 |
#################################### |
179 |
|
180 |
touch mail/config/mozconfig |
181 |
mozconfig_init |
182 |
mozconfig_config |
183 |
|
184 |
# It doesn't compile on alpha without this LDFLAGS |
185 |
use alpha && append-ldflags "-Wl,--no-relax" |
186 |
|
187 |
mozconfig_annotate '' --enable-extensions="${MEXTENSIONS}" |
188 |
mozconfig_annotate '' --enable-application=mail |
189 |
mozconfig_use_enable ldap |
190 |
mozconfig_use_enable ldap ldap-experimental |
191 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
192 |
mozconfig_annotate '' --with-user-appdir=.thunderbird |
193 |
mozconfig_annotate '' --with-system-nspr |
194 |
mozconfig_annotate '' --with-system-nss |
195 |
mozconfig_annotate 'broken' --disable-crashreporter |
196 |
mozconfig_annotate '' --enable-system-hunspell |
197 |
|
198 |
# Use enable features |
199 |
mozconfig_use_enable lightning calendar |
200 |
mozconfig_use_enable system-sqlite |
201 |
mozconfig_use_enable alsa ogg |
202 |
mozconfig_use_enable alsa wave |
203 |
|
204 |
# Bug #72667 |
205 |
if use mozdom; then |
206 |
MEXTENSIONS="${MEXTENSIONS},inspector" |
207 |
fi |
208 |
|
209 |
if ! use bindist; then |
210 |
mozconfig_annotate '' --enable-official-branding |
211 |
fi |
212 |
|
213 |
# Finalize and report settings |
214 |
mozconfig_final |
215 |
|
216 |
#################################### |
217 |
# |
218 |
# Configure and build |
219 |
# |
220 |
#################################### |
221 |
|
222 |
# Disable no-print-directory |
223 |
MAKEOPTS=${MAKEOPTS/--no-print-directory/} |
224 |
|
225 |
if [[ $(gcc-major-version) -lt 4 ]]; then |
226 |
append-cxxflags -fno-stack-protector |
227 |
fi |
228 |
|
229 |
CPPFLAGS="${CPPFLAGS}" \ |
230 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
231 |
econf || die |
232 |
} |
233 |
|
234 |
src_compile() { |
235 |
# Should the build use multiprocessing? Not enabled by default, as it tends to break |
236 |
[ "${WANT_MP}" = "true" ] && jobs=${MAKEOPTS} || jobs="-j1" |
237 |
emake ${jobs} || die |
238 |
} |
239 |
|
240 |
src_install() { |
241 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
242 |
|
243 |
emake DESTDIR="${D}" install || die "emake install failed" |
244 |
|
245 |
if use lightning ; then |
246 |
declare emid |
247 |
|
248 |
cd "${T}" |
249 |
unzip "${S}"/mozilla/dist/xpi-stage/gdata-provider.xpi install.rdf |
250 |
emid=$(sed -n '/<em:id>/!d; s/.*\({.*}\).*/\1/; p; q' install.rdf) |
251 |
|
252 |
dodir ${MOZILLA_FIVE_HOME}/extensions/${emid} |
253 |
cd "${D}"${MOZILLA_FIVE_HOME}/extensions/${emid} |
254 |
unzip "${S}"/mozilla/dist/xpi-stage/gdata-provider.xpi |
255 |
fi |
256 |
|
257 |
linguas |
258 |
for X in ${linguas}; do |
259 |
[[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}" |
260 |
done |
261 |
|
262 |
if ! use bindist; then |
263 |
newicon "${S}"/other-licenses/branding/thunderbird/content/icon48.png thunderbird-icon.png |
264 |
domenu "${FILESDIR}"/icon/${PN}.desktop |
265 |
else |
266 |
newicon "${S}"/mail/branding/nightly/content/icon48.png thunderbird-icon-unbranded.png |
267 |
newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \ |
268 |
${PN}.desktop |
269 |
fi |
270 |
|
271 |
# Warn user that remerging enigmail is neccessary on USE=crypt |
272 |
use crypt && ewarn "Please remerge x11-plugins/enigmail after updating ${PN}." |
273 |
|
274 |
# Enable very specific settings for thunderbird-3 |
275 |
cp "${FILESDIR}"/thunderbird-gentoo-default-prefs.js \ |
276 |
"${D}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \ |
277 |
die "failed to cp thunderbird-gentoo-default-prefs.js" |
278 |
} |