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