1 |
armin76 07/12/31 14:02:49 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mozilla-thunderbird-1.5.0.14.ebuild |
5 |
Log: |
6 |
Version bump, stable on alpha/ia64/sparc/x86 since it contains security fixes |
7 |
(Portage version: 2.1.3.19, RepoMan options: --force) |
8 |
|
9 |
Revision Changes Path |
10 |
1.241 mail-client/mozilla-thunderbird/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog?rev=1.241&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog?rev=1.241&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog?r1=1.240&r2=1.241 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v |
19 |
retrieving revision 1.240 |
20 |
retrieving revision 1.241 |
21 |
diff -u -r1.240 -r1.241 |
22 |
--- ChangeLog 19 Nov 2007 10:34:40 -0000 1.240 |
23 |
+++ ChangeLog 31 Dec 2007 14:02:49 -0000 1.241 |
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.240 2007/11/19 10:34:40 armin76 Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/mail-client/mozilla-thunderbird/ChangeLog,v 1.241 2007/12/31 14:02:49 armin76 Exp $ |
29 |
+ |
30 |
+*mozilla-thunderbird-1.5.0.14 (31 Dec 2007) |
31 |
+ |
32 |
+ 31 Dec 2007; Raúl Porcel <armin76@g.o> |
33 |
+ +mozilla-thunderbird-1.5.0.14.ebuild: |
34 |
+ Version bump, stable on alpha/ia64/sparc/x86 since it contains security fixes |
35 |
|
36 |
19 Nov 2007; Raúl Porcel <armin76@g.o> |
37 |
-mozilla-thunderbird-2.0.0.6.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 mail-client/mozilla-thunderbird/mozilla-thunderbird-1.5.0.14.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.5.0.14.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-client/mozilla-thunderbird/mozilla-thunderbird-1.5.0.14.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: mozilla-thunderbird-1.5.0.14.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-1.5.0.14.ebuild,v 1.1 2007/12/31 14:02:49 armin76 Exp $ |
51 |
|
52 |
WANT_AUTOCONF="2.1" |
53 |
|
54 |
unset ALLOWED_FLAGS # stupid extra-functions.sh ... bug 49179 |
55 |
inherit flag-o-matic toolchain-funcs eutils mozconfig-2 mozilla-launcher makeedit multilib autotools mozextension |
56 |
|
57 |
LANGS="bg ca cs da de el en-GB es-AR es-ES eu fi fr ga-IE gu-IN he hu it ja ko lt mk nb-NO nl pa-IN pl pt-BR ru sk sl sv-SE tr zh-CN" |
58 |
SHORTLANGS="es-ES ga-IE nb-NO sv-SE" |
59 |
PATCH="${PN}-1.5.0.10-patches-0.1" |
60 |
|
61 |
DESCRIPTION="Thunderbird Mail Client" |
62 |
HOMEPAGE="http://www.mozilla.com/thunderbird/" |
63 |
SRC_URI="http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/${PV}/source/thunderbird-${PV}-source.tar.bz2 |
64 |
mirror://gentoo/${PATCH}.tar.bz2" |
65 |
|
66 |
KEYWORDS="alpha ~amd64 ia64 ~mips ~ppc sparc x86 ~x86-fbsd" |
67 |
SLOT="0" |
68 |
LICENSE="MPL-1.1 GPL-2 LGPL-2.1" |
69 |
IUSE="ldap crypt" |
70 |
|
71 |
for X in ${LANGS} ; do |
72 |
SRC_URI="${SRC_URI} linguas_${X/-/_}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )" |
73 |
IUSE="${IUSE} linguas_${X/-/_}" |
74 |
done |
75 |
|
76 |
for X in ${SHORTLANGS} ; do |
77 |
SRC_URI="${SRC_URI} linguas_${X%%-*}? ( http://dev.gentooexperimental.org/~armin76/dist/${P}-xpi/${P}-${X}.xpi )" |
78 |
IUSE="${IUSE} linguas_${X%%-*}" |
79 |
done |
80 |
|
81 |
RDEPEND=">=www-client/mozilla-launcher-1.55 |
82 |
>=dev-libs/nss-3.11.7 |
83 |
>=dev-libs/nspr-4.6.7" |
84 |
PDEPEND="crypt? ( <x11-plugins/enigmail-0.95.0 )" |
85 |
|
86 |
S="${WORKDIR}/mozilla" |
87 |
|
88 |
# Needed by src_compile() and src_install(). |
89 |
# Would do in pkg_setup but that loses the export attribute, they |
90 |
# become pure shell variables. |
91 |
export BUILD_OFFICIAL=1 |
92 |
export MOZILLA_OFFICIAL=1 |
93 |
export MOZ_CO_PROJECT=mail |
94 |
|
95 |
linguas() { |
96 |
linguas= |
97 |
local LANG |
98 |
for LANG in ${LINGUAS}; do |
99 |
if hasq ${LANG} en en_US; then |
100 |
hasq en ${linguas} || \ |
101 |
linguas="${linguas:+"${linguas} "}en" |
102 |
continue |
103 |
elif hasq ${LANG} ${LANGS//-/_}; then |
104 |
hasq ${LANG//_/-} ${linguas} || \ |
105 |
linguas="${linguas:+"${linguas} "}${LANG//_/-}" |
106 |
continue |
107 |
else |
108 |
local SLANG |
109 |
for SLANG in ${SHORTLANGS}; do |
110 |
if [[ ${LANG} == ${SLANG%%-*} ]]; then |
111 |
hasq ${SLANG} ${linguas} || \ |
112 |
linguas="${linguas:+"${linguas} "}${SLANG}" |
113 |
continue 2 |
114 |
fi |
115 |
done |
116 |
fi |
117 |
ewarn "Sorry, but mozilla-thunderbird does not support the ${LANG} LINGUA" |
118 |
done |
119 |
} |
120 |
|
121 |
pkg_setup() { |
122 |
if ! built_with_use x11-libs/cairo X; then |
123 |
eerror "Cairo is not built with X useflag." |
124 |
eerror "Please add 'X' to your USE flags, and re-emerge cairo." |
125 |
die "Cairo needs X" |
126 |
fi |
127 |
|
128 |
use moznopango && warn_mozilla_launcher_stub |
129 |
} |
130 |
|
131 |
src_unpack() { |
132 |
unpack ${A} |
133 |
|
134 |
linguas |
135 |
for X in ${linguas}; do |
136 |
[[ ${X} != en ]] && xpi_unpack ${P}-${X}.xpi |
137 |
done |
138 |
if [[ ${linguas} != "" ]]; then |
139 |
einfo "Selected language packs (first will be default): ${linguas}" |
140 |
fi |
141 |
|
142 |
cd ${S} || die "cd failed" |
143 |
# Apply our patches |
144 |
EPATCH_SUFFIX="patch" \ |
145 |
EPATCH_FORCE="yes" \ |
146 |
|
147 |
if use alpha || use ia64; then |
148 |
EPATCH_EXCLUDE="002_firefox-1.5-visibility-check.patch 009_firefox-1.5-no-textrels.patch" |
149 |
fi |
150 |
|
151 |
epatch ${WORKDIR}/patch |
152 |
|
153 |
# Fix a compilation issue using the 32-bit userland with 64-bit kernel on |
154 |
# PowerPC, because with that configuration, it detects a ppc64 system. |
155 |
# -- hansmi, 2005-11-13 |
156 |
if use ppc && [[ "${PROFILE_ARCH}" == ppc64 ]]; then |
157 |
sed -i -e "s#OS_TEST=\`uname -m\`\$#OS_TEST=${ARCH}#" \ |
158 |
${S}/configure |
159 |
sed -i -e "s#OS_TEST :=.*uname -m.*\$#OS_TEST:=${ARCH}#" \ |
160 |
${S}/security/coreconf/arch.mk |
161 |
fi |
162 |
|
163 |
eautoreconf || die "failed running autoreconf" |
164 |
} |
165 |
|
166 |
src_compile() { |
167 |
declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN} |
168 |
|
169 |
#################################### |
170 |
# |
171 |
# mozconfig, CFLAGS and CXXFLAGS setup |
172 |
# |
173 |
#################################### |
174 |
|
175 |
mozconfig_init |
176 |
mozconfig_config |
177 |
|
178 |
# tb-specific settings |
179 |
mozconfig_use_enable ldap |
180 |
mozconfig_use_enable ldap ldap-experimental |
181 |
mozconfig_annotate '' --enable-extensions=default |
182 |
mozconfig_annotate '' --with-default-mozilla-five-home=${MOZILLA_FIVE_HOME} |
183 |
mozconfig_annotate '' --with-user-appdir=.thunderbird |
184 |
mozconfig_annotate '' --with-system-nspr |
185 |
mozconfig_annotate '' --with-system-nss |
186 |
mozconfig_annotate '' --enable-official-branding |
187 |
|
188 |
if use alpha || use ia64; then |
189 |
echo "ac_cv_visibility_pragma=no" >> "${S}/.mozconfig" |
190 |
fi |
191 |
|
192 |
# Finalize and report settings |
193 |
mozconfig_final |
194 |
|
195 |
# hardened GCC uses -fstack-protector-all by default, which breaks us |
196 |
gcc-specs-ssp && append-flags -fno-stack-protector-all |
197 |
replace-flags -fstack-protector-all -fstack-protector |
198 |
|
199 |
#################################### |
200 |
# |
201 |
# Configure and build |
202 |
# |
203 |
#################################### |
204 |
append-flags -freorder-blocks -fno-reorder-functions |
205 |
|
206 |
# Export CPU_ARCH_TEST as it is not exported by default. |
207 |
case $(tc-arch) in |
208 |
amd64) [[ ${ABI} == "x86" ]] && CPU_ARCH_TEST="x86" || CPU_ARCH_TEST="x86_64" ;; |
209 |
ia64) CPU_ARCH_TEST="ia64" ;; |
210 |
ppc) CPU_ARCH_TEST="ppc" ;; |
211 |
*) CPU_ARCH_TEST=$(tc-arch) ;; |
212 |
esac |
213 |
|
214 |
export CPU_ARCH_TEST |
215 |
|
216 |
CPPFLAGS="${CPPFLAGS}" \ |
217 |
CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" \ |
218 |
econf || die |
219 |
|
220 |
# This removes extraneous CFLAGS from the Makefiles to reduce RAM |
221 |
# requirements while compiling |
222 |
edit_makefiles |
223 |
|
224 |
emake -j1 || die |
225 |
} |
226 |
|
227 |
pkg_preinst() { |
228 |
declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN} |
229 |
|
230 |
echo "" |
231 |
elog "Removing old installs though some really ugly code. It potentially" |
232 |
elog "eliminates any problems during the install, however suggestions to" |
233 |
elog "replace this are highly welcome. Send comments and suggestions to" |
234 |
elog "mozilla@g.o" |
235 |
rm -rf ${ROOT}${MOZILLA_FIVE_HOME} |
236 |
echo "" |
237 |
} |
238 |
|
239 |
src_install() { |
240 |
declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN} |
241 |
|
242 |
# Most of the installation happens here |
243 |
dodir ${MOZILLA_FIVE_HOME} |
244 |
cp -RL "${S}/dist/bin/"* "${D}${MOZILLA_FIVE_HOME}" || die "Copy of files failed" |
245 |
|
246 |
linguas |
247 |
for X in ${linguas}; do |
248 |
[[ ${X} != en ]] && xpi_install ${WORKDIR}/${P}-${X} |
249 |
done |
250 |
|
251 |
local LANG=${linguas%% *} |
252 |
if [[ ${LANG} != "" && ${LANG} != "en" ]]; then |
253 |
ebegin "Setting default locale to ${LANG}" |
254 |
sed -i "s:pref(\"general.useragent.locale\", \"en-US\"):pref(\"general.useragent.locale\", \"${LANG}\"):" \ |
255 |
${D}${MOZILLA_FIVE_HOME}/defaults/pref/all-thunderbird.js \ |
256 |
${D}${MOZILLA_FIVE_HOME}/defaults/pref/all-l10n.js |
257 |
eend $? || die "sed failed to change locale" |
258 |
fi |
259 |
|
260 |
# Create directory structure to support portage-installed extensions. |
261 |
# See update_chrome() in mozilla-launcher |
262 |
keepdir ${MOZILLA_FIVE_HOME}/chrome.d |
263 |
keepdir ${MOZILLA_FIVE_HOME}/extensions.d |
264 |
cp ${D}${MOZILLA_FIVE_HOME}/chrome/installed-chrome.txt \ |
265 |
${D}${MOZILLA_FIVE_HOME}/chrome.d/0_base-chrome.txt |
266 |
|
267 |
# Create /usr/bin/thunderbird |
268 |
install_mozilla_launcher_stub thunderbird ${MOZILLA_FIVE_HOME} |
269 |
|
270 |
# Install icon and .desktop for menu entry |
271 |
insinto /usr/share/pixmaps |
272 |
doins ${FILESDIR}/icon/thunderbird-icon.png |
273 |
|
274 |
# Fix bug 54179: Install .desktop file into /usr/share/applications |
275 |
# instead of /usr/share/gnome/apps/Internet (18 Jun 2004 agriffis) |
276 |
insinto /usr/share/applications |
277 |
doins ${FILESDIR}/icon/${PN}.desktop |
278 |
|
279 |
#################################### |
280 |
# |
281 |
# Install files necessary for applications to build against firefox |
282 |
# |
283 |
#################################### |
284 |
|
285 |
ewarn "Installing includes and idl files..." |
286 |
dodir ${MOZILLA_FIVE_HOME}/idl ${MOZILLA_FIVE_HOME}/include |
287 |
cd ${S}/dist |
288 |
cp -LfR include/* ${D}${MOZILLA_FIVE_HOME}/include || die "failed to copy" |
289 |
cp -LfR idl/* ${D}${MOZILLA_FIVE_HOME}/idl || die "failed to copy" |
290 |
|
291 |
# Dirty hack to get some applications using this header running |
292 |
dosym ${MOZILLA_FIVE_HOME}/include/necko/nsIURI.h \ |
293 |
/usr/$(get_libdir)/${MOZILLA_FIVE_HOME##*/}/include/nsIURI.h |
294 |
|
295 |
# Warn user that remerging enigmail is neccessary on USE=crypt |
296 |
use crypt && ewarn "Please remerge x11-plugins/enigmail after updating mozilla-thunderbird." |
297 |
} |
298 |
|
299 |
pkg_postinst() { |
300 |
declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN} |
301 |
|
302 |
# This should be called in the postinst and postrm of all the |
303 |
# mozilla, mozilla-bin, firefox, firefox-bin, thunderbird and |
304 |
# thunderbird-bin ebuilds. |
305 |
update_mozilla_launcher_symlinks |
306 |
} |
307 |
|
308 |
pkg_postrm() { |
309 |
declare MOZILLA_FIVE_HOME=/usr/$(get_libdir)/${PN} |
310 |
|
311 |
update_mozilla_launcher_symlinks |
312 |
} |
313 |
|
314 |
|
315 |
|
316 |
-- |
317 |
gentoo-commits@g.o mailing list |