1 |
nirbheek 10/06/26 03:35:06 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: thunderbird-bin-3.1.ebuild |
5 |
Log: |
6 |
Bump to 3.1 |
7 |
(Portage version: 2.1.8.3/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.6 mail-client/thunderbird-bin/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?rev=1.6&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?rev=1.6&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?r1=1.5&r2=1.6 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v |
19 |
retrieving revision 1.5 |
20 |
retrieving revision 1.6 |
21 |
diff -u -r1.5 -r1.6 |
22 |
--- ChangeLog 24 Jun 2010 00:47:01 -0000 1.5 |
23 |
+++ ChangeLog 26 Jun 2010 03:35:06 -0000 1.6 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for mail-client/thunderbird-bin |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v 1.5 2010/06/24 00:47:01 angelos Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v 1.6 2010/06/26 03:35:06 nirbheek Exp $ |
29 |
+ |
30 |
+*thunderbird-bin-3.1 (26 Jun 2010) |
31 |
+ |
32 |
+ 26 Jun 2010; Nirbheek Chauhan <nirbheek@g.o> |
33 |
+ +thunderbird-bin-3.1.ebuild: |
34 |
+ Bump to 3.1 |
35 |
|
36 |
24 Jun 2010; Christoph Mende <angelos@g.o> |
37 |
thunderbird-bin-3.0.5.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 mail-client/thunderbird-bin/thunderbird-bin-3.1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-3.1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-3.1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: thunderbird-bin-3.1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-3.1.ebuild,v 1.1 2010/06/26 03:35:06 nirbheek Exp $ |
51 |
|
52 |
EAPI="2" |
53 |
|
54 |
inherit eutils multilib mozextension |
55 |
|
56 |
# Can be updated using scripts/get_langs.sh from mozilla overlay |
57 |
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 |
58 |
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 |
59 |
sk sl sq sv-SE tr uk zh-CN zh-TW" |
60 |
NOSHORTLANGS="en-GB es-AR pt-BR zh-TW" |
61 |
|
62 |
MY_PN="${PN/-bin}" |
63 |
MY_PV="${PV/_beta/b}" |
64 |
MY_P="${MY_PN}-${MY_PV}" |
65 |
|
66 |
DESCRIPTION="Thunderbird Mail Client" |
67 |
REL_URI="http://releases.mozilla.org/pub/mozilla.org/${MY_PN}/releases/" |
68 |
SRC_URI="${REL_URI}/${MY_PV}/linux-i686/en-US/${MY_P}.tar.bz2" |
69 |
HOMEPAGE="http://www.mozilla.com/thunderbird" |
70 |
RESTRICT="strip" |
71 |
|
72 |
KEYWORDS="-* ~amd64 ~x86" |
73 |
SLOT="0" |
74 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
75 |
IUSE="" |
76 |
|
77 |
for X in ${LANGS} ; do |
78 |
if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then |
79 |
SRC_URI="${SRC_URI} |
80 |
linguas_${X/-/_}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin/}-${X}.xpi )" |
81 |
fi |
82 |
IUSE="${IUSE} linguas_${X/-/_}" |
83 |
# english is handled internally |
84 |
if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then |
85 |
if [ "${X}" != "en-US" ]; then |
86 |
SRC_URI="${SRC_URI} |
87 |
linguas_${X%%-*}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin/}-${X}.xpi )" |
88 |
fi |
89 |
IUSE="${IUSE} linguas_${X%%-*}" |
90 |
fi |
91 |
done |
92 |
|
93 |
DEPEND="app-arch/unzip" |
94 |
RDEPEND="x11-libs/libXrender |
95 |
x11-libs/libXt |
96 |
x11-libs/libXmu |
97 |
x86? ( |
98 |
>=x11-libs/gtk+-2.2 |
99 |
net-misc/curl[nss] |
100 |
) |
101 |
amd64? ( |
102 |
app-emulation/emul-linux-x86-baselibs |
103 |
app-emulation/emul-linux-x86-gtklibs |
104 |
)" |
105 |
|
106 |
S="${WORKDIR}/thunderbird" |
107 |
|
108 |
pkg_setup() { |
109 |
# This is a binary x86 package => ABI=x86 |
110 |
# Please keep this in future versions |
111 |
# Danny van Dyk <kugelfang@g.o> 2005/03/26 |
112 |
has_multilib_profile && ABI="x86" |
113 |
} |
114 |
|
115 |
linguas() { |
116 |
local LANG SLANG |
117 |
for LANG in ${LINGUAS}; do |
118 |
if has ${LANG} en en_US; then |
119 |
has en ${linguas} || linguas="${linguas:+"${linguas} "}en" |
120 |
continue |
121 |
elif has ${LANG} ${LANGS//-/_}; then |
122 |
has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}" |
123 |
continue |
124 |
elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then |
125 |
for X in ${LANGS}; do |
126 |
if [[ "${X}" == "${LANG}-"* ]] && \ |
127 |
[[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then |
128 |
has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}" |
129 |
continue 2 |
130 |
fi |
131 |
done |
132 |
fi |
133 |
ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA" |
134 |
done |
135 |
} |
136 |
|
137 |
src_unpack() { |
138 |
unpack ${A} |
139 |
|
140 |
linguas |
141 |
for X in ${linguas}; do |
142 |
[[ ${X} != en ]] && xpi_unpack "${P/-bin}-${X}.xpi" |
143 |
done |
144 |
} |
145 |
|
146 |
src_install() { |
147 |
declare MOZILLA_FIVE_HOME="/opt/${MY_PN}" |
148 |
|
149 |
# Install thunderbird in /opt |
150 |
dodir ${MOZILLA_FIVE_HOME%/*} |
151 |
mv "${S}" "${D}"${MOZILLA_FIVE_HOME} |
152 |
|
153 |
linguas |
154 |
for X in ${linguas}; do |
155 |
[[ ${X} != en ]] && xpi_install ${WORKDIR}/${P/-bin}-${X} |
156 |
done |
157 |
|
158 |
# Create /usr/bin/thunderbird-bin |
159 |
dodir /usr/bin/ |
160 |
cat <<EOF >"${D}"/usr/bin/${PN} |
161 |
#!/bin/sh |
162 |
unset LD_PRELOAD |
163 |
LD_LIBRARY_PATH="${MOZILLA_FIVE_HOME}" |
164 |
exec ${MOZILLA_FIVE_HOME}/thunderbird "\$@" |
165 |
EOF |
166 |
fperms 0755 /usr/bin/${PN} |
167 |
|
168 |
# Install icon and .desktop for menu entry |
169 |
doicon "${FILESDIR}"/icon/${PN}-icon.png |
170 |
domenu "${FILESDIR}"/icon/${PN}.desktop |
171 |
|
172 |
# revdep-rebuild entry |
173 |
insinto /etc/revdep-rebuild |
174 |
doins "${FILESDIR}"/10${PN} |
175 |
|
176 |
# Enable very specific settings for thunderbird-3 |
177 |
cp "${FILESDIR}"/thunderbird-gentoo-default-prefs.js \ |
178 |
"${D}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \ |
179 |
die "failed to cp thunderbird-gentoo-default-prefs.js" |
180 |
} |
181 |
|
182 |
pkg_postinst() { |
183 |
#elog "For enigmail, please see instructions at" |
184 |
#elog " http://enigmail.mozdev.org/" |
185 |
|
186 |
if use x86; then |
187 |
if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' ; then |
188 |
einfo |
189 |
einfo "For using the crashreporter, you need gnome-base/gconf," |
190 |
einfo "gnome-base/orbit and net-misc/curl emerged." |
191 |
einfo |
192 |
fi |
193 |
else |
194 |
einfo |
195 |
einfo "NB: You just installed a 32-bit thunderbird" |
196 |
einfo |
197 |
einfo "Crashreporter won't work on amd64" |
198 |
einfo |
199 |
fi |
200 |
|
201 |
einfo |
202 |
elog 'We have moved away from mozilla-launcher, as it has major design flaws.' |
203 |
elog 'You will need to update your symlinks to use thunderbird-bin as the executable' |
204 |
elog 'to launch thunderbird-bin. If you are used to just typing thunderbird to start, you' |
205 |
elog 'can create an alias in your ${HOME}/.bashrc. Example: alias thunderbird="thunderbird-bin"' |
206 |
} |