Gentoo Archives: gentoo-commits

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