Gentoo Archives: gentoo-commits

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