1 |
nirbheek 11/07/03 03:33:54 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: thunderbird-bin-5.0.ebuild |
5 |
Log: |
6 |
Bump to 5.0 (non-multilib), fixes bug 373159 |
7 |
|
8 |
(Portage version: 2.2.0_alpha39_p14/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.37 mail-client/thunderbird-bin/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?rev=1.37&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?rev=1.37&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?r1=1.36&r2=1.37 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v |
20 |
retrieving revision 1.36 |
21 |
retrieving revision 1.37 |
22 |
diff -u -r1.36 -r1.37 |
23 |
--- ChangeLog 23 Jun 2011 14:13:51 -0000 1.36 |
24 |
+++ ChangeLog 3 Jul 2011 03:33:54 -0000 1.37 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for mail-client/thunderbird-bin |
27 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v 1.36 2011/06/23 14:13:51 polynomial-c Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v 1.37 2011/07/03 03:33:54 nirbheek Exp $ |
30 |
+ |
31 |
+*thunderbird-bin-5.0 (03 Jul 2011) |
32 |
+ |
33 |
+ 03 Jul 2011; Nirbheek Chauhan <nirbheek@g.o> |
34 |
+ +thunderbird-bin-5.0.ebuild: |
35 |
+ Bump to 5.0 (non-multilib), fixes bug 373159 |
36 |
|
37 |
*thunderbird-bin-3.1.11 (23 Jun 2011) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 mail-client/thunderbird-bin/thunderbird-bin-5.0.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-5.0.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-5.0.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: thunderbird-bin-5.0.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2011 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-5.0.ebuild,v 1.1 2011/07/03 03:33:54 nirbheek Exp $ |
52 |
|
53 |
EAPI="3" |
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="ar bg br ca cs da de en en-GB en-US es-AR es-ES et eu fi fr fy-NL ga-IE \ |
60 |
gd gl he hu is it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR pt-PT rm ru si sk sl \ |
61 |
sq sv-SE ta-LK tr uk 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=" |
71 |
amd64? ( ${REL_URI}/${MY_PV}/linux-x86_64/en-US/${MY_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 ) |
72 |
x86? ( ${REL_URI}/${MY_PV}/linux-i686/en-US/${MY_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )" |
73 |
HOMEPAGE="http://www.mozilla.com/firefox" |
74 |
HOMEPAGE="http://www.mozilla.com/thunderbird" |
75 |
RESTRICT="strip" |
76 |
|
77 |
KEYWORDS="-* ~amd64 ~x86" |
78 |
SLOT="0" |
79 |
LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )" |
80 |
IUSE="" |
81 |
|
82 |
for X in ${LANGS} ; do |
83 |
if [ "${X}" != "en" ] && [ "${X}" != "en-US" ]; then |
84 |
SRC_URI="${SRC_URI} |
85 |
linguas_${X/-/_}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin/}-${X}.xpi )" |
86 |
fi |
87 |
IUSE="${IUSE} linguas_${X/-/_}" |
88 |
# english is handled internally |
89 |
if [ "${#X}" == 5 ] && ! has ${X} ${NOSHORTLANGS}; then |
90 |
if [ "${X}" != "en-US" ]; then |
91 |
SRC_URI="${SRC_URI} |
92 |
linguas_${X%%-*}? ( ${REL_URI}/${MY_PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin/}-${X}.xpi )" |
93 |
fi |
94 |
IUSE="${IUSE} linguas_${X%%-*}" |
95 |
fi |
96 |
done |
97 |
|
98 |
DEPEND="app-arch/unzip" |
99 |
RDEPEND="x11-libs/libXrender |
100 |
x11-libs/libXt |
101 |
x11-libs/libXmu |
102 |
|
103 |
>=x11-libs/gtk+-2.2:2 |
104 |
net-misc/curl[nss] |
105 |
" |
106 |
|
107 |
S="${WORKDIR}/thunderbird" |
108 |
|
109 |
linguas() { |
110 |
local LANG SLANG |
111 |
for LANG in ${LINGUAS}; do |
112 |
if has ${LANG} en en_US; then |
113 |
has en ${linguas} || linguas="${linguas:+"${linguas} "}en" |
114 |
continue |
115 |
elif has ${LANG} ${LANGS//-/_}; then |
116 |
has ${LANG//_/-} ${linguas} || linguas="${linguas:+"${linguas} "}${LANG//_/-}" |
117 |
continue |
118 |
elif [[ " ${LANGS} " == *" ${LANG}-"* ]]; then |
119 |
for X in ${LANGS}; do |
120 |
if [[ "${X}" == "${LANG}-"* ]] && \ |
121 |
[[ " ${NOSHORTLANGS} " != *" ${X} "* ]]; then |
122 |
has ${X} ${linguas} || linguas="${linguas:+"${linguas} "}${X}" |
123 |
continue 2 |
124 |
fi |
125 |
done |
126 |
fi |
127 |
ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA" |
128 |
done |
129 |
} |
130 |
|
131 |
src_unpack() { |
132 |
unpack ${A} |
133 |
|
134 |
linguas |
135 |
for X in ${linguas}; do |
136 |
[[ ${X} != en ]] && xpi_unpack "${P/-bin}-${X}.xpi" |
137 |
done |
138 |
} |
139 |
|
140 |
src_install() { |
141 |
declare MOZILLA_FIVE_HOME="/opt/${MY_PN}" |
142 |
|
143 |
# Install thunderbird in /opt |
144 |
dodir ${MOZILLA_FIVE_HOME%/*} |
145 |
mv "${S}" "${D}"${MOZILLA_FIVE_HOME} |
146 |
|
147 |
linguas |
148 |
for X in ${linguas}; do |
149 |
[[ ${X} != en ]] && xpi_install ${WORKDIR}/${P/-bin}-${X} |
150 |
done |
151 |
|
152 |
# Create /usr/bin/thunderbird-bin |
153 |
dodir /usr/bin/ |
154 |
cat <<EOF >"${D}"/usr/bin/${PN} |
155 |
#!/bin/sh |
156 |
unset LD_PRELOAD |
157 |
LD_LIBRARY_PATH="${MOZILLA_FIVE_HOME}" |
158 |
exec ${MOZILLA_FIVE_HOME}/thunderbird "\$@" |
159 |
EOF |
160 |
fperms 0755 /usr/bin/${PN} |
161 |
|
162 |
# Install icon and .desktop for menu entry |
163 |
doicon "${FILESDIR}"/icon/${PN}-icon.png |
164 |
domenu "${FILESDIR}"/icon/${PN}.desktop |
165 |
|
166 |
# revdep-rebuild entry |
167 |
insinto /etc/revdep-rebuild |
168 |
doins "${FILESDIR}"/10${PN} |
169 |
|
170 |
# Enable very specific settings for thunderbird-3 |
171 |
cp "${FILESDIR}"/thunderbird-gentoo-default-prefs.js \ |
172 |
"${D}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \ |
173 |
die "failed to cp thunderbird-gentoo-default-prefs.js" |
174 |
} |
175 |
|
176 |
pkg_postinst() { |
177 |
#elog "For enigmail, please see instructions at" |
178 |
#elog " http://enigmail.mozdev.org/" |
179 |
|
180 |
if use x86; then |
181 |
if ! has_version 'gnome-base/gconf' || ! has_version 'gnome-base/orbit' ; then |
182 |
einfo |
183 |
einfo "For using the crashreporter, you need gnome-base/gconf," |
184 |
einfo "gnome-base/orbit and net-misc/curl emerged." |
185 |
einfo |
186 |
fi |
187 |
else |
188 |
einfo |
189 |
einfo "NB: You just installed a 32-bit thunderbird" |
190 |
einfo |
191 |
einfo "Crashreporter won't work on amd64" |
192 |
einfo |
193 |
fi |
194 |
|
195 |
einfo |
196 |
elog 'We have moved away from mozilla-launcher, as it has major design flaws.' |
197 |
elog 'You will need to update your symlinks to use thunderbird-bin as the executable' |
198 |
elog 'to launch thunderbird-bin. If you are used to just typing thunderbird to start, you' |
199 |
elog 'can create an alias in your ${HOME}/.bashrc. Example: alias thunderbird="thunderbird-bin"' |
200 |
} |