1 |
armin76 07/11/15 15:10:12 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mozilla-thunderbird-2.0.0.9.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
(Portage version: 2.1.3.19) |
8 |
|
9 |
Revision Changes Path |
10 |
1.234 mail-client/mozilla-thunderbird/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog?rev=1.234&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog?rev=1.234&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog?r1=1.233&r2=1.234 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v |
19 |
retrieving revision 1.233 |
20 |
retrieving revision 1.234 |
21 |
diff -u -r1.233 -r1.234 |
22 |
--- ChangeLog 5 Sep 2007 11:19:52 -0000 1.233 |
23 |
+++ ChangeLog 15 Nov 2007 15:10:12 -0000 1.234 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for mail-client/mozilla-thunderbird |
26 |
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.233 2007/09/05 11:19:52 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.234 2007/11/15 15:10:12 armin76 Exp $ |
29 |
+ |
30 |
+*mozilla-thunderbird-2.0.0.9 (15 Nov 2007) |
31 |
+ |
32 |
+ 15 Nov 2007; Raúl Porcel <armin76@g.o> |
33 |
+ +mozilla-thunderbird-2.0.0.9.ebuild: |
34 |
+ Version bump |
35 |
|
36 |
05 Sep 2007; Raúl Porcel <armin76@g.o> |
37 |
-mozilla-thunderbird-1.5.0.12.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.9.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.9.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.9.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: mozilla-thunderbird-2.0.0.9.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2007 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/mozilla-thunderbird-2.0.0.9.ebuild,v 1.1 2007/11/15 15:10:12 armin76 Exp $ |
51 |
|
52 |
WANT_AUTOCONF="2.1" |
53 |
|
54 |
inherit flag-o-matic toolchain-funcs eutils mozconfig-2 mozilla-launcher makeedit multilib mozextension autotools |
55 |
|
56 |
PATCH="${P}-patches-0.1" |
57 |
LANGS="be bg ca cs da de el en-GB es-AR es-ES eu fi fr ga-IE he hu it ja ko lt mk nb-NO nl nn-NO pa-IN pl pt-BR pt-PT ru sk sl sv-SE tr zh-CN zh-TW" |
58 |
NOSHORTLANGS="en-GB es-AR pt-BR zh-TW" |
59 |
|
60 |
DESCRIPTION="Thunderbird Mail Client" |
61 |
HOMEPAGE="http://www.mozilla.com/en-US/thunderbird/" |
62 |
|
63 |
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" |
64 |
SLOT="0" |
65 |
LICENSE="MPL-1.1 GPL-2 LGPL-2.1" |
66 |
IUSE="ldap crypt bindist mozdom replytolist" |
67 |
|
68 |
MOZ_URI="http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${PV}" |
69 |
SRC_URI="${MOZ_URI}/source/thunderbird-${PV}-source.tar.bz2 |
70 |
mirror://gentoo/${PATCH}.tar.bz2" |
71 |
|
72 |
# These are in |
73 |
# |
74 |
# http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${MY_PV}/linux-i686/xpi/ |
75 |
# |
76 |
# for i in $LANGS $SHORTLANGS; do wget $i.xpi -O ${P}-$i.xpi; done |
77 |
|
78 |
for X in ${LANGS} ; do |
79 |
SRC_URI="${SRC_URI} |
80 |
linguas_${X/-/_}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )" |
81 |
IUSE="${IUSE} linguas_${X/-/_}" |
82 |
# english is handled internally |
83 |
if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then |
84 |
SRC_URI="${SRC_URI} |
85 |
linguas_${X%%-*}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )" |
86 |
IUSE="${IUSE} linguas_${X%%-*}" |
87 |
fi |
88 |
done |
89 |
|
90 |
RDEPEND=">=www-client/mozilla-launcher-1.56 |
91 |
>=dev-libs/nss-3.11.5 |
92 |
>=dev-libs/nspr-4.6.5-r1" |
93 |
|
94 |
PDEPEND="crypt? ( >=x11-plugins/enigmail-0.95.3-r1 ) |
95 |
replytolist? ( x11-plugins/replytolist )" |
96 |
|
97 |
S="${WORKDIR}/mozilla" |
98 |
|
99 |
# Needed by src_compile() and src_install(). |
100 |
# Would do in pkg_setup but that loses the export attribute, they |
101 |
# become pure shell variables. |
102 |
export MOZ_CO_PROJECT=mail |
103 |
export BUILD_OFFICIAL=1 |
104 |
export MOZILLA_OFFICIAL=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 |
if ! built_with_use x11-libs/cairo X; then |
130 |
eerror "Cairo is not built with X useflag." |
131 |
eerror "Please add 'X' to your USE flags, and re-emerge cairo." |
132 |
die "Cairo needs X" |
133 |
fi |
134 |
|
135 |
if ! use bindist; then |
136 |
elog "You are enabling official branding. You may not redistribute this build" |
137 |
elog "to any users on your network or the internet. Doing so puts yourself into" |
138 |
elog "a legal problem with Mozilla Foundation" |
139 |
elog "You can disable it by emerging ${PN} _with_ the bindist USE-flag" |
140 |
fi |
141 |
|
142 |
use moznopango && warn_mozilla_launcher_stub |
143 |
} |
144 |
|
145 |
src_unpack() { |
146 |
unpack thunderbird-${PV}-source.tar.bz2 ${PATCH}.tar.bz2 |
147 |
|
148 |
linguas |
149 |
for X in ${linguas}; do |
150 |
[[ ${X} != "en" ]] && xpi_unpack "${P}-${X}.xpi" |
151 |
done |
152 |
if [[ ${linguas} != "" ]]; then |
153 |
elog "Selected language packs (first will be default): ${linguas}" |
154 |
fi |
155 |
|
156 |
# Apply our patches |
157 |
cd "${S}" || die "cd failed" |
158 |
EPATCH_SUFFIX="patch" \ |
159 |
EPATCH_FORCE="yes" \ |
160 |
epatch "${WORKDIR}"/patch |
161 |
|
162 |
eautoreconf |
163 |
} |
164 |
|
165 |
src_compile() { |
166 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
167 |
|
168 |
#################################### |
169 |
# |
170 |
# mozconfig, CFLAGS and CXXFLAGS setup |
171 |
# |
172 |
#################################### |
173 |
|
174 |
mozconfig_init |
175 |
mozconfig_config |
176 |
|
177 |
# tb-specific settings |
178 |
mozconfig_use_enable ldap |
179 |
mozconfig_use_enable ldap ldap-experimental |
180 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
181 |
mozconfig_annotate '' --with-user-appdir=.thunderbird |
182 |
mozconfig_annotate '' --with-system-nspr |
183 |
mozconfig_annotate '' --with-system-nss |
184 |
|
185 |
# Bug #72667 |
186 |
if use mozdom; then |
187 |
mozconfig_annotate '' --enable-extensions=default,inspector |
188 |
else |
189 |
mozconfig_annotate '' --enable-extensions=default |
190 |
fi |
191 |
|
192 |
if ! use bindist; then |
193 |
mozconfig_annotate '' --enable-official-branding |
194 |
fi |
195 |
|
196 |
# Finalize and report settings |
197 |
mozconfig_final |
198 |
|
199 |
# -fstack-protector breaks us |
200 |
if gcc-version ge 4 1; then |
201 |
gcc-specs-ssp && append-flags -fno-stack-protector |
202 |
else |
203 |
gcc-specs-ssp && append-flags -fno-stack-protector-all |
204 |
fi |
205 |
filter-flags -fstack-protector -fstack-protector-all |
206 |
|
207 |
#################################### |
208 |
# |
209 |
# Configure and build |
210 |
# |
211 |
#################################### |
212 |
|
213 |
CPPFLAGS="${CPPFLAGS}" \ |
214 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
215 |
econf || die |
216 |
|
217 |
# This removes extraneous CFLAGS from the Makefiles to reduce RAM |
218 |
# requirements while compiling |
219 |
edit_makefiles |
220 |
|
221 |
emake || die |
222 |
} |
223 |
|
224 |
pkg_preinst() { |
225 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
226 |
|
227 |
elog "Removing old installs with some really ugly code. It potentially" |
228 |
elog "eliminates any problems during the install, however suggestions to" |
229 |
elog "replace this are highly welcome. Send comments and suggestions to" |
230 |
elog "mozilla@g.o." |
231 |
rm -rf "${ROOT}"/"${MOZILLA_FIVE_HOME}" |
232 |
} |
233 |
|
234 |
src_install() { |
235 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
236 |
|
237 |
# Most of the installation happens here |
238 |
dodir "${MOZILLA_FIVE_HOME}" |
239 |
cp -RL "${S}"/dist/bin/* "${D}"/"${MOZILLA_FIVE_HOME}"/ || die "cp failed" |
240 |
|
241 |
linguas |
242 |
for X in ${linguas}; do |
243 |
[[ ${X} != "en" ]] && xpi_install "${WORKDIR}"/"${P}-${X}" |
244 |
done |
245 |
|
246 |
local LANG=${linguas%% *} |
247 |
if [[ ${LANG} != "" && ${LANG} != "en" ]]; then |
248 |
ebegin "Setting default locale to ${LANG}" |
249 |
sed -i "s:pref(\"general.useragent.locale\", \"en-US\"):pref(\"general.useragent.locale\", \"${LANG}\"):" \ |
250 |
"${D}"${MOZILLA_FIVE_HOME}/defaults/pref/all-thunderbird.js \ |
251 |
"${D}"${MOZILLA_FIVE_HOME}/defaults/pref/all-l10n.js |
252 |
eend $? || die "sed failed to change locale" |
253 |
fi |
254 |
|
255 |
# Create directory structure to support portage-installed extensions. |
256 |
# See update_chrome() in mozilla-launcher |
257 |
keepdir ${MOZILLA_FIVE_HOME}/chrome.d |
258 |
keepdir ${MOZILLA_FIVE_HOME}/extensions.d |
259 |
cp "${D}"${MOZILLA_FIVE_HOME}/chrome/installed-chrome.txt \ |
260 |
"${D}"${MOZILLA_FIVE_HOME}/chrome.d/0_base-chrome.txt |
261 |
|
262 |
# Create /usr/bin/thunderbird |
263 |
install_mozilla_launcher_stub thunderbird ${MOZILLA_FIVE_HOME} |
264 |
|
265 |
if ! use bindist; then |
266 |
doicon "${FILESDIR}"/icon/thunderbird-icon.png |
267 |
domenu "${FILESDIR}"/icon/${PN}.desktop |
268 |
else |
269 |
doicon "${FILESDIR}"/icon/thunderbird-icon-unbranded.png |
270 |
newmenu "${FILESDIR}"/icon/${PN}-unbranded.desktop \ |
271 |
${PN}.desktop |
272 |
fi |
273 |
|
274 |
# Install files necessary for applications to build against thunderbird |
275 |
elog "Installing includes and idl files..." |
276 |
cp -LfR "${S}"/dist/include "${D}"/"${MOZILLA_FIVE_HOME}" || die "cp failed" |
277 |
cp -LfR "${S}"/dist/idl "${D}"/"${MOZILLA_FIVE_HOME}" || die "cp failed" |
278 |
|
279 |
# Dirty hack to get some applications using this header running |
280 |
dosym "${MOZILLA_FIVE_HOME}"/include/necko/nsIURI.h \ |
281 |
"${MOZILLA_FIVE_HOME}"/include/nsIURI.h |
282 |
|
283 |
# Warn user that remerging enigmail is neccessary on USE=crypt |
284 |
use crypt && ewarn "Please remerge x11-plugins/enigmail after updating ${PN}." |
285 |
} |
286 |
|
287 |
pkg_postinst() { |
288 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
289 |
|
290 |
# This should be called in the postinst and postrm of all the |
291 |
# mozilla, mozilla-bin, firefox, firefox-bin, thunderbird and |
292 |
# thunderbird-bin ebuilds. |
293 |
update_mozilla_launcher_symlinks |
294 |
} |
295 |
|
296 |
pkg_postrm() { |
297 |
declare MOZILLA_FIVE_HOME="/usr/$(get_libdir)/${PN}" |
298 |
|
299 |
update_mozilla_launcher_symlinks |
300 |
} |
301 |
|
302 |
|
303 |
|
304 |
-- |
305 |
gentoo-commits@g.o mailing list |