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.ebuild ChangeLog
Date: Tue, 31 Jan 2012 20:35:32
Message-Id: 20120131203516.D518E2004B@flycatcher.gentoo.org
1 jdhore 12/01/31 20:35:16
2
3 Modified: ChangeLog
4 Added: thunderbird-bin-10.0.ebuild
5 Log:
6 Version bump to 10.0
7
8 (Portage version: 2.2.0_alpha84/cvs/Linux i686)
9
10 Revision Changes Path
11 1.51 mail-client/thunderbird-bin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?rev=1.51&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?rev=1.51&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/ChangeLog?r1=1.50&r2=1.51
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v
20 retrieving revision 1.50
21 retrieving revision 1.51
22 diff -u -r1.50 -r1.51
23 --- ChangeLog 28 Jan 2012 05:53:22 -0000 1.50
24 +++ ChangeLog 31 Jan 2012 20:35:16 -0000 1.51
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.50 2012/01/28 05:53:22 nirbheek Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/mail-client/thunderbird-bin/ChangeLog,v 1.51 2012/01/31 20:35:16 jdhore Exp $
30 +
31 +*thunderbird-bin-10.0 (31 Jan 2012)
32 +
33 + 31 Jan 2012; Jeff Horelick <jdhore@g.o> +thunderbird-bin-10.0.ebuild:
34 + Version bump to 10.0
35
36 28 Jan 2012; Nirbheek Chauhan <nirbheek@g.o>
37 thunderbird-bin-8.0.ebuild, thunderbird-bin-9.0.1.ebuild:
38
39
40
41 1.1 mail-client/thunderbird-bin/thunderbird-bin-10.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-10.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/mail-client/thunderbird-bin/thunderbird-bin-10.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: thunderbird-bin-10.0.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.ebuild,v 1.1 2012/01/31 20:35:16 jdhore Exp $
51
52 EAPI="3"
53
54 inherit eutils multilib mozextension pax-utils fdo-mime gnome2-utils nsplugins
55
56 # Can be updated using scripts/get_langs.sh from mozilla overlay
57 LANGS=(ar be bg bn-BD br ca cs da de el en en-GB en-US es-AR es-ES et eu fi fr
58 fy-NL ga-IE gd gl he hu id is it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR pt-PT rm
59 ro ru si sk sl sq sv-SE ta-LK tr uk vi zh-CN zh-TW)
60
61 MY_PN="${PN/-bin}"
62 MY_PV="${PV/_beta/b}"
63 # This is a ugly hack, but what can ya do?
64 MY_TEN_PV="${MY_PV/10.0/10.0-real}"
65 MY_P="${MY_PN}-${MY_PV}"
66
67 DESCRIPTION="Thunderbird Mail Client"
68 FTP_URI="ftp://ftp.mozilla.org/pub/mozilla.org/${MY_PN}/releases/"
69 SRC_URI="
70 amd64? ( ${FTP_URI}/${MY_TEN_PV}/linux-x86_64/en-US/${MY_P}.tar.bz2 -> ${PN}_x86_64-${PV}.tar.bz2 )
71 x86? ( ${FTP_URI}/${MY_TEN_PV}/linux-i686/en-US/${MY_P}.tar.bz2 -> ${PN}_i686-${PV}.tar.bz2 )"
72 HOMEPAGE="http://www.mozilla.com/thunderbird"
73 RESTRICT="strip"
74
75 KEYWORDS="-* ~amd64 ~x86"
76 SLOT="0"
77 LICENSE="|| ( MPL-1.1 GPL-2 LGPL-2.1 )"
78 IUSE="+crashreporter"
79
80 for X in "${LANGS[@]}" ; do
81 # en and en_US are handled internally
82 if [[ ${X} != en ]] && [[ ${X} != en-US ]]; then
83 SRC_URI="${SRC_URI}
84 linguas_${X/-/_}? ( ${FTP_URI}/${MY_TEN_PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin}-${X}.xpi )"
85 fi
86 IUSE="${IUSE} linguas_${X/-/_}"
87 # Install all the specific locale xpis if there's no generic locale xpi
88 # Example: there's no pt.xpi, so install all pt-*.xpi
89 if ! has ${X%%-*} "${LANGS[@]}"; then
90 SRC_URI="${SRC_URI}
91 linguas_${X%%-*}? ( ${FTP_URI}/${MY_TEN_PV}/linux-i686/xpi/${X}.xpi -> ${P/-bin}-${X}.xpi )"
92 IUSE="${IUSE} linguas_${X%%-*}"
93 fi
94 done
95
96 DEPEND="app-arch/unzip"
97 RDEPEND="x11-libs/libXrender
98 x11-libs/libXt
99 x11-libs/libXmu
100 >=x11-libs/gtk+-2.2:2
101 >=media-libs/alsa-lib-1.0.16
102 crashreporter? ( net-misc/curl ) "
103
104 S="${WORKDIR}/${MY_PN}"
105
106 # TODO: Move all the linguas crap to an eclass
107 linguas() {
108 # Generate the list of language packs called "linguas"
109 # This list is used to install the xpi language packs
110 local LINGUA
111 for LINGUA in ${LINGUAS}; do
112 if has ${LINGUA} en en_US; then
113 # For mozilla products, en and en_US are handled internally
114 continue
115 # If this language is supported by ${P},
116 elif has ${LINGUA} "${LANGS[@]//-/_}"; then
117 # Add the language to linguas, if it isn't already there
118 has ${LINGUA//_/-} "${linguas[@]}" || linguas+=(${LINGUA//_/-})
119 continue
120 # For each short LINGUA that isn't in LANGS,
121 # add *all* long LANGS to the linguas list
122 elif ! has ${LINGUA%%-*} "${LANGS[@]}"; then
123 for LANG in "${LANGS[@]}"; do
124 if [[ ${LANG} == ${LINGUA}-* ]]; then
125 has ${LANG} "${linguas[@]}" || linguas+=(${LANG})
126 continue 2
127 fi
128 done
129 fi
130 ewarn "Sorry, but ${P} does not support the ${LINGUA} locale"
131 done
132 }
133
134 src_unpack() {
135 unpack ${A}
136
137 linguas
138 for X in "${linguas[@]}"; do
139 xpi_unpack "${P/-bin}-${X}.xpi"
140 done
141 }
142
143 src_install() {
144 declare MOZILLA_FIVE_HOME="/opt/${MY_PN}"
145
146 # Install thunderbird in /opt
147 dodir ${MOZILLA_FIVE_HOME%/*}
148 mv "${S}" "${D}"${MOZILLA_FIVE_HOME}
149
150 linguas
151 for X in "${linguas[@]}"; do
152 xpi_install "${WORKDIR}/${P/-bin}-${X}"
153 done
154
155 # Create /usr/bin/thunderbird-bin
156 dodir /usr/bin/
157 cat <<EOF >"${D}"/usr/bin/${PN}
158 #!/bin/sh
159 unset LD_PRELOAD
160 LD_LIBRARY_PATH="${MOZILLA_FIVE_HOME}"
161 exec ${MOZILLA_FIVE_HOME}/thunderbird "\$@"
162 EOF
163 fperms 0755 /usr/bin/${PN}
164
165 # Install icon and .desktop for menu entry
166 doicon "${FILESDIR}"/icon/${PN}-icon.png
167 domenu "${FILESDIR}"/icon/${PN}.desktop
168
169 # revdep-rebuild entry
170 insinto /etc/revdep-rebuild
171 doins "${FILESDIR}"/10${PN}
172
173 # Enable very specific settings for thunderbird-3
174 cp "${FILESDIR}"/thunderbird-gentoo-default-prefs.js \
175 "${D}/${MOZILLA_FIVE_HOME}/defaults/pref/all-gentoo.js" || \
176 die "failed to cp thunderbird-gentoo-default-prefs.js"
177
178 # Plugins dir
179 share_plugins_dir
180
181 pax-mark m "${ED}"/${MOZILLA_FIVE_HOME}/{thunderbird-bin,thunderbird,plugin-container}
182 }
183
184 pkg_preinst() {
185 gnome2_icon_savelist
186 }
187
188 pkg_postinst() {
189 fdo-mime_desktop_database_update
190 gnome2_icon_cache_update
191 }
192
193 pkg_postrm() {
194 gnome2_icon_cache_update
195 }