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