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-31.5.0.ebuild ChangeLog
Date: Thu, 26 Feb 2015 02:07:45
Message-Id: 20150226020736.764EE128FD@oystercatcher.gentoo.org
1 axs 15/02/26 02:07:36
2
3 Modified: ChangeLog
4 Added: thunderbird-bin-31.5.0.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 2B6559ED)
9
10 Revision Changes Path
11 1.172 mail-client/thunderbird-bin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?rev=1.172&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?rev=1.172&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?r1=1.171&r2=1.172
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v
20 retrieving revision 1.171
21 retrieving revision 1.172
22 diff -u -r1.171 -r1.172
23 --- ChangeLog 15 Feb 2015 15:07:49 -0000 1.171
24 +++ ChangeLog 26 Feb 2015 02:07:36 -0000 1.172
25 @@ -1,6 +1,12 @@
26 # ChangeLog for mail-client/thunderbird-bin
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v 1.171 2015/02/15 15:07:49 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v 1.172 2015/02/26 02:07:36 axs Exp $
30 +
31 +*thunderbird-bin-31.5.0 (26 Feb 2015)
32 +
33 + 26 Feb 2015; Ian Stakenvicius (_AxS_) <axs@g.o>
34 + +thunderbird-bin-31.5.0.ebuild:
35 + Version bump
36
37 15 Feb 2015; Agostino Sarubbo <ago@g.o> thunderbird-bin-31.4.0.ebuild:
38 Stable for x86, wrt bug #536564
39
40
41
42 1.1 mail-client/thunderbird-bin/thunderbird-bin-31.5.0.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-31.5.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-31.5.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: thunderbird-bin-31.5.0.ebuild
48 ===================================================================
49 # Copyright 1999-2015 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-31.5.0.ebuild,v 1.1 2015/02/26 02:07:36 axs Exp $
52
53 EAPI="5"
54 MOZ_ESR="0"
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"
85
86 KEYWORDS="-* ~amd64 ~x86"
87 SLOT="0"
88 LICENSE="MPL-2.0 GPL-2 LGPL-2.1"
89 IUSE="+crashreporter selinux"
90
91 DEPEND="app-arch/unzip"
92
93 RDEPEND="virtual/freedesktop-icon-theme
94 dev-libs/atk
95 >=dev-libs/dbus-glib-0.72
96 dev-libs/glib:2
97 >=media-libs/alsa-lib-1.0.16
98 media-libs/fontconfig
99 >=media-libs/freetype-2.4.10:2
100 >=sys-apps/dbus-0.60
101 >=x11-libs/cairo-1.10[X]
102 x11-libs/gdk-pixbuf:2
103 >=x11-libs/gtk+-2.14:2
104 x11-libs/libX11
105 x11-libs/libXext
106 x11-libs/libXrender
107 x11-libs/libXt
108 >=x11-libs/pango-1.22.0
109 crashreporter? ( net-misc/curl )
110 selinux? ( sec-policy/selinux-thunderbird )
111 "
112
113 QA_PREBUILT="
114 opt/${MOZ_PN}/*.so
115 opt/${MOZ_PN}/${MOZ_PN}
116 opt/${MOZ_PN}/${PN}
117 opt/${MOZ_PN}/crashreporter
118 opt/${MOZ_PN}/plugin-container
119 opt/${MOZ_PN}/mozilla-xremote-client
120 opt/${MOZ_PN}/updater
121 "
122
123 S="${WORKDIR}/${MOZ_PN}"
124
125 src_unpack() {
126 unpack ${A}
127
128 # Unpack language packs
129 mozlinguas_src_unpack
130 }
131
132 src_install() {
133 declare MOZILLA_FIVE_HOME="/opt/${MOZ_PN}"
134
135 local size sizes icon_path icon name
136 sizes="16 22 24 32 48 256"
137 icon_path="${S}/chrome/icons/default"
138 icon="${PN}-icon"
139 name="Thunderbird"
140
141 # Install icons and .desktop for menu entry
142 for size in ${sizes}; do
143 insinto "/usr/share/icons/hicolor/${size}x${size}/apps"
144 newins "${icon_path}/default${size}.png" "${icon}.png"
145 done
146 # Install a 48x48 icon into /usr/share/pixmaps for legacy DEs
147 newicon "${S}"/chrome/icons/default/default48.png "${icon}.png"
148 domenu "${FILESDIR}"/icon/${PN}.desktop
149
150 # Install thunderbird in /opt
151 dodir ${MOZILLA_FIVE_HOME%/*}
152 mv "${S}" "${D}"${MOZILLA_FIVE_HOME}
153
154 # Install language packs
155 mozlinguas_src_install
156
157 # Create /usr/bin/thunderbird-bin
158 dodir /usr/bin/
159 cat <<EOF >"${D}"/usr/bin/${PN}
160 #!/bin/sh
161 unset LD_PRELOAD
162 LD_LIBRARY_PATH="${MOZILLA_FIVE_HOME}"
163 exec ${MOZILLA_FIVE_HOME}/thunderbird "\$@"
164 EOF
165 fperms 0755 /usr/bin/${PN}
166
167 # revdep-rebuild entry
168 insinto /etc/revdep-rebuild
169 doins "${FILESDIR}"/10${PN}
170
171 # Enable very specific settings for thunderbird-3
172 cp "${FILESDIR}"/thunderbird-gentoo-default-prefs.js \
173 "${D}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \
174 die "failed to cp thunderbird-gentoo-default-prefs.js"
175
176 # Plugins dir
177 share_plugins_dir
178
179 pax-mark mr "${ED}"/${MOZILLA_FIVE_HOME}/{thunderbird-bin,thunderbird,plugin-container}
180 }
181
182 pkg_preinst() {
183 gnome2_icon_savelist
184 }
185
186 pkg_postinst() {
187 fdo-mime_desktop_database_update
188 gnome2_icon_cache_update
189 }
190
191 pkg_postrm() {
192 gnome2_icon_cache_update
193 }