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