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-24.1.1.ebuild ChangeLog thunderbird-bin-24.0.ebuild thunderbird-bin-24.1.0.ebuild
Date: Thu, 21 Nov 2013 14:38:49
Message-Id: 20131121143840.E0F3E2004B@flycatcher.gentoo.org
1 anarchy 13/11/21 14:38:40
2
3 Modified: ChangeLog
4 Added: thunderbird-bin-24.1.1.ebuild
5 Removed: thunderbird-bin-24.0.ebuild
6 thunderbird-bin-24.1.0.ebuild
7 Log:
8 Security update, misc ui fixes
9
10 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0xB4D088B4)
11
12 Revision Changes Path
13 1.133 mail-client/thunderbird-bin/ChangeLog
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?rev=1.133&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?rev=1.133&content-type=text/plain
17 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?r1=1.132&r2=1.133
18
19 Index: ChangeLog
20 ===================================================================
21 RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v
22 retrieving revision 1.132
23 retrieving revision 1.133
24 diff -u -r1.132 -r1.133
25 --- ChangeLog 31 Oct 2013 01:04:13 -0000 1.132
26 +++ ChangeLog 21 Nov 2013 14:38:40 -0000 1.133
27 @@ -1,6 +1,13 @@
28 # ChangeLog for mail-client/thunderbird-bin
29 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
30 -# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v 1.132 2013/10/31 01:04:13 jdhore Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v 1.133 2013/11/21 14:38:40 anarchy Exp $
32 +
33 +*thunderbird-bin-24.1.1 (21 Nov 2013)
34 +
35 + 21 Nov 2013; Jory A. Pratt <anarchy@g.o>
36 + +thunderbird-bin-24.1.1.ebuild, -thunderbird-bin-24.0.ebuild,
37 + -thunderbird-bin-24.1.0.ebuild:
38 + Security update, misc ui fixes
39
40 *thunderbird-bin-17.0.10 (31 Oct 2013)
41 *thunderbird-bin-24.1.0 (31 Oct 2013)
42
43
44
45 1.1 mail-client/thunderbird-bin/thunderbird-bin-24.1.1.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-24.1.1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-24.1.1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: thunderbird-bin-24.1.1.ebuild
51 ===================================================================
52 # Copyright 1999-2013 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-24.1.1.ebuild,v 1.1 2013/11/21 14:38:40 anarchy Exp $
55
56 EAPI="5"
57 MOZ_ESR="0"
58
59 # Can be updated using scripts/get_langs.sh from mozilla overlay
60 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
61 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
62 pt-PT rm ro ru si sk sl sq sr sv-SE ta-LK tr uk vi zh-CN zh-TW)
63
64 # Convert the ebuild version to the upstream mozilla version, used by
65 MOZ_PN="${PN/-bin}"
66 MOZ_PV="${PV/_beta/b}"
67 MOZ_PV="${MOZ_PV/_rc/rc}"
68
69 if [[ ${MOZ_ESR} == 1 ]]; then
70 # ESR releases have slightly version numbers
71 MOZ_PV="${MOZ_PV}esr"
72 fi
73
74 MOZ_P="${MOZ_PN}-${MOZ_PV}"
75
76 # Upstream ftp release URI that's used by mozlinguas.eclass
77 # We don't use the http mirror because it deletes old tarballs.
78 MOZ_FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_PN}/releases/"
79
80 inherit eutils multilib pax-utils fdo-mime gnome2-utils mozlinguas nsplugins
81
82 DESCRIPTION="Thunderbird Mail Client"
83 SRC_URI="${SRC_URI}
84 amd64? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-x86_64/en-US/${MOZ_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 )
85 x86? ( ${MOZ_FTP_URI}/${MOZ_PV}/linux-i686/en-US/${MOZ_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )"
86 HOMEPAGE="http://www.mozilla.com/thunderbird"
87 RESTRICT="strip mirror"
88
89 KEYWORDS="-* ~amd64 ~x86"
90 SLOT="0"
91 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
92 IUSE="+crashreporter"
93
94 DEPEND="app-arch/unzip"
95 RDEPEND="virtual/freedesktop-icon-theme
96 dev-libs/dbus-glib
97 =media-libs/libpng-1.5*
98 x11-libs/libXrender
99 x11-libs/libXt
100 x11-libs/libXmu
101 >=x11-libs/gtk+-2.2:2
102 >=media-libs/alsa-lib-1.0.16
103 crashreporter? ( net-misc/curl )
104
105 !net-libs/libproxy[spidermonkey]
106 "
107
108 QA_PREBUILT="
109 opt/${MOZ_PN}/*.so
110 opt/${MOZ_PN}/${MOZ_PN}
111 opt/${MOZ_PN}/${PN}
112 opt/${MOZ_PN}/crashreporter
113 opt/${MOZ_PN}/plugin-container
114 opt/${MOZ_PN}/mozilla-xremote-client
115 opt/${MOZ_PN}/updater
116 "
117
118 S="${WORKDIR}/${MOZ_PN}"
119
120 src_unpack() {
121 unpack ${A}
122
123 # Unpack language packs
124 mozlinguas_src_unpack
125 }
126
127 src_install() {
128 declare MOZILLA_FIVE_HOME="/opt/${MOZ_PN}"
129
130 local size sizes icon_path icon name
131 sizes="16 22 24 32 48 256"
132 icon_path="${S}/chrome/icons/default"
133 icon="${PN}-icon"
134 name="Thunderbird"
135
136 # Install icons and .desktop for menu entry
137 for size in ${sizes}; do
138 insinto "/usr/share/icons/hicolor/${size}x${size}/apps"
139 newins "${icon_path}/default${size}.png" "${icon}.png"
140 done
141 # Install a 48x48 icon into /usr/share/pixmaps for legacy DEs
142 newicon "${S}"/chrome/icons/default/default48.png "${icon}.png"
143 domenu "${FILESDIR}"/icon/${PN}.desktop
144
145 # Install thunderbird in /opt
146 dodir ${MOZILLA_FIVE_HOME%/*}
147 mv "${S}" "${D}"${MOZILLA_FIVE_HOME}
148
149 # Install language packs
150 mozlinguas_src_install
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 # revdep-rebuild entry
163 insinto /etc/revdep-rebuild
164 doins "${FILESDIR}"/10${PN}
165
166 # Enable very specific settings for thunderbird-3
167 cp "${FILESDIR}"/thunderbird-gentoo-default-prefs.js \
168 "${D}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \
169 die "failed to cp thunderbird-gentoo-default-prefs.js"
170
171 # Plugins dir
172 share_plugins_dir
173
174 pax-mark mr "${ED}"/${MOZILLA_FIVE_HOME}/{thunderbird-bin,thunderbird,plugin-container}
175 }
176
177 pkg_preinst() {
178 gnome2_icon_savelist
179 }
180
181 pkg_postinst() {
182 fdo-mime_desktop_database_update
183 gnome2_icon_cache_update
184 }
185
186 pkg_postrm() {
187 gnome2_icon_cache_update
188 }