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