Gentoo Archives: gentoo-commits

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