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