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