Gentoo Archives: gentoo-commits

From: "Ian Stakenvicius (axs)" <axs@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in mail-client/thunderbird-bin: thunderbird-bin-24.8.1.ebuild thunderbird-bin-31.1.1.ebuild ChangeLog thunderbird-bin-31.1.0.ebuild thunderbird-bin-24.7.0.ebuild
Date: Fri, 26 Sep 2014 15:06:21
Message-Id: 20140926150617.9CAA46555@oystercatcher.gentoo.org
1 axs 14/09/26 15:06:17
2
3 Modified: ChangeLog
4 Added: thunderbird-bin-24.8.1.ebuild
5 thunderbird-bin-31.1.1.ebuild
6 Removed: thunderbird-bin-31.1.0.ebuild
7 thunderbird-bin-24.7.0.ebuild
8 Log:
9 security bump, bug 523652 ; removed old
10
11 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)
12
13 Revision Changes Path
14 1.157 mail-client/thunderbird-bin/ChangeLog
15
16 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?rev=1.157&view=markup
17 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?rev=1.157&content-type=text/plain
18 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?r1=1.156&r2=1.157
19
20 Index: ChangeLog
21 ===================================================================
22 RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v
23 retrieving revision 1.156
24 retrieving revision 1.157
25 diff -u -r1.156 -r1.157
26 --- ChangeLog 5 Sep 2014 09:07:33 -0000 1.156
27 +++ ChangeLog 26 Sep 2014 15:06:17 -0000 1.157
28 @@ -1,6 +1,14 @@
29 # ChangeLog for mail-client/thunderbird-bin
30 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
31 -# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v 1.156 2014/09/05 09:07:33 ago Exp $
32 +# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v 1.157 2014/09/26 15:06:17 axs Exp $
33 +
34 +*thunderbird-bin-24.8.1 (26 Sep 2014)
35 +*thunderbird-bin-31.1.1 (26 Sep 2014)
36 +
37 + 26 Sep 2014; Ian Stakenvicius (_AxS_) <axs@g.o>
38 + +thunderbird-bin-24.8.1.ebuild, +thunderbird-bin-31.1.1.ebuild,
39 + -thunderbird-bin-24.7.0.ebuild, -thunderbird-bin-31.1.0.ebuild:
40 + security bump, bug 523652 ; removed old
41
42 05 Sep 2014; Agostino Sarubbo <ago@g.o> thunderbird-bin-24.8.0.ebuild:
43 Stable for x86, wrt bug #522020
44
45
46
47 1.1 mail-client/thunderbird-bin/thunderbird-bin-24.8.1.ebuild
48
49 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-24.8.1.ebuild?rev=1.1&view=markup
50 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-24.8.1.ebuild?rev=1.1&content-type=text/plain
51
52 Index: thunderbird-bin-24.8.1.ebuild
53 ===================================================================
54 # Copyright 1999-2014 Gentoo Foundation
55 # Distributed under the terms of the GNU General Public License v2
56 # $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-24.8.1.ebuild,v 1.1 2014/09/26 15:06:17 axs Exp $
57
58 EAPI="5"
59 MOZ_ESR="0"
60
61 # Can be updated using scripts/get_langs.sh from mozilla overlay
62 MOZ_LANGS=(ar ast be bg bn-BD br ca cs da de el en en-GB en-US es-AR es-ES et eu
63 fi fr fy-NL ga-IE gd gl he hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR
64 pt-PT rm ro ru si sk sl sq sr sv-SE ta-LK tr uk vi zh-CN zh-TW)
65
66 # Convert the ebuild version to the upstream mozilla version, used by
67 MOZ_PN="${PN/-bin}"
68 MOZ_PV="${PV/_beta/b}"
69 MOZ_PV="${MOZ_PV/_rc/rc}"
70
71 if [[ ${MOZ_ESR} == 1 ]]; then
72 # ESR releases have slightly version numbers
73 MOZ_PV="${MOZ_PV}esr"
74 fi
75
76 MOZ_P="${MOZ_PN}-${MOZ_PV}"
77
78 # Upstream ftp release URI that's used by mozlinguas.eclass
79 # We don't use the http mirror because it deletes old tarballs.
80 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/"
81
82 inherit eutils multilib pax-utils fdo-mime gnome2-utils mozlinguas nsplugins
83
84 DESCRIPTION="Thunderbird Mail Client"
85 SRC_URI="${SRC_URI}
86 amd64? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 )
87 x86? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )"
88 HOMEPAGE="http://www.mozilla.com/thunderbird"
89 RESTRICT="strip mirror"
90
91 KEYWORDS="-* ~amd64 ~x86"
92 SLOT="0"
93 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
94 IUSE="+crashreporter selinux"
95
96 DEPEND="app-arch/unzip
97 selinux? ( sec-policy/selinux-thunderbird )"
98 RDEPEND="virtual/freedesktop-icon-theme
99 dev-libs/dbus-glib
100 =media-libs/libpng-1.6*
101 x11-libs/libXrender
102 x11-libs/libXt
103 x11-libs/libXmu
104 >=x11-libs/gtk+-2.2:2
105 >=media-libs/alsa-lib-1.0.16
106 crashreporter? ( net-misc/curl )
107 selinux? ( sec-policy/selinux-thunderbird )
108 "
109
110 QA_PREBUILT="
111 opt/${MOZ_PN}/*.so
112 opt/${MOZ_PN}/${MOZ_PN}
113 opt/${MOZ_PN}/${PN}
114 opt/${MOZ_PN}/crashreporter
115 opt/${MOZ_PN}/plugin-container
116 opt/${MOZ_PN}/mozilla-xremote-client
117 opt/${MOZ_PN}/updater
118 "
119
120 S="${WORKDIR}/${MOZ_PN}"
121
122 src_unpack() {
123 unpack ${A}
124
125 # Unpack language packs
126 mozlinguas_src_unpack
127 }
128
129 src_install() {
130 declare MOZILLA_FIVE_HOME="/opt/${MOZ_PN}"
131
132 local size sizes icon_path icon name
133 sizes="16 22 24 32 48 256"
134 icon_path="${S}/chrome/icons/default"
135 icon="${PN}-icon"
136 name="Thunderbird"
137
138 # Install icons and .desktop for menu entry
139 for size in ${sizes}; do
140 insinto "/usr/share/icons/hicolor/${size}x${size}/apps"
141 newins "${icon_path}/default${size}.png" "${icon}.png"
142 done
143 # Install a 48x48 icon into /usr/share/pixmaps for legacy DEs
144 newicon "${S}"/chrome/icons/default/default48.png "${icon}.png"
145 domenu "${FILESDIR}"/icon/${PN}.desktop
146
147 # Install thunderbird in /opt
148 dodir ${MOZILLA_FIVE_HOME%/*}
149 mv "${S}" "${D}"${MOZILLA_FIVE_HOME}
150
151 # Install language packs
152 mozlinguas_src_install
153
154 # Create /usr/bin/thunderbird-bin
155 dodir /usr/bin/
156 cat <<EOF >"${D}"/usr/bin/${PN}
157 #!/bin/sh
158 unset LD_PRELOAD
159 LD_LIBRARY_PATH="${MOZILLA_FIVE_HOME}"
160 exec ${MOZILLA_FIVE_HOME}/thunderbird "\$@"
161 EOF
162 fperms 0755 /usr/bin/${PN}
163
164 # revdep-rebuild entry
165 insinto /etc/revdep-rebuild
166 doins "${FILESDIR}"/10${PN}
167
168 # Enable very specific settings for thunderbird-3
169 cp "${FILESDIR}"/thunderbird-gentoo-default-prefs.js \
170 "${D}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \
171 die "failed to cp thunderbird-gentoo-default-prefs.js"
172
173 # Plugins dir
174 share_plugins_dir
175
176 pax-mark mr "${ED}"/${MOZILLA_FIVE_HOME}/{thunderbird-bin,thunderbird,plugin-container}
177 }
178
179 pkg_preinst() {
180 gnome2_icon_savelist
181 }
182
183 pkg_postinst() {
184 fdo-mime_desktop_database_update
185 gnome2_icon_cache_update
186 }
187
188 pkg_postrm() {
189 gnome2_icon_cache_update
190 }
191
192
193
194 1.1 mail-client/thunderbird-bin/thunderbird-bin-31.1.1.ebuild
195
196 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-31.1.1.ebuild?rev=1.1&view=markup
197 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-31.1.1.ebuild?rev=1.1&content-type=text/plain
198
199 Index: thunderbird-bin-31.1.1.ebuild
200 ===================================================================
201 # Copyright 1999-2014 Gentoo Foundation
202 # Distributed under the terms of the GNU General Public License v2
203 # $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-31.1.1.ebuild,v 1.1 2014/09/26 15:06:17 axs Exp $
204
205 EAPI="5"
206 MOZ_ESR="0"
207
208 # Can be updated using scripts/get_langs.sh from mozilla overlay
209 MOZ_LANGS=(ar ast be bg bn-BD br ca cs da de el en en-GB en-US es-AR es-ES et eu
210 fi fr fy-NL ga-IE gd gl he hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR
211 pt-PT rm ro ru si sk sl sq sr sv-SE ta-LK tr uk vi zh-CN zh-TW)
212
213 # Convert the ebuild version to the upstream mozilla version, used by
214 MOZ_PN="${PN/-bin}"
215 MOZ_PV="${PV/_beta/b}"
216 MOZ_PV="${MOZ_PV/_rc/rc}"
217
218 if [[ ${MOZ_ESR} == 1 ]]; then
219 # ESR releases have slightly version numbers
220 MOZ_PV="${MOZ_PV}esr"
221 fi
222
223 MOZ_P="${MOZ_PN}-${MOZ_PV}"
224
225 # Upstream ftp release URI that's used by mozlinguas.eclass
226 # We don't use the http mirror because it deletes old tarballs.
227 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/"
228
229 inherit eutils multilib pax-utils fdo-mime gnome2-utils mozlinguas nsplugins
230
231 DESCRIPTION="Thunderbird Mail Client"
232 SRC_URI="${SRC_URI}
233 amd64? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 )
234 x86? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )"
235 HOMEPAGE="http://www.mozilla.com/thunderbird"
236 RESTRICT="strip mirror"
237
238 KEYWORDS="-* ~amd64 ~x86"
239 SLOT="0"
240 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
241 IUSE="+crashreporter selinux"
242
243 DEPEND="app-arch/unzip
244 selinux? ( sec-policy/selinux-thunderbird )"
245 RDEPEND="virtual/freedesktop-icon-theme
246 dev-libs/dbus-glib
247 =media-libs/libpng-1.6*
248 x11-libs/libXrender
249 x11-libs/libXt
250 x11-libs/libXmu
251 >=x11-libs/gtk+-2.2:2
252 >=media-libs/alsa-lib-1.0.16
253 crashreporter? ( net-misc/curl )
254 selinux? ( sec-policy/selinux-thunderbird )
255 "
256
257 QA_PREBUILT="
258 opt/${MOZ_PN}/*.so
259 opt/${MOZ_PN}/${MOZ_PN}
260 opt/${MOZ_PN}/${PN}
261 opt/${MOZ_PN}/crashreporter
262 opt/${MOZ_PN}/plugin-container
263 opt/${MOZ_PN}/mozilla-xremote-client
264 opt/${MOZ_PN}/updater
265 "
266
267 S="${WORKDIR}/${MOZ_PN}"
268
269 src_unpack() {
270 unpack ${A}
271
272 # Unpack language packs
273 mozlinguas_src_unpack
274 }
275
276 src_install() {
277 declare MOZILLA_FIVE_HOME="/opt/${MOZ_PN}"
278
279 local size sizes icon_path icon name
280 sizes="16 22 24 32 48 256"
281 icon_path="${S}/chrome/icons/default"
282 icon="${PN}-icon"
283 name="Thunderbird"
284
285 # Install icons and .desktop for menu entry
286 for size in ${sizes}; do
287 insinto "/usr/share/icons/hicolor/${size}x${size}/apps"
288 newins "${icon_path}/default${size}.png" "${icon}.png"
289 done
290 # Install a 48x48 icon into /usr/share/pixmaps for legacy DEs
291 newicon "${S}"/chrome/icons/default/default48.png "${icon}.png"
292 domenu "${FILESDIR}"/icon/${PN}.desktop
293
294 # Install thunderbird in /opt
295 dodir ${MOZILLA_FIVE_HOME%/*}
296 mv "${S}" "${D}"${MOZILLA_FIVE_HOME}
297
298 # Install language packs
299 mozlinguas_src_install
300
301 # Create /usr/bin/thunderbird-bin
302 dodir /usr/bin/
303 cat <<EOF >"${D}"/usr/bin/${PN}
304 #!/bin/sh
305 unset LD_PRELOAD
306 LD_LIBRARY_PATH="${MOZILLA_FIVE_HOME}"
307 exec ${MOZILLA_FIVE_HOME}/thunderbird "\$@"
308 EOF
309 fperms 0755 /usr/bin/${PN}
310
311 # revdep-rebuild entry
312 insinto /etc/revdep-rebuild
313 doins "${FILESDIR}"/10${PN}
314
315 # Enable very specific settings for thunderbird-3
316 cp "${FILESDIR}"/thunderbird-gentoo-default-prefs.js \
317 "${D}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \
318 die "failed to cp thunderbird-gentoo-default-prefs.js"
319
320 # Plugins dir
321 share_plugins_dir
322
323 pax-mark mr "${ED}"/${MOZILLA_FIVE_HOME}/{thunderbird-bin,thunderbird,plugin-container}
324 }
325
326 pkg_preinst() {
327 gnome2_icon_savelist
328 }
329
330 pkg_postinst() {
331 fdo-mime_desktop_database_update
332 gnome2_icon_cache_update
333 }
334
335 pkg_postrm() {
336 gnome2_icon_cache_update
337 }